コード例 #1
0
 public override void OnEvent(AddRepairMaterial evnt)
 {
     if (evnt.Building)
     {
         evnt.Building.SendMessage("AddRepairMaterialReal", evnt.IsLog);
     }
 }
コード例 #2
0
 public void AddRepairMaterial(bool isLog)
 {
     if (BoltNetwork.isRunning)
     {
         AddRepairMaterial addRepairMaterial = global::AddRepairMaterial.Create(GlobalTargets.OnlyServer);
         addRepairMaterial.Building = base.entity;
         addRepairMaterial.IsLog    = isLog;
         addRepairMaterial.Send();
     }
     else
     {
         this.AddRepairMaterialReal(isLog);
     }
 }
コード例 #3
0
 public override void OnEvent(AddRepairMaterial evnt)
 {
     if (evnt.Building)
     {
         evnt.Building.SendMessage("AddRepairMaterialReal", evnt.IsLog);
     }
 }