public static void Save(BinaryWriter writer, MapTimeEventState state) { writer.WriteInt32(state.Events.Count); foreach (var timeEvent in state.Events) { SavedTimeEvent.Save(writer, timeEvent); } }
private static void WriteTimeEvents(BinaryWriter writer, List <SavedTimeEvent> events) { writer.WriteInt32(events.Count); foreach (var timeEvent in events) { SavedTimeEvent.Save(writer, timeEvent); } }