Decompiled source of 2 Story RV Cruiser MelanieMelicious v0.1.0

MelanieRV.dll

Decompiled a day ago
using System;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Configuration;
using BepInEx.Logging;
using HarmonyLib;
using Microsoft.CodeAnalysis;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("2 sToRy sHiP")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("this one")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("3b42a851-dbf6-428d-a7f2-0af1d6039c22")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	internal sealed class EmbeddedAttribute : Attribute
	{
	}
}
namespace System.Runtime.CompilerServices
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)]
	internal sealed class RefSafetyRulesAttribute : Attribute
	{
		public readonly int Version;

		public RefSafetyRulesAttribute(int P_0)
		{
			Version = P_0;
		}
	}
}
public class HarmonyPatches
{
	[HarmonyPostfix]
	[HarmonyPatch(typeof(VehicleController), "Awake")]
	[HarmonyAfter(new string[] { "mborsh.CruiserTerminal" })]
	private static void VehiclePatch()
	{
		Setup.RVSetup();
	}
}
public class Setup : MonoBehaviour
{
	public static void RVSetup()
	{
		//IL_00e2: Unknown result type (might be due to invalid IL or missing references)
		//IL_00ff: Unknown result type (might be due to invalid IL or missing references)
		//IL_011c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0139: Unknown result type (might be due to invalid IL or missing references)
		//IL_0328: Unknown result type (might be due to invalid IL or missing references)
		//IL_0358: Unknown result type (might be due to invalid IL or missing references)
		//IL_0381: Unknown result type (might be due to invalid IL or missing references)
		//IL_03aa: Unknown result type (might be due to invalid IL or missing references)
		//IL_03db: Unknown result type (might be due to invalid IL or missing references)
		//IL_01cf: Unknown result type (might be due to invalid IL or missing references)
		//IL_0688: Unknown result type (might be due to invalid IL or missing references)
		//IL_06a5: Unknown result type (might be due to invalid IL or missing references)
		//IL_06c2: Unknown result type (might be due to invalid IL or missing references)
		//IL_06df: Unknown result type (might be due to invalid IL or missing references)
		//IL_06fc: Unknown result type (might be due to invalid IL or missing references)
		//IL_0719: Unknown result type (might be due to invalid IL or missing references)
		//IL_0736: Unknown result type (might be due to invalid IL or missing references)
		//IL_0753: Unknown result type (might be due to invalid IL or missing references)
		//IL_0770: Unknown result type (might be due to invalid IL or missing references)
		//IL_078e: Unknown result type (might be due to invalid IL or missing references)
		//IL_07ab: Unknown result type (might be due to invalid IL or missing references)
		//IL_07bc: Unknown result type (might be due to invalid IL or missing references)
		//IL_07cd: Unknown result type (might be due to invalid IL or missing references)
		//IL_09a9: Unknown result type (might be due to invalid IL or missing references)
		//IL_09cd: Unknown result type (might be due to invalid IL or missing references)
		//IL_09f5: Unknown result type (might be due to invalid IL or missing references)
		//IL_0a1e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0a47: Unknown result type (might be due to invalid IL or missing references)
		//IL_0a70: Unknown result type (might be due to invalid IL or missing references)
		//IL_0a99: Unknown result type (might be due to invalid IL or missing references)
		//IL_0ac2: Unknown result type (might be due to invalid IL or missing references)
		//IL_0aeb: Unknown result type (might be due to invalid IL or missing references)
		//IL_0b14: Unknown result type (might be due to invalid IL or missing references)
		//IL_0b3d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0b6e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0b97: Unknown result type (might be due to invalid IL or missing references)
		//IL_0bc0: Unknown result type (might be due to invalid IL or missing references)
		//IL_0be9: Unknown result type (might be due to invalid IL or missing references)
		//IL_0c12: Unknown result type (might be due to invalid IL or missing references)
		//IL_0c3b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0c64: Unknown result type (might be due to invalid IL or missing references)
		//IL_0c8d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0cb6: Unknown result type (might be due to invalid IL or missing references)
		//IL_0cdf: Unknown result type (might be due to invalid IL or missing references)
		//IL_0d08: Unknown result type (might be due to invalid IL or missing references)
		//IL_0d31: Unknown result type (might be due to invalid IL or missing references)
		//IL_0d5a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0d83: Unknown result type (might be due to invalid IL or missing references)
		//IL_0dac: Unknown result type (might be due to invalid IL or missing references)
		//IL_0ddd: Unknown result type (might be due to invalid IL or missing references)
		//IL_0e0a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0419: Unknown result type (might be due to invalid IL or missing references)
		//IL_0442: Unknown result type (might be due to invalid IL or missing references)
		//IL_046b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0494: Unknown result type (might be due to invalid IL or missing references)
		//IL_04bd: Unknown result type (might be due to invalid IL or missing references)
		//IL_04e6: Unknown result type (might be due to invalid IL or missing references)
		//IL_050f: Unknown result type (might be due to invalid IL or missing references)
		//IL_0538: Unknown result type (might be due to invalid IL or missing references)
		//IL_0561: Unknown result type (might be due to invalid IL or missing references)
		//IL_058a: Unknown result type (might be due to invalid IL or missing references)
		//IL_05cb: Unknown result type (might be due to invalid IL or missing references)
		//IL_0620: Unknown result type (might be due to invalid IL or missing references)
		//IL_0665: Unknown result type (might be due to invalid IL or missing references)
		//IL_01f9: Unknown result type (might be due to invalid IL or missing references)
		//IL_0208: Unknown result type (might be due to invalid IL or missing references)
		//IL_0256: Unknown result type (might be due to invalid IL or missing references)
		//IL_027f: Unknown result type (might be due to invalid IL or missing references)
		//IL_02a8: Unknown result type (might be due to invalid IL or missing references)
		//IL_02d1: Unknown result type (might be due to invalid IL or missing references)
		//IL_0302: Unknown result type (might be due to invalid IL or missing references)
		Material[] array = (Material[])(object)new Material[6]
		{
			Plugin.bundle.LoadAsset<Material>("Assets/MelanieRV/Material/ClosetFrame0.mat"),
			((Renderer)GameObject.Find("CompanyCruiser(Clone)/Meshes/MainBody").GetComponent<MeshRenderer>()).materials[1],
			((Renderer)GameObject.Find("CompanyCruiser(Clone)/Meshes/MainBody").GetComponent<MeshRenderer>()).materials[2],
			Plugin.bundle.LoadAsset<Material>("Assets/MelanieRV/Material/SteelGray.mat"),
			Plugin.bundle.LoadAsset<Material>("Assets/MelanieRV/Material/BlackRubber.mat"),
			((Renderer)GameObject.Find("Environment/HangarShip/CatwalkShip").GetComponent<MeshRenderer>()).materials[0]
		};
		BoxCollider[] components = GameObject.Find("CompanyCruiser(Clone)").GetComponents<BoxCollider>();
		BoxCollider[] components2 = GameObject.Find("CompanyCruiser(Clone)/Triggers/RightShelfPlacementCollider").GetComponents<BoxCollider>();
		GameObject val = Object.Instantiate<GameObject>(Plugin.bundle.LoadAsset<GameObject>("Assets/MelanieRV/Prefab/MelanieRVFloor0.prefab"), GameObject.Find("CompanyCruiser(Clone)/Meshes/MainBody").transform);
		Color color = default(Color);
		ColorUtility.TryParseHtmlString(RVConfig.colorExt.Value, ref color);
		array[0].color = color;
		ColorUtility.TryParseHtmlString(RVConfig.colorInt.Value, ref color);
		array[3].color = color;
		ColorUtility.TryParseHtmlString(RVConfig.colorBorder.Value, ref color);
		array[4].color = color;
		ColorUtility.TryParseHtmlString(RVConfig.colorGlass.Value, ref color);
		array[2].color = color;
		if (RVConfig.floor2.Value)
		{
			GameObject val2 = Object.Instantiate<GameObject>(Plugin.bundle.LoadAsset<GameObject>("Assets/MelanieRV/Prefab/MelanieRVFloor1.prefab"), GameObject.Find("MelanieRVFloor0(Clone)").transform);
			GameObject val3 = GameObject.Find("CompanyCruiser(Clone)");
			BoxCollider[] components3 = GameObject.Find("MelanieRVFloor1(Clone)/Clip").GetComponents<BoxCollider>();
			((Renderer)val2.GetComponent<MeshRenderer>()).materials = (Material[])(object)new Material[3]
			{
				array[0],
				array[3],
				array[2]
			};
			components[9].center = new Vector3(0f, 5.6f, -1.4f);
			BoxCollider[] array2 = components3;
			foreach (BoxCollider val4 in array2)
			{
				BoxCollider val5 = val3.AddComponent<BoxCollider>();
				val5.center = val4.center;
				val5.size = val4.size;
			}
			Object.Destroy((Object)(object)((Component)components3[0]).gameObject);
			Move(new string[2] { "CompanyCruiser(Clone)/Triggers/BackPhysicsRegion", "CompanyCruiser(Clone)/Triggers/ItemDropRegion" }, new Vector3(0f, 2.6f, -2.8f));
			Move(new string[1] { "CompanyCruiser(Clone)/VehicleBounds" }, new Vector3(0f, 2.6f, -2.5f));
			Move(new string[1] { "MelanieRVFloor0(Clone)/Roof0" }, new Vector3(0f, 0f, 4f));
			Size(new string[1] { "CompanyCruiser(Clone)/Triggers/BackPhysicsRegion" }, new Vector3(3.1f, 6f, 5.1f));
			Size(new string[2] { "CompanyCruiser(Clone)/Triggers/ItemDropRegion", "CompanyCruiser(Clone)/VehicleBounds" }, new Vector3(3.3f, 8f, 7f));
		}
		else
		{
			components[9].center = new Vector3(0f, 2.3f, -1.4f);
			Move(new string[2] { "CompanyCruiser(Clone)/Triggers/BackPhysicsRegion", "CompanyCruiser(Clone)/VehicleBounds" }, new Vector3(0f, 0.6f, -2.8f));
			Move(new string[1] { "CompanyCruiser(Clone)/Triggers/ItemDropRegion" }, new Vector3(0f, 1f, -2.5f));
			Size(new string[1] { "CompanyCruiser(Clone)/Triggers/BackPhysicsRegion" }, new Vector3(3.1f, 2.1f, 5.1f));
			Size(new string[2] { "CompanyCruiser(Clone)/Triggers/ItemDropRegion", "CompanyCruiser(Clone)/VehicleBounds" }, new Vector3(3.3f, 4f, 7f));
		}
		if (RVConfig.bigTire.Value)
		{
			Move(new string[1] { "CompanyCruiser(Clone)/Colliders/BackWheel" }, new Vector3(0f, -2f, -3f));
			Move(new string[1] { "CompanyCruiser(Clone)/Colliders/CenterWheel" }, new Vector3(0.6f, -2f, -0.1f));
			Move(new string[1] { "CompanyCruiser(Clone)/Colliders/CenterWheel (1)" }, new Vector3(-0.6f, -2f, -1.5f));
			Move(new string[1] { "CompanyCruiser(Clone)/Colliders/FrontWheel" }, new Vector3(0.8f, -2f, 2.8f));
			Move(new string[1] { "CompanyCruiser(Clone)/Colliders/FrontWheel (1)" }, new Vector3(0.1f, -2f, 4.6f));
			Move(new string[1] { "CompanyCruiser(Clone)/Colliders/FrontWheel (2)" }, new Vector3(-0.6f, -2f, 1.6f));
			Move(new string[1] { "CompanyCruiser(Clone)/Colliders/BackWheelColliders/BackLeftTireCollider" }, new Vector3(-3f, -0.6f, 0.5f));
			Move(new string[1] { "CompanyCruiser(Clone)/Colliders/BackWheelColliders/BackRightTireCollider" }, new Vector3(3f, -0.6f, 0.5f));
			Move(new string[1] { "CompanyCruiser(Clone)/Colliders/FrontWheelColliders/FrontLeftTireCollider" }, new Vector3(-3f, -0.6f, -0.6f));
			Move(new string[1] { "CompanyCruiser(Clone)/Colliders/FrontWheelColliders/FrontRightTireCollider" }, new Vector3(3f, -0.6f, -0.6f));
			Size(new string[4] { "FrontWheelAxisContainer/FrontLeftTire", "FrontWheelAxisContainer/FrontRightTire", "BackWheelAxisContainer/BackLeftTire", "BackWheelAxisContainer/BackRightTire" }, new Vector3(3f, 2f, 2f), "CompanyCruiser(Clone)/Meshes/Wheels/");
			Size(new string[6] { "BackWheel", "CenterWheel", "CenterWheel (1)", "FrontWheel", "FrontWheel (1)", "FrontWheel (2)" }, new Vector3(1f, 1.5f, 1f), "CompanyCruiser(Clone)/Colliders/");
			Size(new string[4] { "BackWheelColliders/BackLeftTireCollider", "BackWheelColliders/BackRightTireCollider", "FrontWheelColliders/FrontLeftTireCollider", "FrontWheelColliders/FrontRightTireCollider" }, new Vector3(1f, 1.8f, 1f), "CompanyCruiser(Clone)/Colliders/");
		}
		components[2].center = new Vector3(0f, 1.3f, 0.8f);
		components[4].center = new Vector3(1.9f, 0.6f, -2.5f);
		components[5].center = new Vector3(-1.9f, 0.6f, -2.5f);
		components[6].center = new Vector3(0f, -0.9f, -2.6f);
		components2[1].center = new Vector3(1.1f, 1.16f, -2.4f);
		components[2].size = new Vector3(4f, 0.1f, 0.5f);
		components[4].size = new Vector3(0.2f, 3.6f, 6.1f);
		components[5].size = new Vector3(0.2f, 3.6f, 6.1f);
		components[6].size = new Vector3(3.7f, 0.8f, 6.2f);
		components[9].size = new Vector3(4f, 0.3f, 8.4f);
		components2[1].size = new Vector3(0.4f, 0.1f, 0.5f);
		val.transform.localPosition = Vector3.zero;
		val.transform.localEulerAngles = Vector3.zero;
		GameObject.Find("CompanyCruiser(Clone)/Meshes/MainBody").GetComponent<MeshFilter>().mesh = Plugin.bundle.LoadAsset<Mesh>("Assets/MelanieRV/Mesh/RV0Base0.mesh");
		GameObject.Find("CompanyCruiser(Clone)/Meshes/MainBody/MainBody (1)").GetComponent<MeshFilter>().mesh = Plugin.bundle.LoadAsset<Mesh>("Assets/MelanieRV/Mesh/RV0Base0.mesh");
		GameObject.Find("CompanyCruiser(Clone)/Meshes/MainBody/MainBody (2)").GetComponent<MeshFilter>().mesh = Plugin.bundle.LoadAsset<Mesh>("Assets/MelanieRV/Mesh/RV0Base0.mesh");
		((Renderer)GameObject.Find("CompanyCruiser(Clone)/Meshes/MainBody").GetComponent<MeshRenderer>()).materials = (Material[])(object)new Material[5]
		{
			array[0],
			array[1],
			array[2],
			array[3],
			array[4]
		};
		((Renderer)GameObject.Find("CompanyCruiser(Clone)/Meshes/MainBody/MainBody (1)").GetComponent<MeshRenderer>()).materials = (Material[])(object)new Material[5]
		{
			array[0],
			array[1],
			array[2],
			array[3],
			array[4]
		};
		((Renderer)GameObject.Find("CompanyCruiser(Clone)/Meshes/MainBody/MainBody (2)").GetComponent<MeshRenderer>()).materials = (Material[])(object)new Material[5]
		{
			array[0],
			array[1],
			array[2],
			array[3],
			array[4]
		};
		((Renderer)GameObject.Find("CompanyCruiser(Clone)/Meshes/CarHoodContainer/CarHoodMesh").GetComponent<MeshRenderer>()).materials = (Material[])(object)new Material[1] { array[0] };
		((Renderer)GameObject.Find("CompanyCruiser(Clone)/Meshes/DoorLeftContainer/Door").GetComponent<MeshRenderer>()).materials = (Material[])(object)new Material[1] { array[0] };
		((Renderer)GameObject.Find("CompanyCruiser(Clone)/Meshes/DoorRightContainer/Door").GetComponent<MeshRenderer>()).materials = (Material[])(object)new Material[1] { array[0] };
		((Renderer)GameObject.Find("MelanieRVFloor0(Clone)/Detail0").GetComponent<MeshRenderer>()).materials = (Material[])(object)new Material[3]
		{
			array[3],
			array[4],
			array[5]
		};
		GameObject.Find("CompanyCruiser(Clone)/Meshes/InteractionBlockers").SetActive(false);
		Create("CompanyCruiser(Clone)/Meshes/DriverSeatContainer/Seat/DriverSeat", "PassengerSeat", new Vector3(0.3f, -2.1f, 0.8f));
		Create("CompanyCruiser(Clone)/PhysicsColliders/Cube (7)", "Roof1Clip0", new Vector3(0f, 1.3f, 1.6f));
		Move(new string[1] { "CompanyCruiser(Clone)/Colliders/BackWheelColliders" }, new Vector3(0f, -1.5f, -4f));
		Move(new string[1] { "CompanyCruiser(Clone)/Meshes/BackLight" }, new Vector3(0f, -2.2f, -1.88f));
		Move(new string[1] { "CompanyCruiser(Clone)/Meshes/BackDoorContainer" }, new Vector3(-0.05f, -0.4f, -6.6f));
		Move(new string[1] { "CompanyCruiser(Clone)/Meshes/Wheels/BackWheelAxisContainer" }, new Vector3(0f, 0.7f, -4f));
		Move(new string[1] { "CompanyCruiser(Clone)/Meshes/Cube" }, new Vector3(0f, -2f, -1f));
		Move(new string[1] { "CompanyCruiser(Clone)/NavSurface" }, new Vector3(0f, -0.7f, -2.5f));
		Move(new string[1] { "CompanyCruiser(Clone)/Triggers/LeftShelfPlacementCollider" }, new Vector3(-0.5f, 0f, -6f));
		Move(new string[1] { "CompanyCruiser(Clone)/Triggers/RightShelfPlacementCollider" }, new Vector3(0.5f, 0f, 1.4f));
		Move(new string[1] { "CompanyCruiser(Clone)/PushTrigger" }, new Vector3(2.3f, 0.7f, -1.7f));
		Move(new string[2] { "CompanyCruiser(Clone)/ExhaustSmoke", "CompanyCruiser(Clone)/TurboBoost" }, new Vector3(1.5f, -1.4f, -5.6f));
		Move(new string[1] { "CompanyCruiser(Clone)/InsideTruckNavBounds" }, new Vector3(0f, -0.5f, -2.6f));
		Move(new string[1] { "CompanyCruiser(Clone)/terminalPosition" }, new Vector3(1.7f, 0.9f, -4.8f));
		Move(new string[1] { "VehiclesContainer/PhysicsColliders/Cube (7)" }, new Vector3(0f, -0.6f, -2.7f));
		Move(new string[1] { "VehiclesContainer/PhysicsColliders/Cube (8)" }, new Vector3(0f, 2.3f, -1.5f));
		Move(new string[1] { "VehiclesContainer/PhysicsColliders/Cube (9)" }, new Vector3(2f, 0.6f, -2.4f));
		Move(new string[1] { "VehiclesContainer/PhysicsColliders/Cube (10)" }, new Vector3(0f, 0f, 0.6f));
		Move(new string[1] { "VehiclesContainer/PhysicsColliders/Cube (11)" }, new Vector3(-2f, 0.6f, -2.4f));
		Size(new string[1] { "CompanyCruiser(Clone)/Meshes/Cube" }, new Vector3(4f, 1.3f, 11.5f));
		Size(new string[1] { "CompanyCruiser(Clone)/NavSurface" }, new Vector3(4f, 0.3f, 6.5f));
		Size(new string[1] { "CompanyCruiser(Clone)/Triggers/RightShelfPlacementCollider" }, new Vector3(1f, 1f, 2.2f));
		Size(new string[1] { "CompanyCruiser(Clone)/PushTrigger" }, new Vector3(0.09f, 3.3f, 4.4f));
		Size(new string[1] { "CompanyCruiser(Clone)/InsideTruckNavBounds" }, new Vector3(2.7f, 0.4f, 6.3f));
		Size(new string[1] { "VehiclesContainer/PhysicsColliders/Cube (7)" }, new Vector3(4f, 0.2f, 6.7f));
		Size(new string[1] { "VehiclesContainer/PhysicsColliders/Cube (8)" }, new Vector3(4f, 0.2f, 8f));
		Size(new string[2] { "Cube (9)", "Cube (11)" }, new Vector3(0.1f, 3.6f, 6f), "VehiclesContainer/PhysicsColliders/");
		Size(new string[1] { "VehiclesContainer/PhysicsColliders/Cube (10)" }, new Vector3(4f, 2.5f, 0.1f));
	}

	private static void Move(string[] obj, Vector3 pos, string path = null)
	{
		//IL_0018: Unknown result type (might be due to invalid IL or missing references)
		try
		{
			foreach (string text in obj)
			{
				GameObject.Find(text).transform.localPosition = pos;
			}
		}
		catch
		{
		}
	}

	private static void Size(string[] obj, Vector3 scale, string path = null)
	{
		//IL_001e: Unknown result type (might be due to invalid IL or missing references)
		try
		{
			foreach (string text in obj)
			{
				GameObject.Find(path + text).transform.localScale = scale;
			}
		}
		catch
		{
		}
	}

	private static void Create(string obj, string name, Vector3 pos)
	{
		//IL_0035: Unknown result type (might be due to invalid IL or missing references)
		try
		{
			GameObject val = Object.Instantiate<GameObject>(GameObject.Find(obj), GameObject.Find(obj).transform.parent);
			((Object)val).name = name;
			Move(new string[1] { ((Object)val).name }, pos);
		}
		catch
		{
		}
	}
}
[BepInPlugin("MelanieMelicious.CrusierRV", "Melanie Melicious - Cruiser RV", "0.0.1")]
public class Plugin : BaseUnityPlugin
{
	private const string GUID = "MelanieMelicious.CrusierRV";

	private const string NAME = "Melanie Melicious - Cruiser RV";

	private const string VERSION = "0.0.1";

	private readonly Harmony harmony = new Harmony("MelanieMelicious.CrusierRV");

	public static ManualLogSource mls;

	public static AssetBundle bundle;

	private static Plugin instance;

	private void Awake()
	{
		instance = this;
		RVConfig.SetupConfig(((BaseUnityPlugin)this).Config);
		mls = Logger.CreateLogSource("Melanie Cruiser RV");
		mls = ((BaseUnityPlugin)this).Logger;
		harmony.PatchAll(typeof(HarmonyPatches));
		string text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "melanierv");
		bundle = AssetBundle.LoadFromFile(text);
		((BaseUnityPlugin)this).Logger.LogInfo((object)"Cruiser RV loading wowow");
	}
}
public static class RVConfig
{
	public static ConfigEntry<bool> floor2;

	public static ConfigEntry<bool> bigTire;

	public static ConfigEntry<string> colorExt;

	public static ConfigEntry<string> colorInt;

	public static ConfigEntry<string> colorBorder;

	public static ConfigEntry<string> colorGlass;

	public static void SetupConfig(ConfigFile config)
	{
		floor2 = config.Bind<bool>("RV Setup", "Enable Second Floor", true, "Toggles the addition of a second RV floor! (crazy)");
		bigTire = config.Bind<bool>("RV Setup", "Enable Monster Truck Tires", false, "Toggles big giant tires and raised suspension.");
		colorExt = config.Bind<string>("RV Setup", "RV Exterior Color", "#FFFFFF", "Customize RV exterior colors. Client-sided.");
		colorInt = config.Bind<string>("RV Setup", "RV Interior Color", "#C8BDB8", "Customize RV interior colors. Client-sided.");
		colorBorder = config.Bind<string>("RV Setup", "RV Border Color", "#000000", "Customize RV border colors. Client-sided.");
		colorGlass = config.Bind<string>("RV Setup", "RV Glass Color", "#9EBFE7", "Customize RV glass colors. Client-sided.");
	}
}