Exemplo n.º 1
0
 //FA 16.07.13 beschissene Q&D Lösung, Trennung Lib und Model zur Diskussion stellen
 public void Command_onControllerEvent(clsEventData objEventData)
 {
     if (objEventData.objCommand.GetType() == typeof(comPlaceUnit))
     {
         comPlaceUnit cmd = (comPlaceUnit)objEventData.objCommand;
         this.Unit_createNew(cmd.strNewOwner(), cmd.intNewUnitTypeID(), cmd.TargetSektor.objSektorKoord.uniqueIDstr());
     }
 }
Exemplo n.º 2
0
 public void raiseControllerEvent()
 {
     if (onControllerEvent != null)
     {
         clsEventData obj = new clsEventData();
         obj.objCommand = this;
         onControllerEvent(obj);
     }
 }