From d11bf55a82340503e484e4b44c64ef18df0ef47d Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Sun, 26 Apr 2015 00:08:14 +0000 Subject: [PATCH] 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 --- polymer/eduke32/source/lunatic/con_lang.lua | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/polymer/eduke32/source/lunatic/con_lang.lua b/polymer/eduke32/source/lunatic/con_lang.lua index 997497717..208c853a8 100644 --- a/polymer/eduke32/source/lunatic/con_lang.lua +++ b/polymer/eduke32/source/lunatic/con_lang.lua @@ -778,14 +778,6 @@ local WallLabels = { uhitag = S2U(WAL".hitag"), } -StructAccessCode = -{ - sector = SectorLabels, - wall = WallLabels, - sprite = ActorLabels, - player = PlayerLabels, -} - local function tonegtag(LabelsTab, member, funcname) local memb = LabelsTab[member] LabelsTab[member] = { memb, memb.."="..funcname.."(%%s)" } @@ -921,14 +913,18 @@ local InputLabels = { extbits = INP".extbits", } --- These structs cannot be accessed by inline array exprs in CON: -StructAccessCode2 = +StructAccessCode = { + sector = SectorLabels, + wall = WallLabels, + sprite = ActorLabels, + player = PlayerLabels, tspr = TspriteLabels, projectile = ProjectileLabels, thisprojectile = SpriteProjectileLabels, userdef = UserdefLabels, input = InputLabels, +-- TODO: tiledata, paldata } -- NOTE: These MUST be in reverse lexicographical order!