FULLPIPE: Shadows loading
This commit is contained in:
parent
68c5cfdf2c
commit
00971bf209
3 changed files with 31 additions and 9 deletions
|
@ -204,4 +204,19 @@ bool BigPicture::load(MfcArchive &file) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Shadows::Shadows() {
|
||||||
|
_staticAniObjectId = 0;
|
||||||
|
_movementId = 0;
|
||||||
|
_sceneId = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool Shadows::load(MfcArchive &file) {
|
||||||
|
_sceneId = file.readUint32LE();
|
||||||
|
_staticAniObjectId = file.readUint32LE();
|
||||||
|
_movementId = file.readUint32LE();
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
} // End of namespace Fullpipe
|
} // End of namespace Fullpipe
|
||||||
|
|
|
@ -25,9 +25,8 @@
|
||||||
|
|
||||||
namespace Fullpipe {
|
namespace Fullpipe {
|
||||||
|
|
||||||
class ShadowsItemArray : public Common::Array<CObject>, public CObject {
|
class ShadowsItemArray : public CObArray {
|
||||||
public:
|
// empty
|
||||||
virtual bool load(MfcArchive &file);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class Picture : public MemoryObject {
|
class Picture : public MemoryObject {
|
||||||
|
@ -106,12 +105,15 @@ class Background : public CObject {
|
||||||
void addPictureObject(PictureObject *pct);
|
void addPictureObject(PictureObject *pct);
|
||||||
};
|
};
|
||||||
|
|
||||||
class Shadows {
|
class Shadows : public CObject {
|
||||||
//CObject obj;
|
int _sceneId;
|
||||||
int sceneId;
|
int _staticAniObjectId;
|
||||||
int staticAniObjectId;
|
int _movementId;
|
||||||
int movementId;
|
ShadowsItemArray _items;
|
||||||
ShadowsItemArray items;
|
|
||||||
|
public:
|
||||||
|
Shadows();
|
||||||
|
virtual bool load(MfcArchive &file);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // End of namespace Fullpipe
|
} // End of namespace Fullpipe
|
||||||
|
|
|
@ -187,6 +187,11 @@ bool Scene::load(MfcArchive &file) {
|
||||||
|
|
||||||
char *shdname = genFileName(0, _sceneId, "shd");
|
char *shdname = genFileName(0, _sceneId, "shd");
|
||||||
|
|
||||||
|
Shadows *shd = new Shadows();
|
||||||
|
|
||||||
|
if (shd->loadFile(shdname))
|
||||||
|
_shadows = shd;
|
||||||
|
|
||||||
warning("STUB: Scene::load (%d bytes left)", file.size() - file.pos());
|
warning("STUB: Scene::load (%d bytes left)", file.size() - file.pos());
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue