Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 12, 2018, 2:07:03 PM (6 years ago)
Author:
adamc
Message:

merged HS17 into FS18

Location:
code/branches/ScriptableController_FS18
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ScriptableController_FS18

  • code/branches/ScriptableController_FS18/src/orxonox/Level.h

    r11071 r11855  
    4242namespace orxonox
    4343{
     44    class ScriptableController;
     45
    4446    class _OrxonoxExport Level : public BaseObject, public Synchronisable, public Context
    4547    {
     
    5456
    5557            MeshLodInformation* getLodInfo(std::string meshName) const;
     58
     59            inline ScriptableController *getScriptableController(void)
     60                { return this->controller_.get(); }
     61
     62            inline const std::string &getScript(void)
     63                { return this->level_script_; }
    5664
    5765
     
    7886            void networkcallback_applyXMLFile();
    7987
     88            inline void setScript(const std::string &script)
     89                { this->level_script_ = script; }
     90
     91
    8092            std::string                    pluginsString_;
    8193            std::list<PluginReference*>    plugins_;
    82 
    8394            std::string                    gametype_;
    8495            std::string                    xmlfilename_;
     
    8697            std::list<BaseObject*>         objects_;
    8798            std::map<std::string,MeshLodInformation*>  lodInformation_;
     99
     100            std::unique_ptr<ScriptableController> controller_;
     101            std::string           level_script_;
    88102    };
    89103}
Note: See TracChangeset for help on using the changeset viewer.