Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
		public Event(MyObjectBuilder_GlobalEventBase definition)
			: base(definition)
		{}