NetEvents
Summary
Methods
Methods
Subscribe
Subscribe(eventName: string, callback: callable): NetEvent
Parameters
Name |
Type |
Description |
eventName |
string |
|
callback |
callable |
|
Returns
Subscribe
Subscribe(eventName: string, context: any, callback: callable): NetEvent
Parameters
Name |
Type |
Description |
eventName |
string |
|
context |
any |
|
callback |
callable |
|
Returns
Send
Send(eventName: string, …args: any)
Parameters
Name |
Type |
Description |
eventName |
string |
|
…args |
any |
|
SendLocal
SendLocal(eventName: string, …args: any)
Parameters
Name |
Type |
Description |
eventName |
string |
|
…args |
any |
|
SendUnreliable
SendUnreliable(eventName: string, …args: any)
Parameters
Name |
Type |
Description |
eventName |
string |
|
…args |
any |
|
SendUnreliableLocal
SendUnreliableLocal(eventName: string, …args: any)
Parameters
Name |
Type |
Description |
eventName |
string |
|
…args |
any |
|
SendUnreliableOrdered
SendUnreliableOrdered(eventName: string, …args: any)
Parameters
Name |
Type |
Description |
eventName |
string |
|
…args |
any |
|
SendUnreliableOrderedLocal
SendUnreliableOrderedLocal(eventName: string, …args: any)
Parameters
Name |
Type |
Description |
eventName |
string |
|
…args |
any |
|
Unsubscribe
Unsubscribe()
Unsubscribe
Unsubscribe(eventName: string)
Parameters
Name |
Type |
Description |
eventName |
string |
|