Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
ExpeditionManager.cs
Go to the documentation of this file.
1using System.Collections.Generic;
2using System.Linq;
3using Newtonsoft.Json;
4
6{
7 [JsonProperty]
8 public Dictionary<int, Expedition> dict = new Dictionary<int, Expedition>();
9
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}
Definition: EClass.cs:5
void SetOwner(FactionBranch _branch)
void Add(Expedition ex)
FactionBranch branch
Dictionary< int, Expedition > dict
int uidChara
Definition: Expedition.cs:9
void Start()
Definition: Expedition.cs:54
void OnAdvanceHour()
Definition: Expedition.cs:67
void SetOwner(FactionBranch _branch)
Definition: Expedition.cs:26