mirror of
https://github.com/UberGames/RPG-X2.git
synced 2024-11-24 21:32:36 +00:00
Added lua library for refentities (not finished yet)
This commit is contained in:
parent
e47dd4b792
commit
25e0ba4d64
2 changed files with 10 additions and 0 deletions
|
@ -61,6 +61,7 @@ OBJ = \
|
|||
lua_qmath.o \
|
||||
lua_cfx.o \
|
||||
lua_cent.o \
|
||||
lua_refent.o \
|
||||
|
||||
# depency objects from game
|
||||
OBJDEP = \
|
||||
|
@ -155,6 +156,8 @@ lua_qmath.o: ../game/lua_qmath.c; $(DO_CC)
|
|||
lua_vector.o: ../game/lua_vector.c; $(DO_CC)
|
||||
lua_cfx.o: lua_cfx.c; $(DO_CC)
|
||||
lua_cent.o: lua_cent.c; $(DO_CC)
|
||||
lua_refent.o: lua_refent.c; $(DO_CC);
|
||||
|
||||
|
||||
# dependencies from game
|
||||
q_shared.o: ../game/q_shared.c; $(DO_CC)
|
||||
|
|
|
@ -97,5 +97,12 @@ int Luaopen_Cent(lua_State *L);
|
|||
void Lua_PushCent(lua_State *L, centity_t *ent);
|
||||
cent_t *Lua_GetCent(lua_State *L, int argNum);
|
||||
// lua_refent.c
|
||||
typedef struct {
|
||||
refEntity_t *r;
|
||||
} rent_t;
|
||||
|
||||
int Luaopen_Rent(lua_State *L);
|
||||
void Lua_PushRent(lua_State *L, refEntity_t *rent);
|
||||
rent_t *Lua_GetRent(lua_State *L, int argNum);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue