blob: 40bea19e73a6ba340e339ebecbbd14656d4a2c13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
#ifndef _oechunk_h_
#define _oechunk_h_ 1
#include "chunk.hpp"
#include "obchunk.hpp"
#if objedit
#include "template.hpp"
#endif
//#if engine
//#define VECTOR VECTORCH
//#endif
#if engine
#else
struct VECTORCH
{
int vx, vy, vz;
};
#endif
struct ChunkMapBlock
{
char TemplateName[20];
char TemplateNotes[100];
int MapType;
int MapShape;
int MapFlags;
int MapFlags2;
int MapFlags3;
int MapCType;
int MapCGameType;
int MapCStrategyS;
int MapCStrategyL;
int MapInteriorType;
int MapLightType;
int MapMass;
VECTORCH MapNewtonV;
VECTORCH MapOrigin;
int MapViewType;
int MapVDBData;
int SimShapeList;
};
class Map_Block_Chunk : public Chunk
{
public:
virtual size_t size_chunk()
{
return (chunk_size=216);
}
virtual BOOL output_chunk (HANDLE &);
virtual void fill_data_block (char * data_start);
ChunkMapBlock map_data;
friend class Object_Project_Data_Chunk;
Map_Block_Chunk (Object_Project_Data_Chunk * parent)
:Chunk(parent,"MAPBLOCK")
{}
//constructor from buffer
Map_Block_Chunk (Chunk_With_Children * parent,const char* data,size_t);
};
struct ChunkStrategy
{
char StrategyName[20];
char StrategyNotes[100];
int Strategy;
};
class Strategy_Chunk : public Chunk
{
public :
virtual size_t size_chunk()
{
return (chunk_size=136);
}
virtual BOOL output_chunk (HANDLE &);
virtual void fill_data_block (char * data_start);
ChunkStrategy strategy_data;
friend class Object_Project_Data_Chunk;
Strategy_Chunk(Object_Project_Data_Chunk *parent)
:Chunk(parent,"STRATEGY")
{}
//constructor from buffer
Strategy_Chunk (Chunk_With_Children * parent,const char* data,size_t);
};
#endif
|