상속: Def
예제 #1
0
 protected LawDriver( LawDef lawDef )
 {
     this.lawDef             = lawDef;
     this.daysToImprisonFor  = lawDef.daysToImprisonFor;
     this.arrestColonists    = lawDef.arrestColonists;
     this.arrestGuests       = lawDef.arrestGuests;
     this.arrestSlaves       = lawDef.arrestSlaves;
 }
 public LawDriver_PublicDrunkeness( LawDef lawDef )
     : base(lawDef)
 {
 }
 public LawDriver_MentalBreak( LawDef lawDef )
     : base(lawDef)
 {
 }
예제 #4
0
 private void ScribeLaw( LawDef law )
 {
     if( law.lawWorker == null )
     {
         return;
     }
     if(
         ( Scribe.mode == LoadSaveMode.Saving )||
         (
             ( Scribe.mode == LoadSaveMode.LoadingVars )&&
             ( Scribe.curParent.HasChildNode( law.defName ) )
         )
     )
     {
         Scribe.EnterNode( law.defName );
         law.lawWorker.ExposeData();
         Scribe.ExitNode();
     }
 }