Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "operators/stocks"

Index

Functions

filterJustSpawned

  • filterJustSpawned(playerIndex: number): MonoTypeOperatorFunction<FrameEntryType>
  • Filter only the frames where the player has just spawned

    Parameters

    • playerIndex: number

    Returns MonoTypeOperatorFunction<FrameEntryType>

mapFrameToSpawnStockType

  • mapFrameToSpawnStockType(settings$: Observable<GameStartType>, playerIndex: number): OperatorFunction<PostFrameUpdateType, StockType>
  • Filter only the frames where the player has just spawned

    Parameters

    • settings$: Observable<GameStartType>
    • playerIndex: number

    Returns OperatorFunction<PostFrameUpdateType, StockType>

mapFramesToDeathStockType

  • mapFramesToDeathStockType(playerSpawned$: Observable<StockType>): OperatorFunction<[PostFrameUpdateType, PostFrameUpdateType], StockType>
  • Parameters

    • playerSpawned$: Observable<StockType>

    Returns OperatorFunction<[PostFrameUpdateType, PostFrameUpdateType], StockType>

Generated using TypeDoc