Elin Modding Docs Doc
Loading...
Searching...
No Matches
RelationManager.cs
1using System;
2using System.Collections.Generic;
3using Newtonsoft.Json;
4
5// Token: 0x020004E5 RID: 1253
6public class RelationManager : EClass
7{
8 // Token: 0x06002131 RID: 8497 RVA: 0x000B3F76 File Offset: 0x000B2176
9 public void UpdateRelations()
10 {
11 }
12
13 // Token: 0x06002132 RID: 8498 RVA: 0x000B3F78 File Offset: 0x000B2178
14 public Relation GetRelation(Chara c1, Chara c2)
15 {
16 string key = (c1.uid < c2.uid) ? (c1.uid.ToString() + "x" + c2.uid.ToString()) : (c2.uid.ToString() + "x" + c1.uid.ToString());
17 Relation relation = this.dict.TryGetValue(key, null);
18 if (relation == null)
19 {
20 relation = new Relation();
21 this.dict.Add(key, relation);
22 }
23 return relation;
24 }
25
26 // Token: 0x0400111E RID: 4382
27 [JsonProperty]
28 public Dictionary<string, Relation> dict = new Dictionary<string, Relation>();
29}
Definition Chara.cs:12