public override void Serialize(BigEndianWriter writer) { writer.WriteInt(Files.Length); foreach (var file in Files) { writer.WriteUTF(file); } }
public override void Serialize(BigEndianWriter writer) { base.Serialize(writer); writer.WriteInt(grade); }
public override void Serialize(BigEndianWriter writer) { writer.WriteInt(initiatorId); writer.WriteInt(otherId); writer.WriteSByte(role); }
public override void Serialize(BigEndianWriter writer) { writer.WriteInt(mapRideId); }
public virtual void Serialize(BigEndianWriter writer) { writer.WriteInt(mapId); writer.WriteSByte(state); }
public override void Serialize(BigEndianWriter writer) { base.Serialize(writer); writer.WriteInt(kickerId); }
public override void Serialize(BigEndianWriter writer) { writer.WriteInt(elemId); writer.WriteShort(skillId); }
public override void Serialize(BigEndianWriter writer) { base.Serialize(writer); writer.WriteInt(carryingCharacterId); }
public override void Serialize(BigEndianWriter writer) { writer.WriteInt(type); writer.WriteInt(genId); }
public override void Serialize(BigEndianWriter writer) { writer.WriteInt(targetId); }
public override void Serialize(BigEndianWriter writer) { writer.WriteInt(entityId); writer.WriteSByte(smileyId); writer.WriteInt(accountId); }
private static void WriteFieldI18n(BigEndianWriter writer, int value) { writer.WriteInt(value); }
private void WriteHeader() { m_writer.WriteUTFBytes("D2O"); m_writer.WriteInt(0); // allocate space to write the correct index table offset }
public override void Serialize(BigEndianWriter writer) { base.Serialize(writer); writer.WriteInt(storageMaxSlot); }
public override void Serialize(BigEndianWriter writer) { writer.WriteInt(requiredVersion); writer.WriteInt(currentVersion); }
public virtual void Serialize(BigEndianWriter writer) { writer.WriteInt(this.value); }
public override void Serialize(BigEndianWriter writer) { writer.WriteInt(memberId); writer.WriteBoolean(online); }
public void Save(string uri) { using (var contentWriter = new BigEndianWriter(new StreamWriter(uri).BaseStream)) { var headerWriter = new BigEndianWriter(); contentWriter.Seek(4, SeekOrigin.Begin); // first table = index table foreach (var index in m_entries.Where(x => x.Value.Text != null)) { headerWriter.WriteInt(index.Key); headerWriter.WriteBoolean(index.Value.UseUndiactricalText); headerWriter.WriteInt((int)contentWriter.Position); contentWriter.WriteUTF(index.Value.Text); if (index.Value.UseUndiactricalText) { headerWriter.WriteInt((int)contentWriter.Position); contentWriter.WriteUTF(index.Value.UnDiactricialText); } } var indexLen = (int)headerWriter.Position; // second table = text index table headerWriter.WriteInt(0); // placeholder for text index table len foreach (var index in m_textEntries.Where(x => x.Value.Text != null)) { headerWriter.WriteUTF(index.Key); headerWriter.WriteInt((int)contentWriter.Position); contentWriter.WriteUTF(index.Value.Text); } var textIndexLen = headerWriter.Position - indexLen - 4; var searchTablePos = headerWriter.Position; headerWriter.Seek(indexLen); headerWriter.WriteInt((int)textIndexLen); // write table len headerWriter.Seek((int)searchTablePos); // third table = search index table headerWriter.WriteInt(0); // placeholder for table len var sortedEntries = m_entries.Values.OrderBy(x => x.Text); foreach (var entry in sortedEntries) { headerWriter.WriteInt(entry.Key); } var searchTableLen = headerWriter.Position - searchTablePos - 4; headerWriter.Seek((int)searchTablePos); headerWriter.WriteInt((int)searchTableLen); // write table len var indexPos = (int)contentWriter.Position; /* write index at end */ byte[] indexData = headerWriter.Data; contentWriter.WriteInt(indexLen); contentWriter.WriteBytes(indexData); /* write index pos at begin */ contentWriter.Seek(0, SeekOrigin.Begin); contentWriter.WriteInt(indexPos); } }
public override void Serialize(BigEndianWriter writer) { writer.WriteInt(spellId); }
public override void Serialize(BigEndianWriter writer) { writer.WriteInt(paddockId); writer.WriteBoolean(bought); writer.WriteVarInt(realPrice); }
public override void Serialize(BigEndianWriter writer) { writer.WriteInt(uid); writer.WriteBoolean(bought); }
public override void Serialize(BigEndianWriter writer) { base.Serialize(writer); writer.WriteInt(spawnMapId); }
public override void Serialize(BigEndianWriter writer) { writer.WriteShort(dungeonId); writer.WriteInt(buddyId); writer.WriteBoolean(accept); }
public override void Serialize(BigEndianWriter writer) { writer.WriteInt(objectUID); }
public override void Serialize(BigEndianWriter writer) { base.Serialize(writer); writer.WriteUTF(name); writer.WriteInt(id); }
public override void Serialize(BigEndianWriter writer) { writer.WriteInt(kamasTotal); }
public override void Serialize(BigEndianWriter writer) { writer.WriteInt(fightId); writer.WriteVarInt(playerId); }
public override void Serialize(BigEndianWriter writer) { writer.WriteInt(characterId); writer.WriteUTF(secretAnswerHash); }
public override void Serialize(BigEndianWriter writer) { writer.WriteInt(kickedId); }
public override void Serialize(BigEndianWriter writer) { writer.WriteInt(timestamp); writer.WriteShort(timezoneOffset); }
public override void Serialize(BigEndianWriter writer) { writer.WriteInt(objectUID); writer.WriteByte(position); }