The Battle for Wesnoth  1.17.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 151 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 152 of file lua_terrainmap.cpp.

◆ lua_map_ref() [2/3]

lua_map_ref::lua_map_ref ( string_view  data)
inline

Definition at line 156 of file lua_terrainmap.cpp.

◆ lua_map_ref() [3/3]

lua_map_ref::lua_map_ref ( gamemap_base ref)
inline

Definition at line 160 of file lua_terrainmap.cpp.

Member Function Documentation

◆ get_map()

gamemap_base& lua_map_ref::get_map ( )
inline

Definition at line 163 of file lua_terrainmap.cpp.

Member Data Documentation

◆ map_ptr

gamemap_base* lua_map_ref::map_ptr
private

Definition at line 168 of file lua_terrainmap.cpp.

◆ owned_map

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

Definition at line 167 of file lua_terrainmap.cpp.


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