Beispiel #1
0
 public void setString(GAME_STRING param, string value, string comment = null)
 {
     if (!mStringList.TryGetValue(param, out StringParameter stringParam))
     {
         stringParam             = new StringParameter();
         stringParam.mValue      = value;
         stringParam.mComment    = comment;
         stringParam.mType       = param;
         stringParam.mTypeString = param.ToString();
         mStringList.Add(param, stringParam);
     }
     else
     {
         stringParam.mValue = value;
         if (!isEmpty(comment))
         {
             stringParam.mComment = comment;
         }
         mStringList[param] = stringParam;
     }
 }
 public void setString(GAME_STRING param, string value, string comment = null)
 {
     if (!mStringList.ContainsKey(param))
     {
         StringParameter strParam = new StringParameter();
         strParam.mValue      = value;
         strParam.mComment    = comment;
         strParam.mType       = param;
         strParam.mTypeString = param.ToString();
         mStringList.Add(param, strParam);
     }
     else
     {
         StringParameter temp = mStringList[param];
         temp.mValue = value;
         if (!isEmpty(comment))
         {
             temp.mComment = comment;
         }
         mStringList[param] = temp;
     }
 }
Beispiel #3
0
 protected void addString(GAME_STRING type)
 {
     mStringNameToDefine.Add(type.ToString(), type);
     mStringDefineToName.Add(type, type.ToString());
 }