Ejemplo n.º 1
0
 private static void OnAddRow(TDAchievementType memberInstance)
 {
     int key = memberInstance.id;
     if (m_DataCache.ContainsKey(key))
     {
         Log.e(string.Format("Invaild,  TDAchievementTypeTable Id already exists {0}", key));
     }
     else
     {
         m_DataCache.Add(key, memberInstance);
         m_DataList.Add(memberInstance);
     }
 }    
Ejemplo n.º 2
0
     public static void Parse(byte[] fileData)
     {
         m_DataCache.Clear();
         m_DataList.Clear();
         DataStreamReader dataR = new DataStreamReader(fileData);
         int rowCount = dataR.GetRowCount();
         int[] fieldIndex = dataR.GetFieldIndex(TDAchievementType.GetFieldHeadIndex());
 #if (UNITY_STANDALONE_WIN) || UNITY_EDITOR || UNITY_STANDALONE_OSX
         dataR.CheckFieldMatch(TDAchievementType.GetFieldHeadIndex(), "AchievementTypeTable");
 #endif
         for (int i = 0; i < rowCount; ++i)
         {
             TDAchievementType memberInstance = new TDAchievementType();
             memberInstance.ReadRow(dataR, fieldIndex);
             OnAddRow(memberInstance);
             memberInstance.Reset();
             CompleteRowAdd(memberInstance);
         }
         Log.i(string.Format("Parse Success TDAchievementType"));
     }
Ejemplo n.º 3
0
 static void CompleteRowAdd(TDAchievementType tdData)
 {
 }