/*******************/ /*** Layer Thing ***/ /*******************/ #include //#include #include "..\MkLevel.h" #include "MkLevelLayer.h" #include "MkLevelLayerThing.h" /*****************************************************************************/ /*****************************************************************************/ /*****************************************************************************/ CMkLevelLayerThing::CMkLevelLayerThing(sExpLayerHdr *LayerHdr) { u8 *Ptr=(u8*)LayerHdr; Type=LayerHdr->Type; SubType=LayerHdr->SubType; Width=LayerHdr->Width; Height=LayerHdr->Height; int *iPtr=(int*)(Ptr+sizeof(sExpLayerHdr)); int i,ListSize=*iPtr++; ThingList.resize(ListSize); Ptr=(u8*)iPtr; for (i=0; iGetConfig(); int KeyCount=Config.GetKeyCount(GetTypeName()); vector Counts; Counts.resize(KeyCount); for (i=0;iAddInfItem(OutName,Counts[i]); } } } /*****************************************************************************/ int CMkLevelLayerThing::CountThing(CMkLevel *Core,const char *Name) { int i,ListSize=ThingList.size(); int Count=0; for (i=0; i