summaryrefslogtreecommitdiffstats
path: root/tools/DSGmaker/DSGList.hpp
blob: e7ba78dffac41a8798d8fc73d28fdb23c2ac15e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef DSGLIST_H
#define DSGLIST_H

//custom list class,stores the address of DynaPhysDSG in a array,that i create in DSGmaker

class tlDataChunk ;



class DSGList 
{
    public:

        bool mbNoInstanceChunks;
        DSGList();
        virtual ~DSGList();
        int AddDSG(tlDataChunk*  p_dsg);
        unsigned int GetIndexCount();
        tlDataChunk* GetDSG(const char* name);
        tlDataChunk* GetDSGByIndex(unsigned int i);
        unsigned int VerifyChunks(void);        
        void ReSortDSGChunks(void);

    private:
        void PrintErrors(void);
        tlDataChunk** mp_list;
        unsigned int mindex;        
};
#endif //end of file