-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGazeMapComponent.cs
More file actions
65 lines (52 loc) · 1.95 KB
/
GazeMapComponent.cs
File metadata and controls
65 lines (52 loc) · 1.95 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Verse;
namespace RC.Rimgazer
{
/*
Root level class (RLC)
This class required to perform runtime injection at "Gameplay" stage of the game
Gameplay stage happes as soon as level is loaded from entry or savegame
Events triggered from Entry stage will happen in gameplay GUI after objects are initialized
Main uses of this stage:
1) Temper with map and objects around
2) Temper with "invisible" objects like storyteller or weather decider
This class does not require XML def to work
*/
class GazeMapComponent : MapComponent
{
static public string GitHub = "https://github.com/RawCode/Rimgazer.git";
//this field used to counter double construction on loading savegame
static bool kludge = false;
public GazeMapComponent()
{
//counter double construction on loading savegame
if (kludge) return; kludge ^= true;
//EventRuntime.resolveValidTypes();
//EventRuntime.resolveValidEvents();
//EventRuntime.resolveValidListeners();
//EventBase.sortHandlerList();
// if (MapInitData.startedFromEntry)
//EventBase.fireEvent(new GameStartedEvent());
// else
//EventBase.fireEvent(new GameLoadedEvent());
}
public override void MapComponentTick()
{
// if (Find.TickManager.tickCount == (DebugSettings.fastEcology ? 1 : 250))
// EventBase.fireEvent(new GameFirstTickEvent());
// EventBase.fireEvent(new GameTickEvent());
}
public override void ExposeData()
{
// if (Scribe.mode == LoadSaveMode.LoadingVars)
// EventBase.fireEvent(new GameSavedEvent());
}
//public override void MapComponentUpdate()
//{
// NOT IMPLEMENTED
//}
}
}