diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-16 21:03:40 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-16 21:03:40 (GMT) |
| commit | edad8f46af6cf2403c2ffa77ecfa138ae1b9f8d9 (patch) | |
| tree | 94ac1023a0241e27176d63aabee26fd1b876e08b /src/simulation/Snapshot.h | |
| parent | f19c7f62c77f6a3e8f5728e015166b0c625f5f67 (diff) | |
| download | powder-edad8f46af6cf2403c2ffa77ecfa138ae1b9f8d9.zip powder-edad8f46af6cf2403c2ffa77ecfa138ae1b9f8d9.tar.gz | |
Undo/Snapshots, fixes #118
Diffstat (limited to 'src/simulation/Snapshot.h')
| -rw-r--r-- | src/simulation/Snapshot.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/src/simulation/Snapshot.h b/src/simulation/Snapshot.h new file mode 100644 index 0000000..a1c34fa --- /dev/null +++ b/src/simulation/Snapshot.h @@ -0,0 +1,53 @@ +#pragma once + +#include <vector> + +#include "Particle.h" + +class Snapshot +{ +public: + std::vector<float> AirPressure; + std::vector<float> AirVelocityX; + std::vector<float> AirVelocityY; + + std::vector<Particle> Particles; + std::vector<Particle> PortalParticles; + + std::vector<int> WirelessData; + + std::vector<float> GravVelocityX; + std::vector<float> GravVelocityY; + std::vector<float> GravValue; + std::vector<float> GravMap; + + std::vector<unsigned char> BlockMap; + std::vector<unsigned char> ElecMap; + + std::vector<float> FanVelocityX; + std::vector<float> FanVelocityY; + + Snapshot() : + AirPressure(), + AirVelocityX(), + AirVelocityY(), + Particles(), + PortalParticles(), + WirelessData(), + GravVelocityX(), + GravVelocityY(), + GravValue(), + GravMap(), + BlockMap(), + ElecMap(), + FanVelocityX(), + FanVelocityY() + { + + } + + virtual ~Snapshot() + { + + } +};
\ No newline at end of file |
