mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 09:21:36 +00:00
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:
parent
5979378c4e
commit
d11bf55a82
1 changed files with 6 additions and 10 deletions
|
@ -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!
|
||||||
|
|
Loading…
Reference in a new issue