mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
LunaCON: expose g_tile[] members of 'tiledata'.
git-svn-id: https://svn.eduke32.com/eduke32@5232 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
fd94930f14
commit
40f177cafd
4 changed files with 27 additions and 2 deletions
|
@ -851,7 +851,7 @@ end
|
|||
local UD = function(memb) return "_gud(_pli)"..memb end
|
||||
local UDRO = function(memb) return { UD(memb) } end
|
||||
|
||||
-- NOTE: Only members that actually encountered in existing mods are added here.
|
||||
-- NOTE: Only members that are actually encountered in existing mods are added here.
|
||||
-- TODO: r5043, r5044
|
||||
local UserdefLabels = {
|
||||
althud = UD".althud",
|
||||
|
@ -913,6 +913,22 @@ local InputLabels = {
|
|||
extbits = INP".extbits",
|
||||
}
|
||||
|
||||
local TileDataLabels = {
|
||||
-- tilesiz[]
|
||||
xsize = "g_tile.sizx[%s]",
|
||||
ysize = "g_tile.sizy[%s]",
|
||||
|
||||
-- picanm[]
|
||||
-- "animframes",
|
||||
-- "xoffset",
|
||||
-- "yoffset",
|
||||
-- "animspeed",
|
||||
-- "animtype",
|
||||
|
||||
-- g_tile[]
|
||||
gameflags = { "g_tile[%s]._flags" },
|
||||
}
|
||||
|
||||
StructAccessCode =
|
||||
{
|
||||
sector = SectorLabels,
|
||||
|
@ -924,7 +940,8 @@ StructAccessCode =
|
|||
thisprojectile = SpriteProjectileLabels,
|
||||
userdef = UserdefLabels,
|
||||
input = InputLabels,
|
||||
-- TODO: tiledata, paldata
|
||||
tiledata = TileDataLabels,
|
||||
-- TODO: tiledata picanm[] members, paldata
|
||||
}
|
||||
|
||||
-- NOTE: These MUST be in reverse lexicographical order!
|
||||
|
|
|
@ -445,6 +445,12 @@ const int16_t headspritesect[MAXSECTORS+1], headspritestat[MAXSTATUS+1];
|
|||
const int16_t prevspritesect[MAXSPRITES], prevspritestat[MAXSPRITES];
|
||||
const int16_t nextspritesect[MAXSPRITES], nextspritestat[MAXSPRITES];
|
||||
const vec2_t tilesiz[MAXTILES];
|
||||
typedef struct {
|
||||
uint8_t num; // animate number
|
||||
int8_t xofs, yofs;
|
||||
uint8_t sf; // anim. speed and flags
|
||||
} picanm_t;
|
||||
const picanm_t picanm[MAXTILES];
|
||||
|
||||
uint8_t show2dsector[(MAXSECTORS+7)>>3];
|
||||
|
||||
|
|
|
@ -47,6 +47,7 @@ prevspritestat;
|
|||
nextspritesect;
|
||||
nextspritestat;
|
||||
tilesiz;
|
||||
picanm;
|
||||
|
||||
show2dsector;
|
||||
|
||||
|
|
|
@ -47,6 +47,7 @@ prevspritestat;
|
|||
nextspritesect;
|
||||
nextspritestat;
|
||||
tilesiz;
|
||||
picanm;
|
||||
|
||||
show2dsector;
|
||||
|
||||
|
|
Loading…
Reference in a new issue