public virtual void Init(MyObjectBuilder_GlobalEventBase ob)
 {
     Definition = MyDefinitionManager.Static.GetEventDefinition(ob.DefinitionId);
     Action = MyGlobalEventFactory.GetEventHandler(Definition.Id);
     ActivationTime = TimeSpan.FromMilliseconds(ob.ActivationTimeMs);
     Enabled = ob.Enabled;
 }
 public virtual void Init(MyObjectBuilder_GlobalEventBase ob)
 {
     Definition = MyDefinitionManager.Static.GetEventDefinition(ob.GetId());
     Action = MyGlobalEventFactory.GetEventHandler(ob.GetId());
     ActivationTime = TimeSpan.FromMilliseconds(ob.ActivationTimeMs);
     Enabled = ob.Enabled;
     RemoveAfterHandlerExit = false;
 }
		public Event(MyObjectBuilder_GlobalEventBase definition)
			: base(definition)
		{}