From cb38892ce8dbb3841b5731554e63214803109b08 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 13 Jul 2013 11:51:36 +0300 Subject: FULLPIPE: Continued on scene loading --- engines/fullpipe/stateloader.cpp | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) (limited to 'engines/fullpipe/stateloader.cpp') diff --git a/engines/fullpipe/stateloader.cpp b/engines/fullpipe/stateloader.cpp index 1f9b090d01..17faba41d5 100644 --- a/engines/fullpipe/stateloader.cpp +++ b/engines/fullpipe/stateloader.cpp @@ -100,7 +100,8 @@ bool FullpipeEngine::loadGam(const char *fname) { #endif _inventory->rebuildItemRects(); - // TODO + + warning("STUB: loadGam()"); } else return false; @@ -185,6 +186,39 @@ bool CGameLoader::load(MfcArchive &file) { return true; } +bool CGameLoader::loadScene(int num) { + SceneTag *st; + + int idx = getSceneTagBySceneId(num, &st); + + if (st->_scene) + st->loadScene(); + + if (st->_scene) { + st->_scene->init(); + + applyPicAniInfos(st->_scene, _sc2array[idx]._defPicAniInfos, _sc2array[idx]._defPicAniInfosCount); + applyPicAniInfos(st->_scene, _sc2array[idx]._picAniInfos, _sc2array[idx]._picAniInfosCount); + + _sc2array[idx]._scene = st->_scene; + _sc2array[idx]._isLoaded = 1; + + return true; + } + + return false; +} + +int CGameLoader::getSceneTagBySceneId(int num, SceneTag **st) { + warning("STUB: CGameLoader::getSceneTagBySceneId()"); + + return 0; +} + +void CGameLoader::applyPicAniInfos(Scene *sc, PicAniInfo **picAniInfo, int picAniInfoCount) { + warning("STUB: CGameLoader::applyPicAniInfo()"); +} + GameProject::GameProject() { _field_4 = 0; _headerFilename = 0; -- cgit v1.2.3