コード例 #1
0
ファイル: AuxActionRef.cs プロジェクト: pzgulyas/openrails-1
 public ActionContainer()
 {
     SpecAuxActions   = new List <AuxActionRef>();
     GenAuxActions    = new List <KeyValuePair <string, AuxActionRef> >();
     GenFunctions     = new List <KeyValuePair <System.Type, AuxActionRef> >();
     AvailableActions = new List <string>();
     UsedActions      = new List <string>();
     //
     //  Register all action, avoiding to give the same index
     AuxActionHorn.Register("AuxActionHorn");
     AuxControlStart.Register("AuxControlStart");
     AuxControlStopped.Register("AuxControlStopped");
     LoadAvailableActions();
 }
コード例 #2
0
ファイル: AuxActionRef.cs プロジェクト: pzgulyas/openrails-1
 public void SaveProperties(AuxControlStart action)
 {
     ActivationDelay = action.ActivationDelay;
     ActionDuration  = action.ActionDuration;
 }