-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSkondEmpire.h
More file actions
43 lines (38 loc) · 1.1 KB
/
SkondEmpire.h
File metadata and controls
43 lines (38 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#pragma once
#include <Spore\BasicIncludes.h>
#define SkondEmpirePtr intrusive_ptr<SkondEmpire>
#define SkondEmpireA (SkondEmpire::Get())[0]
using namespace Simulator;
///
/// In your dllmain Initialize method, add the system like this:
/// ModAPI::AddSimulatorStrategy(new SkondEmpire(), SkondEmpire::NOUN_ID);
///
class SkondEmpire
: public Simulator::cStrategy
{
public:
static const uint32_t TYPE = id("RattlerSpore::SkondEmpire");
static const uint32_t NOUN_ID = TYPE;
cEmpirePtr Skond;
int AddRef() override;
int Release() override;
void Initialize() override;
void Dispose() override;
const char* GetName() const override;
bool Write(Simulator::ISerializerStream* stream) override;
bool Read(Simulator::ISerializerStream* stream) override;
void Update(int deltaTime, int deltaGameTime) override;
bool WriteToXML(Simulator::XmlSerializer* writexml) override;
static SkondEmpire* Get();
uint32_t GetEmpireID();
cStarRecordPtr Homeworld;
//
// You can add more methods here
//
static Simulator::Attribute ATTRIBUTES[];
private:
static SkondEmpire* sInstance;
//
// You can add members here
//
};