Exemple #1
0
 private static void _ReadFieldMapSettingsFromJSONNode(JSONNode node)
 {
     if (node["language"] != null)
     {
         SettingUtils.fieldMapSettings.language = node["language"].Value;
     }
     if (node["fldMapNo"] != null)
     {
         SettingUtils.fieldMapSettings.fldMapNo = node["fldMapNo"].AsInt;
     }
     if (node["SC_COUNTER_SVR"] != null)
     {
         SettingUtils.fieldMapSettings.SC_COUNTER_SVR = node["SC_COUNTER_SVR"].AsInt;
     }
     if (node["MAP_INDEX_SVR"] != null)
     {
         SettingUtils.fieldMapSettings.MAP_INDEX_SVR = node["MAP_INDEX_SVR"].AsInt;
     }
     if (node["isDebugWalkMesh"] != null)
     {
         SettingUtils.fieldMapSettings.isDebugWalkMesh = node["isDebugWalkMesh"].AsBool;
     }
     if (node["debugObjName"] != null)
     {
         SettingUtils.fieldMapSettings.debugObjName = node["debugObjName"].Value;
     }
     if (node["debugTriIdx"] != null)
     {
         SettingUtils.fieldMapSettings.debugTriIdx = node["debugTriIdx"].AsInt;
     }
     for (Int32 i = 0; i < (Int32)SettingUtils.fieldMapSettings.debugPosMarker.Length; i++)
     {
         if (node["debugPosMarker" + i] != null)
         {
             SettingUtils.fieldMapSettings.debugPosMarker[i] = SettingUtils.ReadVector3(node, "debugPosMarker" + i);
         }
     }
     if (node["debugInt0"] != null)
     {
         SettingUtils.fieldMapSettings.debugInt0 = node["debugInt0"].AsInt;
     }
     if (node["debugFloat0"] != null)
     {
         SettingUtils.fieldMapSettings.debugFloat0 = node["debugFloat0"].AsFloat;
     }
 }