287 lines
8.9 KiB
C#
287 lines
8.9 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Runtime.CompilerServices;
|
|
using Cpp2IlInjected;
|
|
using RRUI.Data;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
|
|
namespace RRUI
|
|
{
|
|
// Token: 0x0200078B RID: 1931
|
|
[Token(Token = "0x200078B")]
|
|
[CreateAssetMenu]
|
|
public class InventionsConfig : ScriptableObject
|
|
{
|
|
// Token: 0x1700095A RID: 2394
|
|
// (get) Token: 0x06003707 RID: 14087 RVA: 0x000E6AE8 File Offset: 0x000E4CE8
|
|
[Token(Token = "0x1700095A")]
|
|
public static InventionsConfig Instance
|
|
{
|
|
[Token(Token = "0x6003707")]
|
|
[Address(RVA = "0x13A7BB0", Offset = "0x13A69B0", VA = "0x1813A7BB0")]
|
|
get
|
|
{
|
|
InventionsConfig instance = InventionsConfig._instance;
|
|
int num = 0;
|
|
if (!(instance != num))
|
|
{
|
|
InventionsConfig._instance = OLJIOKGMCPN.MNKDOANEFLK<InventionsConfig>(0);
|
|
InventionsConfig instance2 = InventionsConfig._instance;
|
|
int num2 = 0;
|
|
if (instance2 == num2)
|
|
{
|
|
Debug.LogError("Failed to load Inventions object");
|
|
}
|
|
}
|
|
return InventionsConfig._instance;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700095B RID: 2395
|
|
// (get) Token: 0x06003708 RID: 14088 RVA: 0x000E6B34 File Offset: 0x000E4D34
|
|
[Token(Token = "0x1700095B")]
|
|
public List<InventionsConfig.InventionReportCategoryFriendlyNameMapping> InventionReportCategoryList
|
|
{
|
|
[Token(Token = "0x6003708")]
|
|
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
|
get
|
|
{
|
|
return this.inventionReportCategoryList;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06003709 RID: 14089 RVA: 0x000E6B48 File Offset: 0x000E4D48
|
|
[Token(Token = "0x6003709")]
|
|
[Address(RVA = "0x13A74A0", Offset = "0x13A62A0", VA = "0x1813A74A0")]
|
|
public string HFNIMFAOFJL(HECIICKPCDN FEIIKGIHEBN)
|
|
{
|
|
Dictionary<HECIICKPCDN, string> inventionPermissionTypeFriendlyNameMapping = this.InventionPermissionTypeFriendlyNameMapping;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600370A RID: 14090 RVA: 0x000E6B7C File Offset: 0x000E4D7C
|
|
[Token(Token = "0x600370A")]
|
|
[Address(RVA = "0x13A7530", Offset = "0x13A6330", VA = "0x1813A7530")]
|
|
public void OBAJPBACBIC(out List<InventionsConfig.InventionSortFriendlyNameMapping> MPKFLMDODBO, out List<TMP_Dropdown.OptionData> FAIIFLGONJC)
|
|
{
|
|
List<InventionsConfig.InventionSortFriendlyNameMapping> inventionSortCriteriaMetadata = this.InventionSortCriteriaMetadata;
|
|
Func<InventionsConfig.InventionSortFriendlyNameMapping, InventionsConfig.IJEBAJLMDGP> <>9__12_ = InventionsConfig.<>c.<>9__12_0;
|
|
if (<>9__12_ == 0)
|
|
{
|
|
InventionsConfig.<>c.<>9__12_0 = delegate(InventionsConfig.InventionSortFriendlyNameMapping sc)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
};
|
|
}
|
|
List<InventionsConfig.InventionSortFriendlyNameMapping> list = Enumerable.ToList<InventionsConfig.InventionSortFriendlyNameMapping>(Enumerable.OrderBy<InventionsConfig.InventionSortFriendlyNameMapping, InventionsConfig.IJEBAJLMDGP>(inventionSortCriteriaMetadata, <>9__12_));
|
|
MPKFLMDODBO._items = list;
|
|
Func<InventionsConfig.InventionSortFriendlyNameMapping, TMP_Dropdown.OptionData> func;
|
|
if (InventionsConfig.<>c.<>9__12_1 == 0)
|
|
{
|
|
func = delegate(InventionsConfig.InventionSortFriendlyNameMapping m)
|
|
{
|
|
TMP_Dropdown.OptionData optionData;
|
|
return optionData;
|
|
};
|
|
InventionsConfig.<>c.<>9__12_1 = func;
|
|
}
|
|
List<TMP_Dropdown.OptionData> list2 = Enumerable.ToList<TMP_Dropdown.OptionData>(Enumerable.Select<InventionsConfig.InventionSortFriendlyNameMapping, TMP_Dropdown.OptionData>(list, func));
|
|
FAIIFLGONJC._items = list2;
|
|
}
|
|
|
|
// Token: 0x0600370B RID: 14091 RVA: 0x000E6BF8 File Offset: 0x000E4DF8
|
|
[Token(Token = "0x600370B")]
|
|
[Address(RVA = "0x13A7710", Offset = "0x13A6510", VA = "0x1813A7710")]
|
|
public string OPBOLMAGHOO(InventionListModel.DEEJFPHCCPF DIEPOPNJNCO)
|
|
{
|
|
Func<InventionsConfig.InventionSourceFriendlyNameMapping, bool> func = delegate(InventionsConfig.InventionSourceFriendlyNameMapping rs)
|
|
{
|
|
bool flag;
|
|
return flag;
|
|
};
|
|
InventionsConfig.InventionSourceFriendlyNameMapping inventionSourceFriendlyNameMapping;
|
|
if (inventionSourceFriendlyNameMapping == 0)
|
|
{
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600370C RID: 14092 RVA: 0x000E6C2C File Offset: 0x000E4E2C
|
|
[Token(Token = "0x600370C")]
|
|
[Address(RVA = "0x13A77E0", Offset = "0x13A65E0", VA = "0x1813A77E0")]
|
|
public InventionsConfig()
|
|
{
|
|
List<InventionsConfig.InventionReportCategoryFriendlyNameMapping> list = new List();
|
|
this.inventionReportCategoryList = list;
|
|
List<InventionsConfig.InventionSortFriendlyNameMapping> list2 = new List();
|
|
this.InventionSortCriteriaMetadata = list2;
|
|
List<InventionsConfig.InventionSourceFriendlyNameMapping> list3 = new List();
|
|
this.InventionSourceCriteriaMetadata = list3;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x04002EFB RID: 12027
|
|
[Token(Token = "0x4002EFB")]
|
|
private static InventionsConfig _instance;
|
|
|
|
// Token: 0x04002EFC RID: 12028
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4002EFC")]
|
|
private Dictionary<HECIICKPCDN, string> InventionPermissionTypeFriendlyNameMapping = new Dictionary
|
|
{
|
|
{
|
|
(uint)10,
|
|
"One Use Only"
|
|
},
|
|
{
|
|
(uint)20,
|
|
"Use Only"
|
|
},
|
|
{
|
|
(uint)40,
|
|
"Edit & Save"
|
|
},
|
|
{
|
|
(uint)60,
|
|
"Publish"
|
|
}
|
|
};
|
|
|
|
// Token: 0x04002EFD RID: 12029
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4002EFD")]
|
|
[SerializeField]
|
|
[Header("Invention Report Category List")]
|
|
private List<InventionsConfig.InventionReportCategoryFriendlyNameMapping> inventionReportCategoryList;
|
|
|
|
// Token: 0x04002EFE RID: 12030
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4002EFE")]
|
|
[SerializeField]
|
|
[Header("Invention List")]
|
|
private List<InventionsConfig.InventionSortFriendlyNameMapping> InventionSortCriteriaMetadata;
|
|
|
|
// Token: 0x04002EFF RID: 12031
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4002EFF")]
|
|
[SerializeField]
|
|
private List<InventionsConfig.InventionSourceFriendlyNameMapping> InventionSourceCriteriaMetadata;
|
|
|
|
// Token: 0x0200078C RID: 1932
|
|
[Token(Token = "0x200078C")]
|
|
public enum IJEBAJLMDGP
|
|
{
|
|
// Token: 0x04002F01 RID: 12033
|
|
[Token(Token = "0x4002F01")]
|
|
CreationDate_Desc,
|
|
// Token: 0x04002F02 RID: 12034
|
|
[Token(Token = "0x4002F02")]
|
|
CreationDate_Asc,
|
|
// Token: 0x04002F03 RID: 12035
|
|
[Token(Token = "0x4002F03")]
|
|
Name_Asc,
|
|
// Token: 0x04002F04 RID: 12036
|
|
[Token(Token = "0x4002F04")]
|
|
Name_Desc,
|
|
// Token: 0x04002F05 RID: 12037
|
|
[Token(Token = "0x4002F05")]
|
|
Downloads_Asc,
|
|
// Token: 0x04002F06 RID: 12038
|
|
[Token(Token = "0x4002F06")]
|
|
Downloads_Desc,
|
|
// Token: 0x04002F07 RID: 12039
|
|
[Token(Token = "0x4002F07")]
|
|
Cheers_Asc,
|
|
// Token: 0x04002F08 RID: 12040
|
|
[Token(Token = "0x4002F08")]
|
|
Cheers_Desc,
|
|
// Token: 0x04002F09 RID: 12041
|
|
[Token(Token = "0x4002F09")]
|
|
Price_Asc,
|
|
// Token: 0x04002F0A RID: 12042
|
|
[Token(Token = "0x4002F0A")]
|
|
Price_Desc,
|
|
// Token: 0x04002F0B RID: 12043
|
|
[Token(Token = "0x4002F0B")]
|
|
Default
|
|
}
|
|
|
|
// Token: 0x0200078D RID: 1933
|
|
[Token(Token = "0x200078D")]
|
|
[Serializable]
|
|
public struct InventionReportCategoryFriendlyNameMapping
|
|
{
|
|
// Token: 0x04002F0C RID: 12044
|
|
[FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x4002F0C")]
|
|
public FDEGHHFBJJO EnumValue;
|
|
|
|
// Token: 0x04002F0D RID: 12045
|
|
[FieldOffset(Offset = "0x8")]
|
|
[Token(Token = "0x4002F0D")]
|
|
public string FriendlyName;
|
|
}
|
|
|
|
// Token: 0x0200078E RID: 1934
|
|
[Token(Token = "0x200078E")]
|
|
[Serializable]
|
|
public struct InventionSortFriendlyNameMapping
|
|
{
|
|
// Token: 0x04002F0E RID: 12046
|
|
[FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x4002F0E")]
|
|
public InventionsConfig.IJEBAJLMDGP EnumValue;
|
|
|
|
// Token: 0x04002F0F RID: 12047
|
|
[FieldOffset(Offset = "0x8")]
|
|
[Token(Token = "0x4002F0F")]
|
|
public string FriendlyName;
|
|
}
|
|
|
|
// Token: 0x0200078F RID: 1935
|
|
[Token(Token = "0x200078F")]
|
|
[Serializable]
|
|
public struct InventionSourceFriendlyNameMapping
|
|
{
|
|
// Token: 0x04002F10 RID: 12048
|
|
[FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x4002F10")]
|
|
public InventionListModel.DEEJFPHCCPF SourceEnum;
|
|
|
|
// Token: 0x04002F11 RID: 12049
|
|
[FieldOffset(Offset = "0x8")]
|
|
[Token(Token = "0x4002F11")]
|
|
public string FriendlyName;
|
|
}
|
|
|
|
// Token: 0x02000791 RID: 1937
|
|
[Token(Token = "0x2000791")]
|
|
[CompilerGenerated]
|
|
private sealed class FKABDBFFLGM
|
|
{
|
|
// Token: 0x06003711 RID: 14097 RVA: 0x000E6CF0 File Offset: 0x000E4EF0
|
|
[Token(Token = "0x6003711")]
|
|
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
|
public FKABDBFFLGM()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06003712 RID: 14098 RVA: 0x000E6D04 File Offset: 0x000E4F04
|
|
[Token(Token = "0x6003712")]
|
|
[Address(RVA = "0x9EC100", Offset = "0x9EAF00", VA = "0x1809EC100")]
|
|
internal bool <GetFriendlyNameFor>b__0(InventionsConfig.InventionSourceFriendlyNameMapping rs)
|
|
{
|
|
bool flag;
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x04002F15 RID: 12053
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4002F15")]
|
|
public InventionListModel.DEEJFPHCCPF source;
|
|
}
|
|
}
|
|
}
|