Пример #1
0
 void DestroyScene()
 {
     if (s_SceneInfoMap != null)
     {
         s_SceneInfoMap.Clear();
     }
 }
Пример #2
0
 void DestroyModel()
 {
     if (s_ModelInfoMap != null)
     {
         s_ModelInfoMap.Clear();
     }
 }
Пример #3
0
 void DestroyMusic()
 {
     if (s_MusicInfoMap != null)
     {
         s_MusicInfoMap.Clear();
     }
 }
Пример #4
0
        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);
                }
            }
        }
Пример #5
0
        void Destroy()
        {
            if (s_ItemInfoMap != null)
            {
                s_ItemInfoMap.Clear();
            }

            if (null != s_SkinInfoMap)
            {
                s_SkinInfoMap.Clear();
            }
        }