/// <summary> /// Writes the data element into the given buffer (at its current position). /// </summary> /// <param name="buffer">The buffer where the data element should be deserialized into.</param> public void WriteData(RAMBuffer buffer) { buffer.WriteUInteger(UnknownPlayerCount); ScenarioDataElementTools.AssertListLength(PlayerDiplomacyVariousEntries, 8); PlayerDiplomacyVariousEntries.ForEach(e => e.WriteData(buffer)); buffer.WriteULong(Unknown); }