From f44d123ba8ca14c3df90afff85a0674a4463cfa2 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Sun, 7 Jun 2015 11:52:14 +0100 Subject: Vector hasher is now a separate class --- src/Simulator/IncrementalRedstoneSimulator.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/Simulator') diff --git a/src/Simulator/IncrementalRedstoneSimulator.h b/src/Simulator/IncrementalRedstoneSimulator.h index b0d3ad7af..9fbefae73 100644 --- a/src/Simulator/IncrementalRedstoneSimulator.h +++ b/src/Simulator/IncrementalRedstoneSimulator.h @@ -76,19 +76,21 @@ private: { public: /// Per-chunk data for the simulator, specified individual chunks to simulate - std::unordered_map, Vector3i> m_ChunkData; + + /** test */ + std::unordered_map, VectorHasher> m_ChunkData; std::vector m_PoweredBlocks; std::vector m_LinkedBlocks; - std::unordered_map m_SimulatedPlayerToggleableBlocks; - std::unordered_map m_RepeatersDelayList; + std::unordered_map> m_SimulatedPlayerToggleableBlocks; + std::unordered_map> m_RepeatersDelayList; }; public: typedef std::vector PoweredBlocksList; typedef std::vector LinkedBlocksList; - typedef std::unordered_map SimulatedPlayerToggleableList; - typedef std::unordered_map RepeatersDelayList; + typedef std::unordered_map> SimulatedPlayerToggleableList; + typedef std::unordered_map> RepeatersDelayList; private: -- cgit v1.2.3