Type Interfaces
vuer.types
¶
Here are the basic types for events, html and three.js elements, and others.
- vuer.types.IDType¶
IDType is either a UUID or a string. Not in use.
alias of
Union
[UUID
,str
]
- vuer.types.CoroutineFn¶
A function that returns a coroutine. Not in use.
alias of
Callable
[[],Coroutine
]
- vuer.types.EventHandler¶
Defines a function that handles a client event. Second argument is the VuerProxy instance bound to a specific client connected through a websocket session.
alias of
Callable
[[ClientEvent
,VuerProxy
],None
]
- vuer.types.SocketHandler¶
Defines a function that spawns a new entity. Argument is the VuerProxy instance.
alias of
Callable
[[VuerProxy
],Coroutine
]
- class vuer.types.Vector3[source]¶
Bases:
tuple
Vector3(x, y, z)
- x: int¶
Alias for field number 0
- y: int¶
Alias for field number 1
- z: int¶
Alias for field number 2
- static __new__(_cls, x: int, y: int, z: int)¶
Create new instance of Vector3(x, y, z)
- Parameters:
x (int) –
y (int) –
z (int) –
- class vuer.types.Euler[source]¶
Bases:
tuple
Euler(x, y, z, order)
- x: int¶
Alias for field number 0
- y: int¶
Alias for field number 1
- z: int¶
Alias for field number 2
- order: str¶
Alias for field number 3
- static __new__(_cls, x: int, y: int, z: int, order: str = 'XYZ')¶
Create new instance of Euler(x, y, z, order)
- Parameters:
x (int) –
y (int) –
z (int) –
order (str) –