The Battle for Wesnoth 1.21.0-dev
 
Loading...
Searching...
No Matches
Static Public Member Functions | Static Public Attributes | List of all members
lua_object_traits< lua_unit * > Struct Reference

Static Public Member Functions

static lua_unit * get (lua_State *L, int n)
 

Static Public Attributes

static auto metatable = getunitKey
 

Detailed Description

Definition at line 278 of file lua_unit.cpp.

Member Function Documentation

◆ get()

static lua_unit * lua_object_traits< lua_unit * >::get ( lua_State *  L,
int  n 
)
inlinestatic

Definition at line 280 of file lua_unit.cpp.

References LU_NOT_UNIT, luaW_tounit_ref(), n, and unit_show_error().

Member Data Documentation

◆ metatable

auto lua_object_traits< lua_unit * >::metatable = getunitKey
inlinestatic

Definition at line 279 of file lua_unit.cpp.


The documentation for this struct was generated from the following file: