Example #1
0
 protected override void ParseData(Dictionary <string, object> dic)
 {
     base.ParseData(dic);
     YxTools.TryGetValueWitheKey(dic, out _selfInfo, _keySelf);
     if (dic.ContainsKey(_keyStatus))
     {
         _status = (EnumMatchState)Enum.Parse(typeof(EnumMatchState), dic[_keyStatus].ToString());
     }
 }
Example #2
0
        protected override void ParseData(Dictionary <string, object> dic)
        {
            base.ParseData(dic);
            dic.TryGetValueWitheKey(out _id, KeyId);
            dic.TryGetValueWitheKey(out _title, KeyTitle);
            dic.TryGetValueWitheKey(out _startTime, KeyStartTime);
            dic.TryGetValueWitheKey(out _endTime, KeyEndTime);
            dic.TryGetValueWitheKey(out _gameKey, KeyGameKey);
            dic.TryGetValueWitheKey(out _gameType, KeyGameType);
            dic.TryGetValueWitheKey(out _maxValue, KeyGameMaxValue);
            dic.TryGetValueWitheKey(out _minVlaue, KeyGameMinValue);
            var status = 0;

            dic.TryGetValueWitheKey(out status, KeyStatus);
            _state = (EnumMatchState)status;
            var costType = "";

            dic.TryGetValueWitheKey(out costType, KeyGameCostType);
            _costType = YxTools.GetCostTypeByString(costType);
        }