コード例 #1
0
 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);
     }
 }
コード例 #2
0
 private static void OnRefillRequest(MySyncOxygenGenerator syncObject, ref RefillRequestMsg message, MyNetworkClient sender)
 {
     syncObject.m_generator.RefillBottles();
 }
コード例 #3
0
 private static void OnAutoRefillChanged(MySyncOxygenGenerator syncObject, ref ChangeAutoRefillMsg message, MyNetworkClient sender)
 {
     syncObject.m_generator.m_autoRefill = message.AutoRefill;
 }
コード例 #4
0
 private static void OnRefillRequest(MySyncOxygenGenerator syncObject, ref RefillRequestMsg message, MyNetworkClient sender)
 {
     syncObject.m_generator.RefillBottles();
 }
コード例 #5
0
 private static void OnAutoRefillChanged(MySyncOxygenGenerator syncObject, ref ChangeAutoRefillMsg message, MyNetworkClient sender)
 {
     syncObject.m_generator.m_autoRefill = message.AutoRefill;
 }
コード例 #6
0
 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);
     }
 }