private Events.EventResult Initialize(object sender, Events.EventsArgs.EEventArgs args) { Console.WriteLine("Init ComponentManager"); for (int i = 0; i < _Components.Components.Count; i++) { (_Components.Components[i] as BaseComponent).SubscribleEvent(EventCore.Events.EventBus.INSTANCE); } return(new Events.EventResult(this, "Initialize")); }
private Events.EventResult OnStart(object sender, Events.EventsArgs.EEventArgs args) { return(new Events.EventResult(this, "Start")); }
private Events.EventResult OnPreTick(object sender, Events.EventsArgs.EEventArgs args) { return(new Events.EventResult(this, "Pre tick")); }
private Events.EventResult OnTick(object sender, Events.EventsArgs.EEventArgs args) { //Console.WriteLine("Tick event"); return(new Events.EventResult(this, "tick")); }