2018-10-05 09:20:30 +00:00
|
|
|
#ifndef GAME_MAPITEMS_EX_H
|
|
|
|
#define GAME_MAPITEMS_EX_H
|
|
|
|
#include <game/generated/protocol.h>
|
|
|
|
|
2022-08-10 01:51:03 +00:00
|
|
|
#include "mapitems.h"
|
|
|
|
|
2018-10-05 09:20:30 +00:00
|
|
|
enum
|
|
|
|
{
|
2020-09-26 19:41:58 +00:00
|
|
|
__MAPITEMTYPE_UUID_HELPER = OFFSET_MAPITEMTYPE_UUID - 1,
|
|
|
|
#define UUID(id, name) id,
|
|
|
|
#include "mapitems_ex_types.h"
|
|
|
|
#undef UUID
|
2018-10-05 09:20:30 +00:00
|
|
|
END_MAPITEMTYPES_UUID,
|
|
|
|
};
|
|
|
|
|
|
|
|
struct CMapItemTest
|
|
|
|
{
|
2020-09-26 19:41:58 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
CURRENT_VERSION = 1
|
|
|
|
};
|
2018-10-05 09:20:30 +00:00
|
|
|
|
|
|
|
int m_Version;
|
|
|
|
int m_aFields[2];
|
|
|
|
int m_Field3;
|
|
|
|
int m_Field4;
|
2020-09-26 19:41:58 +00:00
|
|
|
};
|
2018-10-05 09:20:30 +00:00
|
|
|
|
2018-10-08 20:44:49 +00:00
|
|
|
struct CMapItemAutoMapperConfig
|
|
|
|
{
|
2020-09-26 19:41:58 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
CURRENT_VERSION = 1
|
|
|
|
};
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
FLAG_AUTOMATIC = 1
|
|
|
|
};
|
2018-10-08 20:44:49 +00:00
|
|
|
|
|
|
|
int m_Version;
|
|
|
|
int m_GroupId;
|
|
|
|
int m_LayerId;
|
|
|
|
int m_AutomapperConfig;
|
|
|
|
int m_AutomapperSeed;
|
|
|
|
int m_Flags;
|
2020-09-26 19:41:58 +00:00
|
|
|
};
|
2018-10-05 09:20:30 +00:00
|
|
|
|
2022-08-10 01:51:03 +00:00
|
|
|
struct CMapItemGroupEx
|
|
|
|
{
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
CURRENT_VERSION = 1
|
|
|
|
};
|
|
|
|
|
|
|
|
int m_Version;
|
|
|
|
|
|
|
|
// ItemGroup's perceived distance from camera when zooming. Similar to how
|
|
|
|
// Parallax{X,Y} works when camera is moving along the X and Y axes,
|
|
|
|
// this setting applies to camera moving closer or away (zooming in or out).
|
|
|
|
int m_ParallaxZoom;
|
|
|
|
};
|
|
|
|
|
|
|
|
int GetParallaxZoom(const CMapItemGroup *pGroup, const CMapItemGroupEx *pGroupEx);
|
|
|
|
int GetParallaxZoomDefault(int ParallaxX, int ParallaxY);
|
|
|
|
|
2018-10-05 09:20:30 +00:00
|
|
|
void RegisterMapItemTypeUuids(class CUuidManager *pManager);
|
|
|
|
#endif // GAME_MAPITEMS_EX_H
|