public override void OnEvent(AddRepairMaterial evnt) { if (evnt.Building) { evnt.Building.SendMessage("AddRepairMaterialReal", evnt.IsLog); } }
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); } }