public void Set(DataSpawn value) { this._ID = value._ID; this._TestInt = value._TestInt; this._TestString = value._TestString; this._TestLanguage = value._TestLanguage; this._TestBool = value._TestBool; this._TestInt2 = value._TestInt2; this._TestEnumName = value._TestEnumName; }
public static DataSpawn Read(string fileName, IScorpioReader reader) { var ret = new DataSpawn(); ret._ID = reader.ReadInt32(); ret._TestInt = reader.ReadInt32(); ret._TestString = reader.ReadString(); ret._TestLanguage = reader.ReadString(); ret._TestBool = reader.ReadBool(); ret._TestInt2 = Int2.Read(fileName, reader); ret._TestEnumName = (TestEnum)reader.ReadInt32(); ret.m_IsInvalid = ret.CheckInvalid(); return(ret); }
public TableSpawn Initialize(string fileName, IScorpioReader reader) { var iRow = TableUtil.ReadHead(reader, fileName, FILE_MD5_CODE); for (var i = 0; i < iRow; ++i) { var pData = DataSpawn.Read(fileName, reader); if (m_dataArray.ContainsKey(pData.ID())) { m_dataArray[pData.ID()].Set(pData); } else { m_dataArray.Add(pData.ID(), pData); } } m_count = m_dataArray.Count; return(this); }