Our new developer documentation is now available. Please check it out!
OdinClient.Join
public bool Join(Room room, string token)
public bool Join(Room room, string token, string roomName, byte[] userData, float positionX, float positionY)
Join a object of base Room
Info
If the join fails the room is freed and removed from the client
Parameters
Name | Type | Description |
---|---|---|
room | Room | base type |
token | String | |
roomName | String | room alias |
userData | Byte[] | initial userdata |
positionX | Single | server culling position X |
positionY | Single | server culling position Y |
Returns
Type | Description |
---|---|
Boolean |
Variants
Join(room, token)
public bool Join(Room room, string token)
Join a object of base Room
Warning
If the join fails the room is freed and removed from the client
Parameters
Name | Type | Description |
---|---|---|
room | Room | base type |
token | String |
Returns
Type | Description |
---|---|
Boolean |
Join(room, token, roomName, userData, positionX, positionY)
public bool Join(Room room, string token, string roomName, byte[] userData, float positionX, float positionY)
Join a object of base Room
Warning
If the join fails the room is freed and removed from the client
Parameters
Name | Type | Description |
---|---|---|
room | Room | base type |
token | String | token |
roomName | String | room alias |
userData | Byte[] | initial userdata |
positionX | Single | server culling position X |
positionY | Single | server culling position Y |
Returns
Type | Description |
---|---|
Boolean | room or null |