Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 17, 2009, 4:37:10 PM (15 years ago)
Author:
rgrieder
Message:
  • 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)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/resource2/src/orxonox/gamestates/GSRoot.cc

    r3370 r5654  
    3333#include "core/Game.h"
    3434#include "core/GameMode.h"
    35 #include "core/LuaBind.h"
     35#include "core/LuaState.h"
    3636#include "network/NetworkFunction.h"
    37 #include "ToluaBindCore.h"
    3837#include "ToluaBindOrxonox.h"
    3938#include "tools/Timer.h"
     
    5655
    5756        // Tell LuaBind about all tolua interfaces
    58         LuaBind::getInstance().addToluaInterface(&tolua_Core_open, "Core");
    59         LuaBind::getInstance().addToluaInterface(&tolua_Orxonox_open, "Orxonox");
     57        LuaState::addToluaInterface(&tolua_Orxonox_open, "Orxonox");
    6058    }
    6159
     
    8684        }
    8785
    88         // create the global LevelManager
     86        // create the LevelManager
    8987        this->levelManager_ = new LevelManager();
    9088    }
Note: See TracChangeset for help on using the changeset viewer.