KKMMMTTT / AstroSoar

0 stars 0 forks source link

Event Parameters #9

Closed MatthewChrobak closed 4 years ago

MatthewChrobak commented 4 years ago

Requirements

Game events should be implemented in their own respective class. Current implementation inhibits passing resources necessary for the game event. A mechanism should be put in place to enable passing parameters to the game event. This will require modifying the Annex API.

Pseudocode

class Foo : Scene
{
    public Foo() {
        object parameter = new object();
        this.Events.Add(new CustomGameEvent(parameter);
    }
}