Add license text to the top of every source file.
[Tsunagari.git] / src / python-bindings.cpp
blobe268946779daf47473eab81ac94d6dfe348e0167
1 /****************************
2 ** Tsunagari Tile Engine **
3 ** python-bindings.cpp **
4 ** Copyright 2012 OmegaSDG **
5 ****************************/
7 // **********
8 // Permission is hereby granted, free of charge, to any person obtaining a copy
9 // of this software and associated documentation files (the "Software"), to
10 // deal in the Software without restriction, including without limitation the
11 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
12 // sell copies of the Software, and to permit persons to whom the Software is
13 // furnished to do so, subject to the following conditions:
15 // The above copyright notice and this permission notice shall be included in
16 // all copies or substantial portions of the Software.
18 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
24 // IN THE SOFTWARE.
25 // **********
27 #include <boost/python/module.hpp>
29 #include "area.h"
30 #include "entity.h"
31 #include "log.h"
32 #include "music.h"
33 #include "random.h"
34 #include "resourcer.h"
35 #include "scriptinst.h"
36 #include "sound.h"
37 #include "tile.h"
38 #include "timer.h"
39 #include "timeout.h"
40 #include "vec.h"
41 #include "world.h"
43 BOOST_PYTHON_MODULE(tsunagari)
45 exportArea();
46 exportEntity();
47 exportLog();
48 exportMusic();
49 exportRandom();
50 exportResourcer();
51 exportScriptInst();
52 exportSound();
53 exportTile();
54 exportTimeout();
55 exportTimer();
56 exportVecs();
57 exportWorld();
60 // *sigh* If only it weren't static.
61 void pythonInitBindings()
63 inittsunagari();