コード例 #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;
 }
コード例 #2
0
 public LawDriver_PublicDrunkeness( LawDef lawDef )
     : base(lawDef)
 {
 }
コード例 #3
0
 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();
     }
 }