Methods
addClientPacketListener
- addClientPacketListener(name: string, action: ((target: any, entity: number, packetData: any) => void)): NetworkEntityType
Parameters
name: string
action: ((target: any, entity: number, packetData: any) => void)
- (target: any, entity: number, packetData: any): void
Parameters
target: any
entity: number
packetData: any
Returns void
setClientAddPacketFactory
- setClientAddPacketFactory(action: ((target: any, entity: number, client: any) => any)): NetworkEntityType
Parameters
action: ((target: any, entity: number, client: any) => any)
- (target: any, entity: number, client: any): any
Parameters
target: any
entity: number
client: any
Returns any
setClientEntityAddedListener
- setClientEntityAddedListener<T>(action: ((entity: number, packet: any) => T)): NetworkEntityType
Type Parameters
Parameters
action: ((entity: number, packet: any) => T)
- (entity: number, packet: any): T
Parameters
entity: number
packet: any
Returns T
setClientEntityRemovedListener
- setClientEntityRemovedListener(action: ((target: any, entity: number) => void)): NetworkEntityType
Parameters
action: ((target: any, entity: number) => void)
- (target: any, entity: number): void
Parameters
target: any
entity: number
Returns void
setClientListSetupListener
Class that represents network entity type