Options
All
  • Public
  • Public/Protected
  • All
Menu

ReduxGame 事件可用的操作

Type parameters

  • State

  • E: string | number

  • EP: EventPayloads<E>

  • Action: ReduxAction

Hierarchy

  • IReduxStateOperator

Index

Properties

dispatch

dispatch: Store<State, Action>["dispatch"]

派发 action

emitEvent

emitEvent: <N>(name: N, payload?: EP[N], options?: undefined | { emitter?: Player }) => any

派发事件

Type declaration

    • <N>(name: N, payload?: EP[N], options?: undefined | { emitter?: Player }): any
    • Type parameters

      • N: E

      Parameters

      • name: N
      • Optional payload: EP[N]
      • Optional options: undefined | { emitter?: Player }

      Returns any

getState

getState: () => State

获取当前的状态

Type declaration

    • (): State
    • Returns State

Legend

  • Object literal
  • Variable
  • Function with type parameter
  • Type alias with type parameter
  • Interface
  • Interface with type parameter
  • Property
  • Enumeration
  • Class with type parameter

Generated using TypeDoc