Перейти к основному содержанию

NetworkEntityType

Class that represents network entity type.

Index

Constructors

constructor

Methods

addClientPacketListener

  • addClientPacketListener(name: string, action: (target: any, entity: number, packetData: any) => void): this
  • Parameters

    • name: string
    • action: (target: any, entity: number, packetData: any) => void

      Returns this

    setClientAddPacketFactory

    • setClientAddPacketFactory(action: (target: any, entity: number, client: any) => any): this
    • Parameters

      • action: (target: any, entity: number, client: any) => any

        Returns this

      setClientEntityAddedListener

      • setClientEntityAddedListener<T>(action: (entity: number, packet: any) => T): this
      • Type parameters

        • T = any

        Parameters

        • action: (entity: number, packet: any) => T

          Returns this

        setClientEntityRemovedListener

        • setClientEntityRemovedListener(action: (target: any, entity: number) => void): this
        • Parameters

          • action: (target: any, entity: number) => void

            Returns this

          setClientListSetupListener