Last change
on this file since 5654 was
5654,
checked in by rgrieder, 15 years ago
|
- Implemented file management via resource manager and loading of resource locations via XML. Changes made:
- SoundManager loads via memory stream rather than via file
- Loader uses LuaState::includeFile() to load an XML file and passes the lua tag remover function to its LuaState.
- ConfigFileManager still loads with hard paths because the files are required before Ogre gets created
- Renamed LuaBind to LuaState, deSingletonised it and added new features:
- doFile(), doString(), includeFile(), includeString() where include will preparse the string with a function provided with LuaState::setIncludeParser
- Moved lua tags replace function to Loader (since it's actually an XML related task)
- Using data_path/lua/LuaInitScript.lua to provide the following functions
- logMessage(level, message)
- doFile, dofile, include (all working with relative paths but within the same resource group)
- Modified Script class to work with LuaState and fixed its XML Loader
- Adjusted all level and include files (both "include" and "dofile" lua commands)
|
-
Property svn:eol-style set to
native
|
File size:
2.3 KB
|
Line | |
---|
1 | # |
---|
2 | # ORXONOX - the hottest 3D action shooter ever to exist |
---|
3 | # > www.orxonox.net < |
---|
4 | # |
---|
5 | # This program is free software; you can redistribute it and/or |
---|
6 | # modify it under the terms of the GNU General Public License |
---|
7 | # as published by the Free Software Foundation; either version 2 |
---|
8 | # of the License, or (at your option) any later version. |
---|
9 | # |
---|
10 | # This program is distributed in the hope that it will be useful, |
---|
11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
13 | # GNU General Public License for more details. |
---|
14 | # |
---|
15 | # You should have received a copy of the GNU General Public License along |
---|
16 | # with this program; if not, write to the Free Software Foundation, |
---|
17 | # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
---|
18 | # |
---|
19 | |
---|
20 | SET_SOURCE_FILES(CORE_SRC_FILES |
---|
21 | Clock.cc |
---|
22 | ConfigFileManager.cc |
---|
23 | ConfigValueContainer.cc |
---|
24 | Core.cc |
---|
25 | Event.cc |
---|
26 | Game.cc |
---|
27 | GameMode.cc |
---|
28 | GameState.cc |
---|
29 | GraphicsManager.cc |
---|
30 | GUIManager.cc |
---|
31 | Language.cc |
---|
32 | LuaState.cc |
---|
33 | ObjectListBase.cc |
---|
34 | OrxonoxClass.cc |
---|
35 | Resource.cc |
---|
36 | WindowEventListener.cc |
---|
37 | |
---|
38 | # command |
---|
39 | ArgumentCompletionFunctions.cc |
---|
40 | CommandEvaluation.cc |
---|
41 | CommandExecutor.cc |
---|
42 | CommandLine.cc |
---|
43 | ConsoleCommand.cc |
---|
44 | ConsoleCommandCompilation.cc |
---|
45 | Executor.cc |
---|
46 | |
---|
47 | # hierarchy |
---|
48 | Factory.cc |
---|
49 | Identifier.cc |
---|
50 | MetaObjectList.cc |
---|
51 | |
---|
52 | # level |
---|
53 | BaseObject.cc |
---|
54 | ClassTreeMask.cc |
---|
55 | Loader.cc |
---|
56 | Namespace.cc |
---|
57 | NamespaceNode.cc |
---|
58 | Template.cc |
---|
59 | XMLPort.cc |
---|
60 | XMLNameListener.cc |
---|
61 | |
---|
62 | # shell |
---|
63 | IRC.cc |
---|
64 | Shell.cc |
---|
65 | TclBind.cc |
---|
66 | TclThreadManager.cc |
---|
67 | |
---|
68 | # multithreading |
---|
69 | Thread.cc |
---|
70 | ThreadPool.cc |
---|
71 | ) |
---|
72 | ADD_SUBDIRECTORY(input) |
---|
73 | |
---|
74 | ORXONOX_ADD_LIBRARY(core |
---|
75 | FIND_HEADER_FILES |
---|
76 | TOLUA_FILES |
---|
77 | CommandExecutor.h |
---|
78 | Loader.h |
---|
79 | LuaState.h |
---|
80 | DEFINE_SYMBOL |
---|
81 | "CORE_SHARED_BUILD" |
---|
82 | PCH_FILE |
---|
83 | CorePrecompiledHeaders.h |
---|
84 | LINK_LIBRARIES |
---|
85 | ${OGRE_LIBRARY} |
---|
86 | ${Boost_FILESYSTEM_LIBRARY} |
---|
87 | ${Boost_SYSTEM_LIBRARY} # Filesystem dependency |
---|
88 | ${Boost_THREAD_LIBRARY} |
---|
89 | ${Boost_DATE_TIME_LIBRARY} # Thread dependency |
---|
90 | ${CEGUI_LIBRARY} |
---|
91 | ${CEGUILUA_LIBRARY} |
---|
92 | ${LUA_LIBRARIES} |
---|
93 | cpptcl_orxonox |
---|
94 | ogreceguirenderer_orxonox |
---|
95 | ois_orxonox |
---|
96 | tinyxml++_orxonox |
---|
97 | tolua++_orxonox |
---|
98 | util |
---|
99 | SOURCE_FILES |
---|
100 | ${CORE_SRC_FILES} |
---|
101 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.