The Battle for Wesnoth  1.19.0-dev
Public Member Functions | Private Attributes | List of all members
lua_map_ref Struct Reference

Public Member Functions

 lua_map_ref (int w, int h, const t_translation::terrain_code &ter)
 
 lua_map_ref (string_view data)
 
 lua_map_ref (gamemap_base &ref)
 
gamemap_baseget_map ()
 

Private Attributes

std::unique_ptr< gamemap_baseowned_map
 
gamemap_basemap_ptr
 

Detailed Description

Definition at line 145 of file lua_terrainmap.cpp.

Constructor & Destructor Documentation

◆ lua_map_ref() [1/3]

lua_map_ref::lua_map_ref ( int  w,
int  h,
const t_translation::terrain_code ter 
)
inline

Definition at line 146 of file lua_terrainmap.cpp.

◆ lua_map_ref() [2/3]

lua_map_ref::lua_map_ref ( string_view  data)
inline

Definition at line 150 of file lua_terrainmap.cpp.

◆ lua_map_ref() [3/3]

lua_map_ref::lua_map_ref ( gamemap_base ref)
inline

Definition at line 154 of file lua_terrainmap.cpp.

Member Function Documentation

◆ get_map()

gamemap_base& lua_map_ref::get_map ( )
inline

Definition at line 157 of file lua_terrainmap.cpp.

References map_ptr.

Member Data Documentation

◆ map_ptr

gamemap_base* lua_map_ref::map_ptr
private

Definition at line 162 of file lua_terrainmap.cpp.

Referenced by get_map().

◆ owned_map

std::unique_ptr<gamemap_base> lua_map_ref::owned_map
private

Definition at line 161 of file lua_terrainmap.cpp.


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