Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature events #160

Merged
merged 4 commits into from
Sep 18, 2022
Merged

Feature events #160

merged 4 commits into from
Sep 18, 2022

Commits on Sep 3, 2022

  1. Add events for when squad enters/exits game

    Also nuke external library with same events.
    Lemonymous committed Sep 3, 2022
    Configuration menu
    Copy the full SHA
    1306426 View commit details
    Browse the repository at this point in the history
  2. Add event for when difficulty changes

    Also nuke external library with the same event.
    Add compatibility for event `onRealDifficultyChanged`, referencing `onDifficultyChanged`.
    Lemonymous committed Sep 3, 2022
    Configuration menu
    Copy the full SHA
    b78a1d0 View commit details
    Browse the repository at this point in the history
  3. Add deployment related events and functions

    ### Functions
    - modApi.deployment.isDeploymentPhase
    - modApi.deployment.isLandingPhase
    - modApi.deployment.getSelected
    - modApi.deployment.getDeployed
    - modApi.deployment.getRemaining
    
    ### Events
    - modApi.events.onDeploymentPhaseStart
    - modApi.events.onLandingPhaseStart
    - modApi.events.onDeploymentPhaseEnd
    - modApi.events.onPawnUnselectedForDeployment
    - modApi.events.onPawnSelectedForDeployment
    - modApi.events.onPawnDeployed
    - modApi.events.onPawnUndeployed
    - modApi.events.onPawnLanding
    - modApi.events.onPawnLanded
    Lemonymous committed Sep 3, 2022
    Configuration menu
    Copy the full SHA
    068a0b3 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2022

  1. Add onGameStateChanged and onIslandLeft events

    ## Events
    - modApi.events.onGameStateChanged:dispatch(newGameState, oldGameState)
    - modApi.events.onIslandLeft:dispatch(island)
    
    Game States:
    ```
    Main_Menu
    Hangar
    End_Game_Screen
    Map
    Island
    Mission
    Mission_Test
    ```
    Lemonymous committed Sep 7, 2022
    Configuration menu
    Copy the full SHA
    b03864f View commit details
    Browse the repository at this point in the history