void DestroyScene() { if (s_SceneInfoMap != null) { s_SceneInfoMap.Clear(); } }
void DestroyModel() { if (s_ModelInfoMap != null) { s_ModelInfoMap.Clear(); } }
void DestroyMusic() { if (s_MusicInfoMap != null) { s_MusicInfoMap.Clear(); } }
protected void _Load <T>(XQFileStream file, XQHashtable hash, Action <T, ushort> action) where T : IStaticDataBase, new() { hash.Clear(); ushort usNumber = 0; file.ReadUShort(ref usNumber); for (ushort i = 0; i < usNumber; i++) { T info = new T(); info.Load(file); if (action != null) { action(info, i); } if (!hash.ContainsKey(info.ID)) { if (info.ID != 0) { hash.Add(info.ID, info); } } else { Debug.LogError(info.GetType() + " Has SameKey : " + info.ID); } } }
void Destroy() { if (s_ItemInfoMap != null) { s_ItemInfoMap.Clear(); } if (null != s_SkinInfoMap) { s_SkinInfoMap.Clear(); } }