The Battle for Wesnoth  1.15.1+dev
lua_rng.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2014 - 2018 by Chris Beck <render787@gmail.com>
3  Part of the Battle for Wesnoth Project https://www.wesnoth.org/
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY.
11 
12  See the COPYING file for more details.
13 */
14 
15 #pragma once
16 
17 /**
18  * This namespace contains bindings for lua to hold a mt19937 object
19  * as userdata, draw from it, and do the automatic memory management
20  */
21 
22 struct lua_State;
23 
24 namespace lua_rng {
25 
26 /** Implementations for lua callbacks */
31 
32 /** Creates the metatable for RNG objects, and adds the Rng table which contains the constructor */
33 void load_tables(lua_State*);
34 
35 } // end namespace lua_rng
int impl_rng_destroy(lua_State *L)
Definition: lua_rng.cpp:47
int impl_rng_seed(lua_State *L)
Definition: lua_rng.cpp:61
int impl_rng_create(lua_State *L)
Implementations for lua callbacks.
Definition: lua_rng.cpp:38
int impl_rng_draw(lua_State *L)
Definition: lua_rng.cpp:70
void load_tables(lua_State *L)
Creates the metatable for RNG objects, and adds the Rng table which contains the constructor.
Definition: lua_rng.cpp:80