From 77c5c1eb19b0d65b6f3d1480434a8b010ee93058 Mon Sep 17 00:00:00 2001 From: ZippeyKeys12 Date: Sun, 23 Sep 2018 19:16:49 -0500 Subject: [PATCH] Export AllClasses --- src/g_game.cpp | 1 + wadsrc/static/zscript/base.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/src/g_game.cpp b/src/g_game.cpp index 2758b3c17..ffc5b40b5 100644 --- a/src/g_game.cpp +++ b/src/g_game.cpp @@ -2986,6 +2986,7 @@ DEFINE_GLOBAL(playeringame) DEFINE_GLOBAL(PlayerClasses) DEFINE_GLOBAL_NAMED(Skins, PlayerSkins) DEFINE_GLOBAL(consoleplayer) +DEFINE_GLOBAL_NAMED(PClass::AllClasses, AllClasses) DEFINE_GLOBAL_NAMED(PClassActor::AllActorClasses, AllActorClasses) DEFINE_GLOBAL(validcount) DEFINE_GLOBAL(multiplayer) diff --git a/wadsrc/static/zscript/base.txt b/wadsrc/static/zscript/base.txt index 9ae1452e5..314b59b3a 100644 --- a/wadsrc/static/zscript/base.txt +++ b/wadsrc/static/zscript/base.txt @@ -1,5 +1,6 @@ struct _ native // These are the global variables, the struct is only here to avoid extending the parser for this. { + native readonly Array AllClasses; native readonly Array > AllActorClasses; native readonly Array<@PlayerClass> PlayerClasses; native readonly Array<@PlayerSkin> PlayerSkins;