Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void SignalEvent(ProgramEvent e)
- {
- if (ProgramEvent != null)
- ProgramEvent(e);
- }
- public event ProgramEventHandler ProgramEvent;
- enum ProgramEventType
- {
- ProgramStarted,
- ProgramStateChanged,
- WorldMapControlMoved,
- DestructibleKilled,
- ..
- }
- class ProgramEvent
- {
- public ProgramEventType Type { get; set; }
- public override string ToString()
- {
- return "ProgramEvent " + Type;
- }
- }
- class DestructibleKilled : ProgramEvent
- {
- public DestructibleKilled() { Type = ProgramEventType.DestructibleKilled; }
- public Game.Map.Unit Perpetrator { get; set; }
- public Game.Map.Destructible Destructible { get; set; }
- public Game.Map.Script Script { get; set; }
- }
Add Comment
Please, Sign In to add comment