summaryrefslogblamecommitdiffstats
path: root/tools/DSGmaker/DSGList.hpp
blob: e7ba78dffac41a8798d8fc73d28fdb23c2ac15e7 (plain) (tree)




























                                                                                          
#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