Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 8, 2007, 6:05:12 PM (18 years ago)
Author:
snellen
Message:

added method addStandartObjects similar to registerStandartClasses for better readability

Location:
branches/scriptimprovements/src/lib/script_engine
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/scriptimprovements/src/lib/script_engine/script.cc

    r10381 r10584  
    106106   filedest += "scripts/" + directory + file;
    107107
    108    this->addThisScript();
     108   this->addStandartObjects();
    109109   this->registerStandartClasses();
    110110
     
    413413 }
    414414
     415bool Script::addStandartObjects()
     416 {
     417   bool success = true;
     418
     419   this->addThisScript();
     420
     421   return success;
     422 }
     423
    415424
    416425 void Script::registerClass( const std::string& className)
  • branches/scriptimprovements/src/lib/script_engine/script.h

    r10381 r10584  
    6868    int  reportError(int error);                      //!< Get errormessage from the lua stack and print it.
    6969    bool registerStandartClasses();                   //!< Register all the classes that the script might need
     70    bool addStandartObjects();                        //!< Add all the objects that the script might need
    7071    bool classIsRegistered(const std::string& type);  //!< Checks wheter the class "type" has already been registered with the script
    7172    bool objectIsAdded(const std::string& name);      //!< Checks wheter the object "name" has already been added to the script
Note: See TracChangeset for help on using the changeset viewer.