Skip to content

static class Daedalus


This class represents Daedalus scripting interface.
Original: Daedalus

Source code in src/pyg2o/classes/daedalus.py
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
class Daedalus:
    """
    This class represents Daedalus scripting interface.
    Original: [Daedalus](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-classes/game/Daedalus/)
    """
    @staticmethod
    async def index(value : str) -> int:
        """
        This method will get the daedalus symbol index by its name.
        **Parameters:**
        * `str` **name**: the name of the daedalus symbol.

        **Returns `int`:**
        the daedalus symbol index number.
        """
        data = f'return Daedalus.index({value})'

        server = await PythonWebsocketServer.get_server()
        result = await server.make_request(data)
        return result

    @staticmethod
    async def symbol(value : str) -> dict:
        """
        This method will get the daedalus symbol by its name.
        **Parameters:**
        * `str` **name**: the name of the daedalus symbol.

        **Returns `dict`:**
        the daedalus symbol (empty if there's no symbol with given name)
        """
        data = f'return Daedalus.symbol({value})'

        server = await PythonWebsocketServer.get_server()
        result = await server.make_request(data)
        return result

    @staticmethod
    async def instance(value : str) -> dict:
        """
        This method will get the all of the daedalus instance variables.
        **Parameters:**
        * `str` **instanceName**: the name of the daedalus instance.

        **Returns `dict`:**
        the object containing all of the daedalus instance variables.
        """
        data = f'return Daedalus.instance({value})'

        server = await PythonWebsocketServer.get_server()
        result = await server.make_request(data)
        return result

index(value) async staticmethod

This method will get the daedalus symbol index by its name.
Parameters:
* str name: the name of the daedalus symbol.

Returns int:
the daedalus symbol index number.

Source code in src/pyg2o/classes/daedalus.py
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
@staticmethod
async def index(value : str) -> int:
    """
    This method will get the daedalus symbol index by its name.
    **Parameters:**
    * `str` **name**: the name of the daedalus symbol.

    **Returns `int`:**
    the daedalus symbol index number.
    """
    data = f'return Daedalus.index({value})'

    server = await PythonWebsocketServer.get_server()
    result = await server.make_request(data)
    return result

instance(value) async staticmethod

This method will get the all of the daedalus instance variables.
Parameters:
* str instanceName: the name of the daedalus instance.

Returns dict:
the object containing all of the daedalus instance variables.

Source code in src/pyg2o/classes/daedalus.py
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
@staticmethod
async def instance(value : str) -> dict:
    """
    This method will get the all of the daedalus instance variables.
    **Parameters:**
    * `str` **instanceName**: the name of the daedalus instance.

    **Returns `dict`:**
    the object containing all of the daedalus instance variables.
    """
    data = f'return Daedalus.instance({value})'

    server = await PythonWebsocketServer.get_server()
    result = await server.make_request(data)
    return result

symbol(value) async staticmethod

This method will get the daedalus symbol by its name.
Parameters:
* str name: the name of the daedalus symbol.

Returns dict:
the daedalus symbol (empty if there's no symbol with given name)

Source code in src/pyg2o/classes/daedalus.py
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
@staticmethod
async def symbol(value : str) -> dict:
    """
    This method will get the daedalus symbol by its name.
    **Parameters:**
    * `str` **name**: the name of the daedalus symbol.

    **Returns `dict`:**
    the daedalus symbol (empty if there's no symbol with given name)
    """
    data = f'return Daedalus.symbol({value})'

    server = await PythonWebsocketServer.get_server()
    result = await server.make_request(data)
    return result