Our new developer documentation is now available. Please check it out!
OdinClient
public class OdinClient : IDisposable
Client Wrapper for ODIN ffi OdinLibrary
Constructors
Name | Description |
---|---|
OdinClient(String, String) | Creates a new instance for ODIN ffi C# Wrapper |
OdinClient(Uri, String) | Creates a new instance for ODIN ffi C# Wrapper |
OdinClient(Uri, String, IUserData) | Creates a new instance for ODIN ffi C# Wrapper |
Properties
Name | Description |
---|---|
Rooms | A collection of all Room |
EndPoint | Connection EndPoint. Default from OdinEditorConfig. |
AccessKey | Client AccessKey for all new rooms. Default from OdinHandler config. |
UserData | Client custom UserData |
Public Methods
Name | Description |
---|---|
JoinRoom | Join or create a Room by name via a gateway |
JoinNamedRoom | Join or create a named Room by token via a gateway |
UpdateUserData | Updates the Rooms for the current peer |
SetPositionScale | Updates the Rooms |
UpdatePosition | Updates the Rooms |
LeaveRoom | Leave a joined Room |
Close | Completly closes this Client and all Room associated. |
Dispose | On dispose will free all NativeMethods |