/// <summary>Initializes static members of the EntityController class</summary>
 static EntityController()
 {
     ControllerManager.AddEventHandler <IEntityController, EventArgs>(EntityEventHandlers.OnStart, "OnStart");
     ControllerManager.AddEventHandler <IEntityController, FrameEventArgs>(EntityEventHandlers.OnUpdate, "OnUpdate");
     ControllerManager.AddEventHandler <IEntityController, EventArgs>(EntityEventHandlers.OnDrawUI, "OnDrawUI");
     ControllerManager.AddEventHandler <IEntityController, CollisionEventArgs>(EntityEventHandlers.OnCollisionEnter, "OnCollisionEnter");
     ControllerManager.AddEventHandler <IEntityController, CollisionEventArgs>(EntityEventHandlers.OnCollisionContinue, "OnCollisionContinue");
     ControllerManager.AddEventHandler <IEntityController, CollisionEventArgs>(EntityEventHandlers.OnCollisionExit, "OnCollisionExit");
 }
Example #2
0
 /// <summary>Initializes static members of the WorldController class</summary>
 static WorldController()
 {
     ControllerManager.AddEventHandler <IWorldController, EventArgs>(WorldEventHandlers.OnStart, "OnStart");
     ControllerManager.AddEventHandler <IWorldController, FrameEventArgs>(WorldEventHandlers.OnUpdate, "OnUpdate");
     ControllerManager.AddEventHandler <IWorldController, EventArgs>(WorldEventHandlers.OnDrawUI, "OnDrawUI");
 }