-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLoadedGameInfo.cs
More file actions
34 lines (28 loc) · 1.03 KB
/
LoadedGameInfo.cs
File metadata and controls
34 lines (28 loc) · 1.03 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
using System;
using System.Collections.Generic;
using CodeName.Modding.Loading;
using CodeName.Modding.Localization;
using CodeName.Modding.Mods;
using Cysharp.Threading.Tasks;
using Exanite.Core.Collections;
using Object = UnityEngine.Object;
namespace CodeName.Modding
{
public class LoadedGameInfo
{
public LoadedGameInfo(GameInfo originalInfo, GameLoadContext loadContext)
{
OriginalInfo = originalInfo;
LoadContext = loadContext;
}
public GameInfo OriginalInfo { get; }
public GameLoadContext LoadContext { get; }
public List<LoadedModInfo> Mods { get; } = new();
public TwoWayDictionary<string, Object> Resources { get; } = new();
/// <summary>
/// Indexed by locale code. Tables later in the list have higher priority and should be searched first.
/// </summary>
public Dictionary<string, List<LocalizationTable>> LocalizationTables { get; } = new();
public List<Func<UniTask>> OnUnloadTasks { get; } = new();
}
}