LunaCON: Expose all structs to inline access. Tiledata and paldata are still to-do.

DONT_BUILD.

git-svn-id: https://svn.eduke32.com/eduke32@5166 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2015-04-26 00:08:14 +00:00
parent 5979378c4e
commit d11bf55a82

View file

@ -778,14 +778,6 @@ local WallLabels = {
uhitag = S2U(WAL".hitag"), uhitag = S2U(WAL".hitag"),
} }
StructAccessCode =
{
sector = SectorLabels,
wall = WallLabels,
sprite = ActorLabels,
player = PlayerLabels,
}
local function tonegtag(LabelsTab, member, funcname) local function tonegtag(LabelsTab, member, funcname)
local memb = LabelsTab[member] local memb = LabelsTab[member]
LabelsTab[member] = { memb, memb.."="..funcname.."(%%s)" } LabelsTab[member] = { memb, memb.."="..funcname.."(%%s)" }
@ -921,14 +913,18 @@ local InputLabels = {
extbits = INP".extbits", extbits = INP".extbits",
} }
-- These structs cannot be accessed by inline array exprs in CON: StructAccessCode =
StructAccessCode2 =
{ {
sector = SectorLabels,
wall = WallLabels,
sprite = ActorLabels,
player = PlayerLabels,
tspr = TspriteLabels, tspr = TspriteLabels,
projectile = ProjectileLabels, projectile = ProjectileLabels,
thisprojectile = SpriteProjectileLabels, thisprojectile = SpriteProjectileLabels,
userdef = UserdefLabels, userdef = UserdefLabels,
input = InputLabels, input = InputLabels,
-- TODO: tiledata, paldata
} }
-- NOTE: These MUST be in reverse lexicographical order! -- NOTE: These MUST be in reverse lexicographical order!