lvgamedev / simairport-modding

4 stars 4 forks source link

Events #53

Open ghost opened 4 years ago

ghost commented 4 years ago

This is an extension of #52

Here is a brief list we need:

Sorry if its long :)

AIRPORT EVENTS


        // When a material/placeable is ordered
        OnMaterialOrder(OrderInformation Oinfo, Material material)

        /// When a material is successfully delivered.

        OnMaterialDelivered(Order Oinfo, Material material)

        // When a material is successfully sold.
        OnMaterialSell(Order Oinfo, Material Material)

        // When a material is placed down or used for a placeable or object.
        OnMaterialUsed(Material material)

        // When a plane lands.
        OnPlaneLand(Plane plane)

        // When a plane takes off.
        OnPlaneTakeOff(Plane plane)

        // When a plane is delayed
        OnPlaneDelayed(Plane plane)

        // When a flight is canceled.
        OnPlaneCanceled(Plane plane, Airline airline)

        // When a plane is forced to depart by the player.
        OnPlaneForceDepart(Plane plane)

        // When the balance is changed
        OnBalanceChange(Balance oldBal, Balance newBal)

Some extra that would be nice, but not needed

    // When the game launches
    OnGameLaunch()
    // When the game is quit
    OnGameQuit(int CloseCode)
    // When the game is quit from the menu
    OnGameQuitMenu(int CloseCode)
    // When the game is unfocused
    OnGameUnfocus()
    // When the script is downloaded off the workshop ( needed for some )
    InstallScript(bool Forced)
qcs2017 commented 4 years ago

Some comments:

// When the current Airport Loads // When the current Airport Saves Those are already there, just named differently.

// When the user quits to desktop while the airport is loaded Do you really have a use case for that and the save data coming with it? I am really interested... :-)

// When a plane lands. // When a plane takes off. Those are already in my proposal.

// When a plane is delayed // When a flight is canceled. // When a plane is forced to depart by the player. Those might indeed be interesting for modders.

ghost commented 4 years ago

// When the user quits to desktop while the airport is loaded Do you really have a use case for that and the save data coming with it? I am really interested... :-)

Backup mod

// When the current Airport Loads // When the current Airport Saves Those are already there, just named differently.

Oops

// When a plane lands. // When a plane takes off. Those are already in my proposal.

I know, just brought them up and i already said some are duplicates.

@qcs2017