Elin Decompiled Documentation
EA 23.102 Nightly
Loading...
Searching...
No Matches
ExpeditionManager.cs
Go to the documentation of this file.
1
using
System.Collections.Generic;
2
using
System.Linq;
3
using
Newtonsoft.Json;
4
5
public
class
ExpeditionManager
:
EClass
6
{
7
[JsonProperty]
8
public
Dictionary<int, Expedition>
dict
=
new
Dictionary<int, Expedition>();
9
10
public
FactionBranch
branch
;
11
12
public
void
SetOwner
(
FactionBranch
_branch)
13
{
14
branch
= _branch;
15
foreach
(
Expedition
value
in
dict
.Values)
16
{
17
value.
SetOwner
(
branch
);
18
}
19
}
20
21
public
void
Add
(
Expedition
ex)
22
{
23
dict
[ex.
uidChara
] = ex;
24
ex.
Start
();
25
}
26
27
public
void
OnSimulateHour
()
28
{
29
dict
.Values.ToList().ForeachReverse(delegate(
Expedition
e)
30
{
31
e.
OnAdvanceHour
();
32
});
33
}
34
}
EClass
Definition:
EClass.cs:5
ExpeditionManager
Definition:
ExpeditionManager.cs:6
ExpeditionManager.SetOwner
void SetOwner(FactionBranch _branch)
Definition:
ExpeditionManager.cs:12
ExpeditionManager.OnSimulateHour
void OnSimulateHour()
Definition:
ExpeditionManager.cs:27
ExpeditionManager.Add
void Add(Expedition ex)
Definition:
ExpeditionManager.cs:21
ExpeditionManager.branch
FactionBranch branch
Definition:
ExpeditionManager.cs:10
ExpeditionManager.dict
Dictionary< int, Expedition > dict
Definition:
ExpeditionManager.cs:8
Expedition
Definition:
Expedition.cs:4
Expedition.uidChara
int uidChara
Definition:
Expedition.cs:9
Expedition.Start
void Start()
Definition:
Expedition.cs:54
Expedition.OnAdvanceHour
void OnAdvanceHour()
Definition:
Expedition.cs:67
Expedition.SetOwner
void SetOwner(FactionBranch _branch)
Definition:
Expedition.cs:26
FactionBranch
Definition:
FactionBranch.cs:8
Elin
ExpeditionManager.cs
Generated by
1.9.6