/**********************/ /*** Layer Platform ***/ /**********************/ #include #include //#include "MkLevel.h" #include "MkLevelLayerPlatform.h" /*****************************************************************************/ /*****************************************************************************/ /*** Pre-Process *************************************************************/ /*****************************************************************************/ /*****************************************************************************/ void CMkLevelLayerPlatform::PreProcess(CMkLevel *Core) { int i,ListSize; ProcessList(Core); ListSize=ThingList.size(); RemapTable.resize(ListSize); for (i=0; iAddModel(ThisThing.Name,ThisThing.Data.Platform.PlatformTriStart,ThisThing.Data.Platform.PlatformTriCount); } printf("%i Platforms\n",ThingList.size()); } /*****************************************************************************/ /*****************************************************************************/ /*** Process *****************************************************************/ /*****************************************************************************/ /*****************************************************************************/ void CMkLevelLayerPlatform::Process(CMkLevel *Core) { } /*****************************************************************************/ /*****************************************************************************/ /** Write ********************************************************************/ /*****************************************************************************/ /*****************************************************************************/ int CMkLevelLayerPlatform::Write(CMkLevel *Core,FILE *File,const char *LayerName) { int ThisPos=ftell(File); sThingHdr Hdr; int i,ListSize=ThingList.size(); Hdr.Count=ListSize; fwrite(&Hdr,sizeof(sThingHdr),1,File); for (i=0; i