Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
ScriptZoneGameObjDef.h
1/* Renegade Scripts.dll
2 Copyright 2013 Tiberian Technologies
3
4 This file is part of the Renegade scripts.dll
5 The Renegade scripts.dll is free software; you can redistribute it and/or modify it under
6 the terms of the GNU General Public License as published by the Free
7 Software Foundation; either version 2, or (at your option) any later
8 version. See the file COPYING for more details.
9 In addition, an exemption is given to allow Run Time Dynamic Linking of this code with any closed source module that does not contain code covered by this licence.
10 Only the source code to the module(s) containing the licenced code has to be released.
11*/
12#ifndef TT_INCLUDE_SCRIPTZONEGAMEOBJDEF_H
13#define TT_INCLUDE_SCRIPTZONEGAMEOBJDEF_H
14#include "ScriptableGameObjDef.h"
15namespace ZoneConstants
16{
17 enum ZoneType {
18 TYPE_DEFAULT = 0,
19 TYPE_CTF,
20 TYPE_VEHICLE_CONSTRUCTION,
21 TYPE_VEHICLE_REPAIR,
22 TYPE_TIBERIUM_FIELD,
23 TYPE_BEACON,
24 TYPE_GDI_TIB_FIELD,
25 TYPE_NOD_TIB_FIELD,
26 TYPE_NAVAL_SPAWN,
27 };
28};
29class ScriptZoneGameObjDef : public ScriptableGameObjDef {
30public:
31 ScriptZoneGameObjDef();
32 ~ScriptZoneGameObjDef() {};
33 const PersistFactoryClass &Get_Factory() const;
34 bool Save(ChunkSaveClass &csave);
35 bool Load(ChunkLoadClass &cload);
36 uint32 Get_Class_ID() const;
37 PersistClass *Create() const;
38 bool Is_Valid_Config(StringClass& oError) {return true;}
39 const Vector3 &Get_Color() const {return Color;}
40 ZoneConstants::ZoneType Get_Type() const {return ZoneType;}
41 int Get_Preset_ID() const {return PresetID;}
42#ifdef DDBEDIT
43 virtual void Dump (FileClass &file);
44#endif
45 DECLARE_EDITABLE (ScriptZoneGameObjDef, ScriptableGameObjDef);
46protected:
47 ZoneConstants::ZoneType ZoneType;
48 Vector3 Color;
49 bool unk;
50 bool CheckStarsOnly;
51 bool IsEnvironmentZone;
52 bool CheckC4;
53 int PresetID;
54
55 StringClass ModelName;
56
57 friend class ScriptZoneGameObj;
58 friend class PresetDump;
59};
60
61#endif