コード例 #1
0
 public LcarsDef()
 {
     Caption          = "";
     ComponentType    = LcarsComponentType.Gray;
     NeedsDoubleTap   = false;
     IsCommandable    = true;
     Command          = null;
     PlayCommandSound = null;
     Color            = Lcars.ComponentColors[ComponentType];
 }
コード例 #2
0
 public void UpdateWith(LcarsDef other)
 {
     if (other == null)
     {
         return;
     }
     Caption        = other.Caption;
     ComponentType  = other.ComponentType;
     NeedsDoubleTap = other.NeedsDoubleTap;
     IsCommandable  = other.IsCommandable;
     Command        = other.Command;
 }
コード例 #3
0
ファイル: LcarsComponent.cs プロジェクト: jorik041/lcars
 public void UpdateWith(LcarsDef other)
 {
     if (other == null)
         return;
     Caption = other.Caption;
     ComponentType = other.ComponentType;
     NeedsDoubleTap = other.NeedsDoubleTap;
     IsCommandable = other.IsCommandable;
     Command = other.Command;
 }