Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
TDBCategoryClass.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_TDBCATEGORYCLASS_H
13#define TT_INCLUDE_TDBCATEGORYCLASS_H
14
15#include "Persist.h"
16#include "engine_string.h"
17#include "engine_vector.h"
18
19class TDBCategoryClass : public PersistClass
20{
21public:
22 TDBCategoryClass (void);
23 TDBCategoryClass (const TDBCategoryClass &src);
24 virtual ~TDBCategoryClass (void);
25 const TDBCategoryClass &operator= (const TDBCategoryClass &src);
26 const PersistFactoryClass &Get_Factory (void) const;
27 bool Save (ChunkSaveClass &csave);
28 bool Load (ChunkLoadClass &cload);
29 TDBCategoryClass * Clone (void) const { return new TDBCategoryClass (*this); }
30 const StringClass & Get_Name (void) const { return Name; }
31 void Set_Name (const char *name) { Name = name; }
32 uint32 Get_ID (void) const { return ID; }
33 void Set_ID (uint32 id) { ID = id; }
34protected:
35 void Save_Variables (ChunkSaveClass &csave);
36 void Load_Variables (ChunkLoadClass &cload);
37private:
38 StringClass Name;
39 uint32 ID;
40};
41#endif