BARE2D
LuaFunctions.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
LuaHeaders.hpp
"
4
5
namespace
BARE2D::LuaFunctions
{
6
/**
7
* @brief A custom function which calls a lua_yield. Takes one argument, an integer representing how many updates the script should yield for.
8
* @param L The state
9
* @return The number of return values. Always zero.
10
*/
11
int
delay
(lua_State* L);
12
13
/**
14
* @brief Uses the Logger to print to the screen and log. Takes one argument, a string to print.
15
* @param L The state
16
* @return The number of return values. Always zero.
17
*/
18
int
print
(lua_State* L);
19
}
20
LuaHeaders.hpp
BARE2D::LuaFunctions::delay
int delay(lua_State *L)
A custom function which calls a lua_yield. Takes one argument, an integer representing how many updat...
Definition:
LuaFunctions.cpp:9
BARE2D::LuaFunctions
Definition:
LuaFunctions.cpp:7
BARE2D::LuaFunctions::print
int print(lua_State *L)
Uses the Logger to print to the screen and log. Takes one argument, a string to print.
Definition:
LuaFunctions.cpp:16
Source
LuaFunctions.hpp
Generated by
1.8.17