private void EndSessionGeneric(Enums.SysConfigType messageType) { if (_internalCurrentClientStatus != Enums.LiveClientStatus.CLEANING_DONE) { _internalCurrentClientStatus = Enums.LiveClientStatus.GAMEOVER_FOR_CLEANING; _internalClientRunningMode.Duration = 0; _internalClientRunningMode.StartTime = DateTime.MinValue; _internalEndGameMessageConfigType = messageType; _exitGameFlag = true; VRCommand cmd = new VRCommand(new EndNow(Utility.GetSystemConfig(_internalEndGameMessageConfigType) ?? "Your Time is up. Thanks for playing!")); SendCommandToUIClient(cmd); } }
public static string GetSystemConfig(Enums.SysConfigType configType) { SysConfig sysConfig = _cachedSystemConfig.Where(x => x.Type == configType).FirstOrDefault(); return(sysConfig.Value); }
public SysConfig(Enums.SysConfigType type, string value) { Type = type; Value = value; }
public SysConfig(Enums.SysConfigType type) { Type = type; Value = ""; }