Thread: Oops!
View Single Post
Re: Oops!
Old
  (#4)
Cheeseh
[rcbot]
 
Cheeseh's Avatar
 
Status: Offline
Posts: 361
Join Date: Dec 2003
Location: China
Default Re: Oops! - 16-07-2004

What we mean here is, i think, something like this
Code:
class CPluginBase
{
public:

...
    virtual ... Spawn (...) { // default Spawn stuff (i.e. call engine spawn etc..?)
    virtual ... StartFrame (...);
    virtual ... PlayerPreThink (...);

...
};

class CMyPlugin : public CPluginBase
{
public:
   // overridden spawn method
   ... Spawn (...)
   {
      // my plugin code
   }

   // overridden startframe
   ... Startframe ()
   {
      // my plugin code
   }

 // didn't over-ride PlayerPreThink and other stuff since we don't need them
   
};
  
Reply With Quote