/// <summary> /// Reads the texture from NTX /// </summary> /// <param name="reader">The reader.</param> public void Read(BinaryReaderExt reader) { TextureName = reader.ReadAsciiStatic(64); var textureSize = reader.ReadInt32(); #if DEBUG Unknown = reader.ReadInt32(); #else reader.ReadInt32(); #endif Texture = reader.ReadBytes(textureSize); }
public void Unserialize(BinaryReaderExt reader) { Id = reader.ReadInt64(); MarkId = reader.ReadInt64(); Name = reader.ReadUnicodeStatic(13); Description = reader.ReadUnicodeStatic(61); Url = reader.ReadAsciiStatic(33); CreateDate = reader.ReadUInt32(); CloseDate = reader.ReadUInt32(); BanishDate = reader.ReadUInt32(); OwnChannel = reader.ReadAsciiStatic(24); State = reader.ReadAsciiStatic(2); Ranking = reader.ReadUInt32(); Point = reader.ReadUInt32(); ChannelWinCnt = reader.ReadUInt32(); MemberCnt = reader.ReadUInt32(); TotalExp = reader.ReadInt64(); TotalMoney = reader.ReadInt64(); Version = reader.ReadUInt32(); OwnerId = reader.ReadInt64(); LeaderId = reader.ReadInt64(); OwnerName = reader.ReadUnicodeStatic(21); LeaderName = reader.ReadUnicodeStatic(21); }