public void Initialize() { m_EntityConfig.Clear(); var e = LoadJsonObject.CreateObjectFromResource <Dictionary <string, JEntityConfig> >("Config/Entity/PlayerConfig"); CopyConfig(e.Keys.GetEnumerator(), e.Values.GetEnumerator()); }
void LoadRoomContentConfig() { var e = LoadJsonObject.CreateObjectFromResource <Dictionary <string, JRoomContentConfig> >("Config/Level/RoomContentConfig").GetEnumerator(); while (e.MoveNext()) { string name = e.Current.Key.ToLower(); e.Current.Value.name = name; m_SourceConfigs.Add(name, e.Current.Value); } }
public void Initialize() { m_LevelConfigs = new Dictionary <int, JLevelConfig>(); var e = LoadJsonObject.CreateObjectFromResource <Dictionary <int, string> >("Config/Level/LevelConfig").GetEnumerator(); while (e.MoveNext()) { JLevelConfig levelConfig = LoadJsonObject.CreateObjectFromResource <JLevelConfig>(e.Current.Value); levelConfig.index = e.Current.Key; m_LevelConfigs.Add(e.Current.Key, levelConfig); } }
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// private void LoadConfig() { foreach (var config in LoadJsonObject.CreateObjectFromResource <JWindowConfig[]>("Config/UIConfig")) { if (m_UIWindowConfigs.ContainsKey(config.name)) { Debug.LogError("已存在相同项 " + config.name); } else { m_UIWindowConfigs.Add(config.name, config); } } }
public void Initialize() { m_Texts = LoadJsonObject.CreateObjectFromResource <JCustomTextConfigs>("Config/CustomTextConfigs"); }
public static void LoadConfig() { ConfigInstance config = LoadJsonObject.CreateObjectFromResource <ConfigInstance>("Config/Config"); config.ParseToConfig(); }