source: trunk/src/world.h @ 2565

Last change on this file since 2565 was 2565, checked in by sam, 7 years ago

lua: add support for lua/init.lua in a global World object and give
it a try in MrPigeon.

  • Property svn:keywords set to Id
File size: 661 bytes
Line 
1//
2// Lol Engine
3//
4// Copyright: (c) 2010-2013 Sam Hocevar <sam@hocevar.net>
5//   This program is free software; you can redistribute it and/or
6//   modify it under the terms of the Do What The Fuck You Want To
7//   Public License, Version 2, as published by Sam Hocevar. See
8//   http://www.wtfpl.net/ for more details.
9//
10
11//
12// The World class
13// ---------------
14//
15
16#if !defined __LOL_WORLD_H__
17#define __LOL_WORLD_H__
18
19namespace lol
20{
21
22class World
23{
24public:
25    bool ExecLua(String const &lua);
26    double GetLuaNumber(String const &var);
27
28//private:
29    World();
30    ~World();
31};
32
33extern World g_world;
34
35} /* namespace lol */
36
37#endif // __LOL_WORLD_H__
38
Note: See TracBrowser for help on using the repository browser.