2 THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
3 SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
4 END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
5 ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
6 IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
7 SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
8 FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
9 CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
10 AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
11 COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
19 #define MINE_VERSION 20 // Current version expected
20 #define COMPATIBLE_VERSION 16 // Oldest version that can safely be loaded.
23 ushort fileinfo_signature;
24 ushort fileinfo_version;
26 }; // Should be same as first two fields below...
29 ushort fileinfo_signature;
30 ushort fileinfo_version;
32 int header_offset; // Stuff common to game & editor
34 int editor_offset; // Editor specific stuff
39 int newseg_verts_offset;
40 int newseg_verts_howmany;
41 int newseg_verts_sizeof;
60 int object_offset; // Object info
63 int unused_offset; //was: doors_offset
64 int unused_howmamy; //was: doors_howmany
65 int unused_sizeof; //was: doors_sizeof
66 short level_shake_frequency, level_shake_duration; // Shakes every level_shake_frequency seconds
67 // for level_shake_duration seconds (on average, random). In 16ths second.
68 int secret_return_segment;
69 vms_matrix secret_return_orient;
71 int dl_indices_offset;
72 int dl_indices_howmany;
73 int dl_indices_sizeof;
75 int delta_light_offset;
76 int delta_light_howmany;
77 int delta_light_sizeof;
92 int newsegment_offset;
104 extern struct mtfi mine_top_fileinfo; // Should be same as first two fields below...
105 extern struct mfi mine_fileinfo;
106 extern struct mh mine_header;
107 extern struct me mine_editor;
109 // returns 1 if error, else 0
110 int game_load_mine(char * filename);
112 //loads from an already-open file
113 // returns 0=everything ok, 1=old version, -1=error
114 int load_mine_data(CFILE *LoadFile);
115 int load_mine_data_compiled(CFILE *LoadFile, int file_version);
117 extern short tmap_xlate_table[];
118 extern fix Level_shake_frequency, Level_shake_duration;
119 extern int Secret_return_segment;
120 extern vms_matrix Secret_return_orient;