Refactored and simplified lua stuff a lot.
This commit is contained in:
@@ -42,29 +42,13 @@ int moduleCameraPopMatrix(lua_State *L);
|
||||
/**
|
||||
* Getter for camera structure fields.
|
||||
*
|
||||
* @param context The script context.
|
||||
* @param key The field key.
|
||||
* @param structPtr Pointer to the camera structure.
|
||||
* @param outValue Output script value.
|
||||
* @param l The Lua state.
|
||||
*/
|
||||
void moduleCameraGetter(
|
||||
const scriptcontext_t *context,
|
||||
const char_t *key,
|
||||
const void *structPtr,
|
||||
scriptvalue_t *outValue
|
||||
);
|
||||
int moduleCameraIndex(lua_State *l);
|
||||
|
||||
/**
|
||||
* Setter for camera structure fields.
|
||||
*
|
||||
* @param context The script context.
|
||||
* @param key The field key.
|
||||
* @param structPtr Pointer to the camera structure.
|
||||
* @param inValue Input script value.
|
||||
*
|
||||
* @param l The Lua state.
|
||||
*/
|
||||
void moduleCameraSetter(
|
||||
const scriptcontext_t *context,
|
||||
const char_t *key,
|
||||
void *structPtr,
|
||||
const scriptvalue_t *inValue
|
||||
);
|
||||
int moduleCameraNewIndex(lua_State *l);
|
||||
Reference in New Issue
Block a user