Changeset 95


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

TileSet is now a child of Asset.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tileset.cpp

    r93 r95  
    2828private:
    2929    char *name;
    30     int ref;
    3130    int *tiles;
    3231    int ntiles;
     
    4443    data = new TileSetData();
    4544    data->name = strdup(path);
    46     data->ref = 0;
    4745    data->tiles = NULL;
    4846    data->ntiles = 0;
     
    7876}
    7977
    80 void TileSet::Ref()
    81 {
    82     data->ref++;
    83 }
    84 
    85 int TileSet::Unref()
    86 {
    87     return --data->ref;
    88 }
    89 
    9078char const *TileSet::GetName()
    9179{
  • trunk/src/tileset.h

    r79 r95  
    99#include <stdint.h>
    1010
     11#include "asset.h"
     12
    1113class TileSetData;
    1214
    13 class TileSet
     15class TileSet : public Asset
    1416{
    1517public:
    1618    TileSet(char const *path);
    1719    ~TileSet();
    18 
    19     void Ref();
    20     int Unref();
    2120
    2221    char const *GetName();
Note: See TracChangeset for help on using the changeset viewer.