Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GameSystemWithFilter

Hierarchy

Index

Constructors

constructor

  • new GameSystemWithFilter(root: any, requiredComponents: any, includeUnexploredStructures?: boolean): GameSystemWithFilter
  • Constructs a new game system with the given component filter. It will process all entities which have all of the passed components

    Parameters

    • root: any
    • requiredComponents: any
    • Default value includeUnexploredStructures: boolean = true

      Whether to process unexplored entities

    Returns GameSystemWithFilter

Methods

draw

  • draw(parameters: any): void
  • Override, do not call this directly, use startDraw()

    Parameters

    • parameters: any

    Returns void

internalCheckEntityShouldBeInTargetList

  • internalCheckEntityShouldBeInTargetList(entity: any): any
  • Parameters

    • entity: any

    Returns any

internalPopEntityIfMatching

  • internalPopEntityIfMatching(entity: any): void
  • Parameters

    • entity: any

    Returns void

internalPostLoadHook

  • internalPostLoadHook(): void
  • Recomputes all target entities after the game has loaded

    Returns void

internalPushEntityIfMatching

  • internalPushEntityIfMatching(entity: any): void
  • Parameters

    • entity: any

    Returns void

internalRecomputeIfTransporterChanged

  • internalRecomputeIfTransporterChanged(building: any): void
  • Parameters

    • building: any

    Returns void

internalRecomputeTargetEntities

  • internalRecomputeTargetEntities(): void
  • Recomputes the target entities

    Returns void

internalReconsiderEntityToAdd

  • internalReconsiderEntityToAdd(entity: any): void
  • Parameters

    • entity: any

    Returns void

internalRegisterEntity

  • internalRegisterEntity(entity: any): void
  • Parameters

    • entity: any

    Returns void

startDraw

  • startDraw(parameters: any): void
  • see

    GameSystem.draw Wrapper arround the draw method

    Parameters

    • parameters: any

    Returns void

update

  • update(): void
  • Updates the game system, override to perform logic

    Returns void