aboutsummaryrefslogtreecommitdiff
path: root/tools/create_lure/create_lure_dat.h
diff options
context:
space:
mode:
authorPaul Gilbert2007-09-23 22:05:50 +0000
committerPaul Gilbert2007-09-23 22:05:50 +0000
commit4d73619c8f325716a78ca8d2f01445934568f5d6 (patch)
tree95c2806f6c034e392680cc8bc6eff9948c748a18 /tools/create_lure/create_lure_dat.h
parent19e9161a205920d613d07460c3a34d363537c21e (diff)
downloadscummvm-rg350-4d73619c8f325716a78ca8d2f01445934568f5d6.tar.gz
scummvm-rg350-4d73619c8f325716a78ca8d2f01445934568f5d6.tar.bz2
scummvm-rg350-4d73619c8f325716a78ca8d2f01445934568f5d6.zip
Added support for multiple languages, with added resources for Italian version, added extra needed resources for internationalisation
svn-id: r29063
Diffstat (limited to 'tools/create_lure/create_lure_dat.h')
-rw-r--r--tools/create_lure/create_lure_dat.h34
1 files changed, 11 insertions, 23 deletions
diff --git a/tools/create_lure/create_lure_dat.h b/tools/create_lure/create_lure_dat.h
index 20b67000d7..6e8adde742 100644
--- a/tools/create_lure/create_lure_dat.h
+++ b/tools/create_lure/create_lure_dat.h
@@ -27,32 +27,24 @@
#define __CREATELURE_DAT__
#include "common/endian.h"
+#include "common/util.h"
#define VERSION_MAJOR 1
-#define VERSION_MINOR 21
-#define ENGLISH_LURE
+#define VERSION_MINOR 22
-#define DATA_SEGMENT 0xac50
-
-#define DIALOG_OFFSET 0x1dcb0
#define DIALOG_SIZE 0x150
-#define TALK_DIALOG_OFFSET 0x1de00
#define TALK_DIALOG_SIZE 0x30
#define PALETTE_OFFSET 0xc0a7
#define PALETTE_SIZE 0x300
-#define ROOM_TABLE 0xbf40
#define ROOM_NUM_ENTRIES 51
#define HOTSPOT_OVERRIDE_OFFSET 0x2A01
-#define SCRIPT_SEGMENT 0x1df00
#define SCRIPT_SEGMENT_SIZE 0x2c57
-#define SCRIPT2_SEGMENT 0x19c70
#define SCRIPT2_SEGMENT_SIZE 0x2800
-#define FIGHT_SEGMENT 0x1C400
#define FIGHT_SEGMENT_SIZE 0x1850
#define HOTSPOT_SCRIPT_LIST 0x57e0
@@ -61,9 +53,7 @@
#define MAX_NUM_ANIM_RECORDS 0x200
#define MAX_NUM_ACTION_RECORDS 0x100
-#define ROOM_EXITS_OFFSET 0x2f61
#define NUM_ROOM_EXITS 50
-#define ROOM_EXIT_JOINS_OFFSET 0xce30
#define MESSAGES_SEGMENT 0x20b60
#define MESSAGES_SEGMENT_SIZE 0x490
@@ -71,24 +61,16 @@
#define MAX_HOTSPOTS 0x100
#define MAX_DATA_SIZE 0x4000
-#define PATHFIND_OFFSET 0x984A
#define PATHFIND_SIZE (120 * ROOM_NUM_ENTRIES)
-#define HOTSPOT_WALK_TO_OFFSET 0xBC4B
#define EXIT_COORDINATES_OFFSET 0x1929
#define EXIT_COORDINATES_NUM_ROOMS 49
#define TABLED_ACTIONS_OFFSET 0x1380
#define NUM_TABLED_ACTION_BLOCKS 33
-#define RANDOM_ACTIONS_OFFSET 0x4D10
#define RANDOM_ROOM_NUM_ENTRIES 41
-#define WALK_AREAS_OFFSET 0x2EB1
-
-#define EXIT_HOTSPOTS_OFFSET 0x2E57
-
-#define SOUND_1_OFFSET 0x5671
-#define SOUND_1_SIZE 265
+#define SOUND_DESCS_SIZE 265
#include "common/pack-start.h" // START STRUCT PACKING
@@ -190,7 +172,7 @@ struct HotspotResourceOutput {
uint16 animRecordId;
uint16 hotspotScriptOffset;
uint16 talkScriptOffset;
- uint16 tickProcOffset;
+ uint16 tickProcId;
uint16 tickTimeout;
uint16 tickSequenceOffset;
uint16 npcSchedule;
@@ -427,9 +409,15 @@ public:
uint32 vTemp = TO_LE_32(v);
write(&vTemp, sizeof(uint32));
}
+ uint32 pos() {
+ return ftell(f);
+ }
};
-extern File lure_exe;
+extern File lureExe;
extern void add_talk_offset(uint16 offset);
+extern Common::Language language;
+extern uint16 dataSegment;
+
#endif