From 011e11af2caa9da43e92cb7c5806502645270f9d Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Fri, 1 Mar 2013 19:35:29 +0000 Subject: New fire simulator, fully rewritten to the new scheme of things, directly accessing chunk data. http://forum.mc-server.org/showthread.php?tid=617&pid=6626#pid6626 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1233 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/ChunkDef.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'source/ChunkDef.h') diff --git a/source/ChunkDef.h b/source/ChunkDef.h index 9e5f190b8..b0d053b5e 100644 --- a/source/ChunkDef.h +++ b/source/ChunkDef.h @@ -516,3 +516,31 @@ public: + +/// Generic template that can store any kind of data together with a triplet of 3 coords: +template class cCoordWithData +{ +public: + int x; + int y; + int z; + X Data; + + cCoordWithData(int a_X, int a_Y, int a_Z) : + x(a_X), y(a_Y), z(a_Z) + { + } + + cCoordWithData(int a_X, int a_Y, int a_Z, const X & a_Data) : + x(a_X), y(a_Y), z(a_Z), Data(a_Data) + { + } +} ; + +// Illegal in C++03: typedef std::list< cCoordWithData > cCoordWithDataList; +typedef cCoordWithData cCoordWithInt; +typedef std::list cCoordWithIntList; + + + + -- cgit v1.2.3