Extended from EventEmitter Request¶
This class is used for the client replication
Properties¶
number ClientId¶
The UserId of the client which sent the request if exists
table Content¶
The content of the request
{ }
Methods¶
Request Constructor(clientId: number?, content: RequestContent?
)¶
void Send(content: Dictionary<string, any>
)¶
Sends the request to the server
void Approve(clients: table
)¶
The request is approved and its replicated to the specified clients, if none is specified it will be replicated to all the clients except to the client who sent the request
void Accept(
)¶
Accepts the request and builds the object to be replicated
void GetClient(
)¶
Returns the player which sent the request
Events¶
Name |
Description |
---|---|
Build | Params -> BaseObject Fired when a request is accepted and the object to be replicated is being built |