From c73a4a4f79ae7974509b134cd3225307099a7900 Mon Sep 17 00:00:00 2001 From: Treeki Date: Tue, 15 Mar 2011 01:51:28 +0100 Subject: WorldMapData is now dWMPathData_c and loads its data from the resource manager --- include/game.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/game.h b/include/game.h index 6df656f..13e5be2 100755 --- a/include/game.h +++ b/include/game.h @@ -792,10 +792,13 @@ struct Tree { typedef bool (*ChainedFunc)(void*); -struct FunctionChain { +class FunctionChain { +public: ChainedFunc *functions; u16 count; u16 current; + + void setup(ChainedFunc *functions, u16 count); // 8015F740 }; @@ -876,7 +879,7 @@ public: class dScene_c : public dBase_c { public: - FunctionChain *funcChain; + FunctionChain *ptrToInitChain; dScene_c(); @@ -890,6 +893,11 @@ public: int afterDraw(); ~dScene_c(); + + + void setInitChain(FunctionChain &initChain) { + ptrToInitChain = &initChain; + } }; class dActor_c : public dBase_c { -- cgit v1.2.3