private static void OnAutoRefillChanged(MySyncOxygenGenerator syncObject, ref ChangeAutoRefillMsg message, MyNetworkClient sender) { syncObject.m_generator.AutoRefill = message.AutoRefill; if (Sync.IsServer) { Sync.Layer.SendMessageToAllButOne(ref message, sender.SteamUserId); } }
private static void OnRefillRequest(MySyncOxygenGenerator syncObject, ref RefillRequestMsg message, MyNetworkClient sender) { syncObject.m_generator.RefillBottles(); }
private static void OnAutoRefillChanged(MySyncOxygenGenerator syncObject, ref ChangeAutoRefillMsg message, MyNetworkClient sender) { syncObject.m_generator.m_autoRefill = message.AutoRefill; }