Options
All
  • Public
  • Public/Protected
  • All
Menu

Class that represents network entity type

Hierarchy

  • NetworkEntityType

Index

Constructors

Methods

  • 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

    Returns NetworkEntityType

  • 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

    Returns NetworkEntityType

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

    • T = any

    Parameters

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

          • entity: number
          • packet: any

          Returns T

    Returns NetworkEntityType

  • 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

    Returns NetworkEntityType

Generated using TypeDoc