NetConversation
extends EngineObject
Instance Properties
NetConversation.userID : number |
| (Read-only) User ID. |
NetConversation.clientID : number |
| (Read-only) Client ID. |
NetConversation.server_id : string |
| (Read-only) Server ID. |
Instance Method
NetConversation.Send ( message : string ) : void |
| Send a message from the server to the client. |
NetConversation.Emit ( type : contructor , args : ...params ) : T |
| Submit data. |
NetConversation.FindEntity ( entityID : number ) : NetEntity |
| Find entities based on entityID. |
NetConversation.CreateNewEntity ( prefab_id : string , NetEntity? : callback ) : void |
| Create a new entity object. |
NetConversation.CurrentConversation ( ) : NetConversation |
| The current NetConversation object. |
NetConversation.ConnectTo ( token : NetInstanceToken ) : Promise<boolean> |
| Carrying a token, connect to the server. |
NetConversation.NewUniqueID ( type : string ) : Promise<number> |
| Generate an ID that uniquely identifies an entity, object, or message on the network. |
NetConversation.GetCurrencyAmount ( type : string ) : Promise<number> |
| Get the amount of type currency. |
NetConversation.ChangeCurrencyAmount ( type : string , diff : number ) : Promise<CurrencyOperationResult> |
| Edit the amount of change in the currency stored in this NetConversation. |
NetConversation.GetStoredValue ( key : string ) : Promise<string> |
| Get the value stored in the key of the current NetConversation. |
NetConversation.SetStoredValue ( key : string , value : string ) : Promise<void> |
| Set the value stored in the current NetConversation key. |
