-
Notifications
You must be signed in to change notification settings - Fork 2
/
ReadPlanet.cpp
42 lines (35 loc) · 1.07 KB
/
ReadPlanet.cpp
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
#include "stdafx.h"
#include "ReadPlanet.h"
using namespace Simulator;
ReadPlanet::ReadPlanet()
{
}
ReadPlanet::~ReadPlanet()
{
}
void ReadPlanet::ParseLine(const ArgScript::Line& line)
{
auto StarRecord = GetActiveStarRecord();
auto PlanetRecord = GetActivePlanetRecord();
auto Planet = GetActivePlanet();
PlanetRecord->mType = PlanetType::T3;
PlanetRecord->mAtmosphereScore = 0.5;
PlanetRecord->mTemperatureScore = 0.5;
//Planet->mEffectScript = 0x3c3d344f;
auto newterrain = PlanetRecord->GenerateTerrainKey();
PlanetRecord->SetGeneratedTerrainKey(newterrain);
App::ConsolePrintF("planets: %d ", StarRecord->mPlanets.size());
App::ConsolePrintF("tech level: %d ", PlanetRecord->GetTechLevel());
PlanetRecord->GetStarRecord();
// This method is called when your cheat is invoked.
// Put your cheat code here.
}
const char* ReadPlanet::GetDescription(ArgScript::DescriptionMode mode) const
{
if (mode == ArgScript::DescriptionMode::Basic) {
return "This cheat does something.";
}
else {
return "ReadPlanet: Elaborate description of what this cheat does.";
}
}