polserver/pol-core/plib/staticblock.h
turley 189cad3479 Formating everything
Authors are not forced to use the clang-format setting, but should
atleast be inspired by the style.
The only thing which is now not allowed are tabs for ident/alignment!
2016-02-19 19:26:35 +01:00

42 lines
634 B
C++

/** @file
*
* @par History
* - 2005/06/01 Shinigami: added StaticEntryList for use with getstatics - to fill a list with
* statics
*/
#ifndef PLIB_STATICBLOCK_H
#define PLIB_STATICBLOCK_H
#include "../clib/rawtypes.h"
#include <vector>
namespace Pol
{
namespace Plib
{
struct STATIC_INDEX
{
u32 index;
};
struct STATIC_ENTRY
{
u16 objtype;
u8 xy; // high nibble: x, low nibble: y (0x80, 0x40 bits unused)
s8 z;
u16 hue;
};
class StaticEntryList : public std::vector<STATIC_ENTRY>
{
};
const unsigned STATICBLOCK_CHUNK = 8;
const unsigned STATICBLOCK_SHIFT = 3;
const unsigned STATICCELL_MASK = 0x7;
}
}
#endif