Last change
on this file since 5662 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:
561 bytes
|
Rev | Line | |
---|
[5433] | 1 | <?lua |
---|
[5654] | 2 | include("stats.oxo") |
---|
| 3 | include("hudtemplates3.oxo") |
---|
[5433] | 4 | ?> |
---|
| 5 | |
---|
| 6 | <?lua |
---|
[5654] | 7 | include("templates/spaceship_assff.oxt") |
---|
| 8 | include("templates/spaceship_pirate.oxt") |
---|
[5433] | 9 | ?> |
---|
| 10 | |
---|
| 11 | <Level |
---|
| 12 | name = "Sample" |
---|
| 13 | description = "Just a few tests" |
---|
| 14 | > |
---|
| 15 | <Scene |
---|
[5499] | 16 | ambientlight = "0.8, 0.8, 0.8" |
---|
[5433] | 17 | skybox = "Orxonox/Starbox" |
---|
| 18 | > |
---|
[5499] | 19 | <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" /> |
---|
| 20 | <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshippirate /> |
---|
[5433] | 21 | </Scene> |
---|
| 22 | </Level> |
---|
Note: See
TracBrowser
for help on using the repository browser.