]>
git.bts.cx Git - benzene.git/blob - src/bz/scripting/environment_internal.h
1 #ifndef BZ_SCRIPTING_ENVIRONMENT_INTERNAL_H
2 #define BZ_SCRIPTING_ENVIRONMENT_INTERNAL_H
4 #include <bz/scripting/environment.h>
6 #include <bz/scripting/script_internal.h>
7 #include <bz/types/common.h>
8 #include <bz/types/identifier.h>
9 #include <sun/compiler/compiler.h>
15 /*#define kBZScriptingEnvironmentScriptCount 256
16 #define kBZScriptingEnvironmentScriptInstanceCount 256
17 #define kBZScriptingEnvironmentPublicCount 256
19 struct BZScriptingEnvironmentPublic {
20 BZIdentifierHash identifierHash;
23 typedef struct BZScriptingEnvironmentPublic BZScriptingEnvironmentPublic;
25 struct BZScriptingEnvironment {
26 BZMemoryArenaID arena;
27 char identifier[kBZMaxIdentifierLength];
29 BZScript scripts[kBZScriptingEnvironmentScriptCount];
30 BZScriptInstance instances[kBZScriptingEnvironmentScriptInstanceCount];
31 BZScriptingEnvironmentPublic publics[kBZScriptingEnvironmentPublicCount];
34 extern bool bzScriptingGetEnvironmentPublic(SVMOperand *out, BZScriptingEnvironmentID environment, BZIdentifierHash identifierHash);
35 extern void bzScriptingSetEnvironmentPublic(BZScriptingEnvironmentID environment, BZIdentifierHash identifierHash, SVMOperand value);*/