IVNyanNetInterface
Interface for handling network related functions
Namespace: VNyanInterface
Methods
getPlayerSlotPosition
Get position of a player slot
getPlayerSlotPosition(int slot)
| Parameter | Type | Description |
|---|---|---|
slot | int | Player slot |
Returns: Position
setPlayerSlotPosition
Set position of a player slot
setPlayerSlotPosition(int slot, VNyanVector3 position)
| Parameter | Type | Description |
|---|---|---|
slot | int | Player slot |
position | VNyanVector3 | Position |
getPlayerSlotScale
Get scale of a player slot
getPlayerSlotScale(int slot)
| Parameter | Type | Description |
|---|---|---|
slot | int |
Returns: not documented
setPlayerSlotScale
Set scale of a player slot
setPlayerSlotScale(int slot, VNyanVector3 scale)
| Parameter | Type | Description |
|---|---|---|
slot | int | |
scale | VNyanVector3 |
getPlayerSlotRotation
Get rotation of a player slot
getPlayerSlotRotation(int slot)
| Parameter | Type | Description |
|---|---|---|
slot | int | Player slot |
Returns: not documented
setPlayerSlotRotation
Set rotation of a player slot
setPlayerSlotRotation(int slot, VNyanQuaternion rotation)
| Parameter | Type | Description |
|---|---|---|
slot | int | Player slot |
rotation | VNyanQuaternion | Rotation |
registerRPCListener
Registers a callback from VNyanNet RPCs
registerRPCListener(IRPCHandler rpcCallback)
| Parameter | Type | Description |
|---|---|---|
rpcCallback | IRPCHandler | Callback |
sendRPC
Sends an RPC to all connected players
sendRPC(string rpcName, string val1, string val2, string val3, float val4, float val5, float val6, bool bounce)
| Parameter | Type | Description |
|---|---|---|
rpcName | string | RPC to call |
val1 | string | String value 1 |
val2 | string | String value 2 |
val3 | string | String value 3 |
val4 | float | Float value 1 |
val5 | float | Float value 2 |
val6 | float | Float value 3 |
bounce | bool | Bounce the message back to sender |
registerConnectionListener
Registers a callback for connection events
registerConnectionListener(IConnectionHandler connectionCallback)
| Parameter | Type | Description |
|---|---|---|
connectionCallback | IConnectionHandler |
getPlayerSlot
Get player slot for a player name
getPlayerSlot(string playerName)
| Parameter | Type | Description |
|---|---|---|
playerName | string | Player to get |
Returns: not documented
setPlayerSlot
Set player slot for a player name
setPlayerSlot(string playerName, int slot)
| Parameter | Type | Description |
|---|---|---|
playerName | string | Player to set |
slot | int | Slot to set |
getPlayers
Get list of connected players
getPlayers()
Returns: not documented