Changeset 101 for trunk/src/asset.h


Ignore:
Timestamp:
Aug 11, 2010, 6:18:41 PM (11 years ago)
Author:
sam
Message:

Implement ticking groups.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/asset.h

    r100 r101  
    2020{
    2121    friend class Ticker;
     22    friend class TickerData;
    2223
    2324public:
     
    2526    virtual ~Asset();
    2627
    27     virtual void TickGame(float delta_time);
    28     virtual void TickRender(float delta_time);
    29 
    3028    virtual void Ref();
    3129    virtual int Unref();
    3230
    3331protected:
     32    typedef enum
     33    {
     34        GROUP_BEFORE = 0,
     35        GROUP_DEFAULT,
     36        GROUP_AFTER,
     37        GROUP_COUNT
     38    }
     39    Group;
     40
     41    virtual Group GetGroup();
     42
     43    virtual void TickGame(float delta_time);
     44    virtual void TickRender(float delta_time);
     45
    3446    Asset *next;
    3547    int ref, destroy;
Note: See TracChangeset for help on using the changeset viewer.