Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
SimpleGameObjDef.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_SIMPLEGAMEOBJDEF_H
13#define TT_INCLUDE_SIMPLEGAMEOBJDEF_H
14#include "PhysicalGameObjDef.h"
15class SimpleGameObjDef : public PhysicalGameObjDef {
16public:
17 SimpleGameObjDef();
18 const PersistFactoryClass &Get_Factory() const;
19 bool Save(ChunkSaveClass &csave);
20 bool Load(ChunkLoadClass &cload);
21 uint32 Get_Class_ID() const;
22 PersistClass *Create() const;
23 bool Get_Is_Editor_Object() const { return IsEditorObject; }
24 int Get_Player_Terminal_Type() const {return PlayerTerminalType;}
25#ifdef DDBEDIT
26 virtual void Dump (FileClass &file);
27 virtual void DumpPhys (FileClass &file);
28#endif
29 DECLARE_EDITABLE( SimpleGameObjDef, PhysicalGameObjDef );
30protected:
31 bool IsEditorObject; // 00A5
32 bool IsHiddenObject; // 00A6
33 int PlayerTerminalType; // 00A8
34 friend class SimpleGameObj;
35 friend class PresetDump;
36}; // 00AC
37
38#endif