-
Notifications
You must be signed in to change notification settings - Fork 0
/
All.cs
34 lines (22 loc) · 1.45 KB
/
All.cs
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.Linq;
using TaleWorlds.CampaignSystem;
using TaleWorlds.CampaignSystem.CharacterDevelopment;
using TaleWorlds.CampaignSystem.Party;
using TaleWorlds.CampaignSystem.Settlements;
using TaleWorlds.Core;
namespace Int19h.Bannerlord.CSharp.Scripting {
public struct All {
public static implicit operator Kingdom[](All all) => ScriptGlobals.Kingdoms.ToArray();
public static implicit operator Clan[](All all) => ScriptGlobals.Clans.ToArray();
public static implicit operator Hero[](All all) => ScriptGlobals.Heroes.ToArray();
public static implicit operator Settlement[](All all) => ScriptGlobals.Settlements.ToArray();
public static implicit operator Town[](All all) => ScriptGlobals.Fiefs.ToArray();
public static implicit operator Village[](All all) => ScriptGlobals.Villages.ToArray();
public static implicit operator MobileParty[](All all) => ScriptGlobals.Parties.ToArray();
public static implicit operator ItemObject[](All all) => ScriptGlobals.ItemObjects.ToArray();
public static implicit operator PerkObject[](All all) => ScriptGlobals.Perks.ToArray();
public static implicit operator CharacterAttribute[](All all) => ScriptGlobals.CharacterAttributes.ToArray();
public static implicit operator TraitObject[](All all) => ScriptGlobals.Traits.ToArray();
public static implicit operator SkillObject[](All all) => ScriptGlobals.Skills.ToArray();
}
}