Changeset 9709 in orxonox.OLD for branches/new_class_id/src/lib/script_engine
- Timestamp:
- Aug 31, 2006, 10:51:08 PM (18 years ago)
- Location:
- branches/new_class_id/src/lib/script_engine
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/script_engine/script.cc
r9699 r9709 22 22 #include "loading/load_param.h" 23 23 #include "parser/tinyxml/tinyxml.h" 24 25 NewObjectListDefinition(Script); 24 26 25 27 CREATE_SCRIPTABLE_CLASS(Script, Script::classID(), … … 30 32 ); 31 33 32 NewObjectListDefinition(Script);33 34 34 35 Script::Script(const TiXmlElement* root) -
branches/new_class_id/src/lib/script_engine/script_class.h
r9699 r9709 29 29 public: 30 30 virtual ~ScriptClass(); 31 32 const std::string& getName() const { return this->getName(); }33 bool operator==(const std::string& name) const { return (this->getName() == name); }34 bool operator==(NewClassID classID) const { return (this->_classID == classID); }35 31 36 32 virtual void registerClass(Script* script) = 0;
Note: See TracChangeset
for help on using the changeset viewer.