private void UpdateSettings() { if (_tick % 33 == 0) { if (SettingsUpdated) { SettingsUpdated = false; DsSet.SaveSettings(); ResetShape(false); if (Session.Enforced.Debug == 3) { Log.Line($"SettingsUpdated: server:{_isServer} - ShieldId [{Shield.EntityId}]"); } } } else if (_tick % 34 == 0) { if (ClientUiUpdate) { ClientUiUpdate = false; if (!_isServer) { DsSet.NetworkUpdate(); } } } }
private void SaveAndSendAll() { _firstSync = true; if (!_isServer) { return; } DsSet.SaveSettings(); DsSet.NetworkUpdate(); DsState.SaveState(); DsState.NetworkUpdate(); if (Session.Enforced.Debug >= 3) { Log.Line($"SaveAndSendAll: ShieldId [{Shield.EntityId}]"); } }
private void UpdateSettings() { if (_tick % 33 == 0) { if (SettingsUpdated) { SettingsUpdated = false; DsSet.SaveSettings(); ResetShape(false); } } else if (_tick % 34 == 0) { if (ClientUiUpdate) { ClientUiUpdate = false; DsSet.NetworkUpdate(); } } }