53#define GAMEMAPS_ONOFF_CHUNK 0x0000
54#define GAMEMAPS_AMT0_CHUNK 0x0001
55#define GAMEMAPS_AMT1_CHUNK 0x0002
56#define GAMEMAPS_AMT2_CHUNK 0x0003
57#define GAMEMAPS_AMT3_CHUNK 0x0004
58#define GAMEMAPS_AMT4_CHUNK 0x0005
59#define GAMEMAPS_AMT5_CHUNK 0x0006
60#define GAMEMAPS_AMT6_CHUNK 0x0007
61#define GAMEMAPS_AMT7_CHUNK 0x0008
62#define GAMEMAPS_AMT8_CHUNK 0x0009
63#define GAMEMAPS_AMT9_CHUNK 0x000A
64#define GAMEMAPS_AMTA_CHUNK 0x000B
77 void proc(ILoad *iload) {
delete this; }
86static Class_ID _GameMapsClassID(0x36d23f7b, 0x79ce63e1);
93 const TCHAR *
ClassName() {
return _T(
"GameMaps"); }
95 Class_ID
ClassID() {
return _GameMapsClassID; }
118 return _GameMapsClassID;
135 ReplaceReference(
SubNumToRefNum(subAnim),(ReferenceTarget *)control);
154 RefTargetHandle hTarget,
160 case REFMSG_GET_PARAM_DIM: {
161 GetParamDim *gpd = (GetParamDim*)partID;
164 case REFMSG_GET_PARAM_NAME: {
165 GetParamName *gpn = (GetParamName*)partID;
188 for (
int i=0; i<NTEXMAPS; i++) {
193 tm->ReplaceReference(i,remap.CloneRef(
TextureSlot[i].Map));
218 for (
int i=0; i<NTEXMAPS; i++) {
221 isave->Write(&f,
sizeof(f),&nb);
224 for (i=0; i<NTEXMAPS; i++) {
227 isave->Write(&(
TextureSlot[i].Amount),
sizeof(
float),&nb);
253 while (IO_OK==(res=iload->OpenChunk())) {
255 switch (
id = iload->CurChunkID()) {
259 res = iload->Read(&f,
sizeof(f), &nb);
260 for (
int i=0; i<NTEXMAPS; i++)
261 (*
this)[i].MapOn = (f&(1<<i))?1:0;
276 res = iload->Read(&(
TextureSlot[index].Amount),
sizeof(
float),&nb);
void * Create(BOOL loading)
const TCHAR * ClassName()
RefResult NotifyRefChanged(Interval changeInt, RefTargetHandle hTarget, PartID &partID, RefMessage message)
IOResult Load(ILoad *iload)
BOOL AssignController(Animatable *control, int subAnim)
int SubNumToRefNum(int subNum)
TexmapSlotClass TextureSlot[NTEXMAPS]
IOResult Save(ISave *isave)
RefTargetHandle Clone(RemapDir &remap)
GameMapsPostLoad(GameMapsClass *b)
#define GAMEMAPS_AMT1_CHUNK
ClassDesc * Get_Game_Maps_Desc()
#define GAMEMAPS_AMT3_CHUNK
#define GAMEMAPS_AMT8_CHUNK
#define GAMEMAPS_AMT2_CHUNK
#define GAMEMAPS_AMT5_CHUNK
#define GAMEMAPS_AMT4_CHUNK
#define GAMEMAPS_AMTA_CHUNK
#define GAMEMAPS_ONOFF_CHUNK
#define GAMEMAPS_AMT0_CHUNK
#define GAMEMAPS_AMT7_CHUNK
#define GAMEMAPS_AMT9_CHUNK