예제 #1
0
 public SimAction(SimActionType type, TimeSpan actTime, ItemData compModData)
 {
     actType  = type;
     simInfo  = null;
     itemData = compModData;
     time     = actTime;
 }
예제 #2
0
 public SimAction(SimActionType type, TimeSpan?actTime = null)
 {
     actType = type;
     time    = actTime;
     if ((type == SimActionType.atTimer || type == SimActionType.atRestartAtTime) && (actTime == null))
     {
         throw new Exception("Timer or restartAtTime actions require a time.");
     }
     simInfo  = null;
     itemData = null;
 }