Changeset 8170 in orxonox.OLD for branches/script_engine/src
- Timestamp:
- Jun 6, 2006, 8:06:50 AM (18 years ago)
- Location:
- branches/script_engine/src/lib/script_engine
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/script_engine/src/lib/script_engine/Makefile.am
r8130 r8170 13 13 14 14 libORXscript_a_SOURCES = \ 15 script.cc\ 16 script_manager.cc 15 script.cc\ 16 script_manager.cc\ 17 script_trigger.cc 17 18 18 19 AM_CPPFLAGS= @LUA_INCLUDES@ … … 21 22 lunar.h\ 22 23 script.h\ 23 script_manager.h 24 script_manager.h\ 25 script_trigger.h 24 26 25 27 … … 34 36 35 37 example_DEPENDENCIES = \ 36 37 38 38 $(MAINSRCDIR)/world_entities/libORXwe.a \ 39 $(libORXlibs_a_LIBRARIES_) \ 40 $(MAINSRCDIR)/util/libORXutils.a 39 41 40 42 example_LDADD = \ 41 42 43 44 45 46 43 $(MAINSRCDIR)/util/libORXutils.a \ 44 $(libORXlibs_a_LIBRARIES_) \ 45 libORXscript.a -L../../../extern_libs @LUA_LIBS@ \ 46 $(MAINSRCDIR)/world_entities/libORXwe.a \ 47 $(libORXlibs_a_LIBRARIES_) \ 48 $(MAINSRCDIR)/util/libORXutils.a 47 49 48 50 example_SOURCES= \ 49 50 51 51 example.cc \ 52 \ 53 ../util/executor/executor_lua.cc -
branches/script_engine/src/lib/script_engine/script_manager.cc
r8164 r8170 68 68 { 69 69 const TiXmlElement* script = scripts->FirstChildElement(); 70 const TiXmlElement* object;71 70 72 71 PRINTF(4)("Creating scriptlist\n"); … … 74 73 while( script != NULL) 75 74 { 76 { // scope to make the Load param work75 { // scope to make the LoadParam work 77 76 LoadParam(script, "file", this, ScriptManager, setCurrentScriptFile) 78 77 .describe("the fileName of the script, that should be loaded into this world") … … 82 81 if(!currentScript.name.empty()) // if LoadParam didn't fail... fill the object list with the needed objects 83 82 { 84 /*object = script->FirstChildElement("object");85 86 while(object != NULL)87 {88 LoadParam(object, "object", this, ScriptManager, setCurrentScriptFile)89 .describe("the fileName of the script, that should be loaded into this world")90 .defaultValues("");91 object = object->NextSiblingElement("object");92 }93 */94 83 95 84 LOAD_PARAM_START_CYCLE(script, object); … … 99 88 } 100 89 LOAD_PARAM_END_CYCLE(object); 101 102 90 103 91 scriptList.push_back(currentScript); -
branches/script_engine/src/lib/script_engine/script_manager.h
r8164 r8170 1 1 #ifndef _SCRIPT_MANAGER_H 2 #define _SCRIPT_M NAGER_H2 #define _SCRIPT_MANAGER_H 3 3 4 4 #include <list>
Note: See TracChangeset
for help on using the changeset viewer.