using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Globalization;
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using System.Security.Permissions;
using BepInEx;
using HarmonyLib;
using Jotunn;
using Jotunn.Configs;
using Jotunn.Entities;
using Jotunn.Managers;
using Jotunn.Utils;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("trustymod")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("trustymod")]
[assembly: AssemblyCopyright("Copyright © 2021")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("e3243d22-4307-4008-ba36-9f326008cde5")]
[assembly: AssemblyFileVersion("0.0.1.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("0.0.1.0")]
namespace trustymod
{
[BepInPlugin("com.jotunn.trustymod", "trustymod", "0.0.1")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
[NetworkCompatibility(/*Could not decode attribute arguments.*/)]
internal class trustymod : BaseUnityPlugin
{
public const string PluginGUID = "com.jotunn.trustymod";
public const string PluginName = "trustymod";
public const string PluginVersion = "0.0.1";
public static CustomLocalization Localization = LocalizationManager.Instance.GetLocalization();
private Harmony harmony;
public static trustymod Instance { get; private set; }
public static AssetBundle AssetBundle { get; private set; }
private void Awake()
{
//IL_0011: Unknown result type (might be due to invalid IL or missing references)
//IL_001b: Expected O, but got Unknown
//IL_003f: Unknown result type (might be due to invalid IL or missing references)
//IL_0045: Expected O, but got Unknown
//IL_0056: Unknown result type (might be due to invalid IL or missing references)
//IL_005c: Expected O, but got Unknown
//IL_0095: Unknown result type (might be due to invalid IL or missing references)
//IL_009f: Expected O, but got Unknown
AddLocalizations();
Instance = this;
harmony = new Harmony("com.jotunn.trustymod");
harmony.PatchAll();
Logger.LogInfo((object)"trustymod getting loaded hopefully:3");
AssetBundle = AssetUtils.LoadAssetBundleFromResources("plush");
PieceConfig val = new PieceConfig();
val.Requirements = (RequirementConfig[])(object)new RequirementConfig[1]
{
new RequirementConfig("Wood", 2, 0, true)
};
val.PieceTable = "Hammer";
val.CraftingStation = "piece_workbench";
val.Category = "Furniture";
PieceConfig val2 = val;
PieceManager.Instance.AddPiece(new CustomPiece(AssetBundle, "piece_plush", true, val2));
}
private static void AddLocalizations()
{
Localization = LocalizationManager.Instance.GetLocalization();
CustomLocalization localization = Localization;
string text = "English";
localization.AddTranslation(ref text, new Dictionary<string, string>
{
{ "piece_plush", "Maxwell" },
{ "piece_plush_desc", "Its here" }
});
CustomLocalization localization2 = Localization;
text = "Turkish";
localization2.AddTranslation(ref text, new Dictionary<string, string>
{
{ "piece_plush", "Maxwell" },
{ "piece_plush_desc", "KEDY" }
});
}
}
}
namespace trustymod.Properties
{
[GeneratedCode("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[DebuggerNonUserCode]
[CompilerGenerated]
internal class Resources
{
private static ResourceManager resourceMan;
private static CultureInfo resourceCulture;
[EditorBrowsable(EditorBrowsableState.Advanced)]
internal static ResourceManager ResourceManager
{
get
{
if (resourceMan == null)
{
resourceMan = new ResourceManager("trustymod.Properties.Resources", typeof(Resources).Assembly);
}
return resourceMan;
}
}
[EditorBrowsable(EditorBrowsableState.Advanced)]
internal static CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
internal static string plush => ResourceManager.GetString("plush", resourceCulture);
internal Resources()
{
}
}
}