Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
TwiddlerClass.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_TWIDDLERCLASS_H
13#define TT_INCLUDE_TWIDDLERCLASS_H
14#include "Definition.h"
15class TwiddlerClass : public DefinitionClass {
16public:
17 TwiddlerClass();
18 ~TwiddlerClass();
19 virtual DefinitionClass *Twiddle() const;
20 PersistClass *Create() const;
21 const PersistFactoryClass &Get_Factory() const;
22 const DynamicVectorClass<int>& Get_Definition_List() { return m_DefinitionList; }
23 bool Save(ChunkSaveClass &csave);
24 bool Load(ChunkLoadClass &cload);
25 bool Save_Variables(ChunkSaveClass &csave);
26 bool Load_Variables(ChunkLoadClass &cload);
27 uint32 Get_Class_ID() const {return 57344;}
28 virtual uint32 Get_Indirect_Class_ID() const {return m_IndirectClassID;}
29 virtual void Set_Indirect_Class_ID(uint32 class_id) {m_IndirectClassID = class_id;}
30#ifdef DDBEDIT
31 virtual void Dump (FileClass &file);
32#endif
33 DECLARE_EDITABLE( TwiddlerClass, DefinitionClass );
34private:
35 uint32 m_IndirectClassID;
36 DynamicVectorClass<int> m_DefinitionList;
37 friend class PresetDump;
38};
39
40#endif