Exemple #1
0
        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);
            }
        }
Exemple #2
0
        public static string GetSystemConfig(Enums.SysConfigType configType)
        {
            SysConfig sysConfig = _cachedSystemConfig.Where(x => x.Type == configType).FirstOrDefault();

            return(sysConfig.Value);
        }
Exemple #3
0
 public SysConfig(Enums.SysConfigType type, string value)
 {
     Type  = type;
     Value = value;
 }
Exemple #4
0
 public SysConfig(Enums.SysConfigType type)
 {
     Type  = type;
     Value = "";
 }