1 (* Copyright (C) DooM 2D:Forever Developers
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 3 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *)
16 {$INCLUDE a_modes.inc}
19 {
20 -----------------------------------
21 MAPSTRUCT.PAS ÂÅÐÑÈß ÎÒ 13.11.07
23 Ïîääåðæêà êàðò âåðñèè 1
24 -----------------------------------
25 }
27 {
28 Êàðòà ïðåäñòàâëÿåò ñîáîþ WAD, â êîòîðîì ðåñóðñû â êîðíå - ñîáñòâåííî ñàìè êàðòû
29 (MAP01, MAP02 è ò.ä.).
31 Áëîêè çàêàí÷èâàþòñÿ íóëåâûì áëîêîì (BlockType=BLOCK_NONE)
33 Ñòðóêòóðà êàðòû (MAP01, MAP02...):
34 --------------------------------------
35 SIGNATURE | Byte[3] | 'MAP'
36 VERSION | Byte | $01
37 BLOCK1 | TBlock |
38 BLOCK1DATA | RAW |
39 ... | ...... |
40 BLOCKN | TBlock |
41 BLOCKNDATA | RAW |
42 --------------------------------------
44 Ñòðóêòóðà áëîêà:
45 --------------------------------------
46 BLOCKTYPE | Byte | (BLOCK_TEXTURES, BLOCK_PANELS,...)
47 RESERVED | LongWord | $00000000
48 BLOCKSIZE | LongWord | Ñêîëüêî ýòîò áëîê â ðàçìåðå (áàéò ïîñëå record'à)
49 --------------------------------------
50 }
52 interface
54 const
65 type
90 Width,
118 Width,
141 implementation