public void Load(ChunkDeserializer deserializer) { if (deserializer.TryGetChunk(LIQUID_SIMULATION_ID)) { deserializer.Read(m_min_dirty_cell_per_layer); deserializer.Read(m_max_dirty_cell_per_layer); for (int y = 0; y < m_layers.Length; ++y) { var layer = m_layers[y]; deserializer.Read(layer); } } }
public void Load(ChunkDeserializer deserializer) { if (deserializer.TryGetChunk(SOLID_SIMULATION_ID)) { for (int y = 0; y < m_layers.Length; ++y) { var layer = m_layers[y]; deserializer.Read(layer); } } }