Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
RefineryGameObjDef.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__REFINERYGAMEOBJDEF_H
13#define TT_INCLUDE__REFINERYGAMEOBJDEF_H
14
15#include "BuildingGameObjDef.h"
16
17
18class RefineryGameObjDef : public BuildingGameObjDef
19{
20public:
21 RefineryGameObjDef (void);
22 ~RefineryGameObjDef (void);
23 uint32 Get_Class_ID (void) const;
24 PersistClass * Create (void) const;
25 float Get_Funds_Gathered() const { return FundsGathered; }
26 float Get_Funds_Distributed_Per_Sec() const { return FundsDistributedPerSec; }
27 bool Save (ChunkSaveClass &csave);
28 bool Load (ChunkLoadClass &cload);
29 const PersistFactoryClass & Get_Factory (void) const;
30#ifdef DDBEDIT
31 virtual void Dump (FileClass &file);
32#endif
33 DECLARE_EDITABLE (RefineryGameObjDef, BuildingGameObjDef);
34protected:
35 void Load_Variables (ChunkLoadClass &cload);
36 float UnloadTime;
37 float FundsGathered;
38 float FundsDistributedPerSec;
39 int HarvesterDefID;
40 friend class RefineryGameObj;
41 friend class PresetDump;
42};
43
44#endif