NetEvents

Summary

Methods

Method Returns
Subscribe(eventName: string, callback: callable) NetEvent
Subscribe(eventName: string, context: any, callback: callable) NetEvent
Send(eventName: string, …args: any) void
SendLocal(eventName: string, …args: any) void
SendUnreliable(eventName: string, …args: any) void
SendUnreliableLocal(eventName: string, …args: any) void
SendUnreliableOrdered(eventName: string, …args: any) void
SendUnreliableOrderedLocal(eventName: string, …args: any) void
Unsubscribe() void
Unsubscribe(eventName: string) void

Methods

Subscribe

Subscribe(eventName: string, callback: callable): NetEvent

Parameters

Name Type Description
eventName string
callback callable

Returns

Type Description
NetEvent

Subscribe

Subscribe(eventName: string, context: any, callback: callable): NetEvent

Parameters

Name Type Description
eventName string
context any
callback callable

Returns

Type Description
NetEvent

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