Introduce a few "new" types for convenience when dealing with pointers to sprites, walls, and sectors that bypass the StructTracker stuff

git-svn-id: https://svn.eduke32.com/eduke32@7602 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-04-18 17:25:14 +00:00 committed by Christoph Oelckers
parent ab857c4e8f
commit 5948513d76

View file

@ -341,21 +341,27 @@ enum {
#include "buildtypes.h" #include "buildtypes.h"
#if !defined NEW_MAP_FORMAT #if !defined NEW_MAP_FORMAT
typedef sectortypev7 sectortype; using sectortype = sectortypev7;
typedef usectortypev7 usectortype; using usectortype = usectortypev7;
typedef walltypev7 walltype; using walltype = walltypev7;
typedef uwalltypev7 uwalltype; using uwalltype = uwalltypev7;
#else #else
typedef sectortypevx sectortype; using sectortype = sectortypevx;
typedef usectortypevx usectortype; using usectortype = usectortypevx;
typedef walltypevx walltype; using walltype = walltypevx;
typedef uwalltypevx uwalltype; using uwalltype = uwalltypevx;
#endif #endif
typedef spritetypev7 spritetype; using spritetype = spritetypev7;
typedef uspritetypev7 uspritetype; using uspritetype = uspritetypev7;
using tspritetype = uspritetypev7;
using uspriteptr_t = uspritetype const *;
using uwallptr_t = uwalltype const *;
using usectorptr_t = usectortype const *;
using tspriteptr_t = tspritetype *;
// this is probably never going to be necessary // this is probably never going to be necessary
EDUKE32_STATIC_ASSERT(sizeof(sectortype) == sizeof(usectortype)); EDUKE32_STATIC_ASSERT(sizeof(sectortype) == sizeof(usectortype));