Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 14, 2006, 4:53:53 PM (18 years ago)
Author:
bensch
Message:

passing along scriptmethods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/script_engine/src/lib/script_engine/script_class.h

    r8397 r8399  
    3131
    3232  bool operator==(const std::string& name) { return (this->getName() == name); }
    33   bool operator==(ClassID classID) { return (this->classID == classID); }
     33  bool operator==(ClassID classID) { return (this->_classID == classID); }
    3434
    3535  virtual void registerClass(Script* script) = 0;
    3636  virtual int insertObject(Script* L, BaseObject* obj, bool gc=false) = 0;
     37
     38  const ScriptMethod* scriptMethods() const { return this->_scriptMethods; }
    3739
    3840protected:
     
    4042
    4143private:
    42   ClassID             classID;
    43   ScriptMethod*       scriptMethods;
     44  ClassID             _classID;
     45  ScriptMethod*       _scriptMethods;
    4446};
    4547
     
    5759  virtual void registerClass(Script* script)
    5860  {
    59     Lunar<T>::Register(script, this->getName());
     61    Lunar<T>::Register(script, this->getName(), this->scriptMethods());
    6062  }
    6163  virtual int insertObject(Script* L, BaseObject* obj, bool gc=false)
Note: See TracChangeset for help on using the changeset viewer.