v0.1.5
This commit is contained in:
+9
-11
@@ -3,29 +3,27 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
|||||||
# Visual Studio Version 17
|
# Visual Studio Version 17
|
||||||
VisualStudioVersion = 17.3.32811.315
|
VisualStudioVersion = 17.3.32811.315
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MMOKitchen", "MMOKitchen\MMOKitchen.csproj", "{C98403A1-AA47-4987-94FE-C1CEF2E5CC85}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MMOKitchen", "MMOKitchen\MMOKitchen.csproj", "{008489AE-40DC-433A-8037-E846C6EAC883}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
BepInEx|Any CPU = BepInEx|Any CPU
|
BepInEx|Any CPU = BepInEx|Any CPU
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
MelonLoader|Any CPU = MelonLoader|Any CPU
|
|
||||||
Release|Any CPU = Release|Any CPU
|
Release|Any CPU = Release|Any CPU
|
||||||
|
Workshop|Any CPU = Workshop|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{C98403A1-AA47-4987-94FE-C1CEF2E5CC85}.BepInEx|Any CPU.ActiveCfg = BepInEx|Any CPU
|
{008489AE-40DC-433A-8037-E846C6EAC883}.BepInEx|Any CPU.ActiveCfg = BepInEx|Any CPU
|
||||||
{C98403A1-AA47-4987-94FE-C1CEF2E5CC85}.BepInEx|Any CPU.Build.0 = BepInEx|Any CPU
|
{008489AE-40DC-433A-8037-E846C6EAC883}.BepInEx|Any CPU.Build.0 = BepInEx|Any CPU
|
||||||
{C98403A1-AA47-4987-94FE-C1CEF2E5CC85}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{008489AE-40DC-433A-8037-E846C6EAC883}.Debug|Any CPU.ActiveCfg = Workshop|Any CPU
|
||||||
{C98403A1-AA47-4987-94FE-C1CEF2E5CC85}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{008489AE-40DC-433A-8037-E846C6EAC883}.Release|Any CPU.ActiveCfg = Workshop|Any CPU
|
||||||
{C98403A1-AA47-4987-94FE-C1CEF2E5CC85}.MelonLoader|Any CPU.ActiveCfg = MelonLoader|Any CPU
|
{008489AE-40DC-433A-8037-E846C6EAC883}.Workshop|Any CPU.ActiveCfg = Workshop|Any CPU
|
||||||
{C98403A1-AA47-4987-94FE-C1CEF2E5CC85}.MelonLoader|Any CPU.Build.0 = MelonLoader|Any CPU
|
{008489AE-40DC-433A-8037-E846C6EAC883}.Workshop|Any CPU.Build.0 = Workshop|Any CPU
|
||||||
{C98403A1-AA47-4987-94FE-C1CEF2E5CC85}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{C98403A1-AA47-4987-94FE-C1CEF2E5CC85}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
SolutionGuid = {8C16E17F-BB46-4E9D-8899-92D742896BFB}
|
SolutionGuid = {AA51C7D7-1CC8-4304-9540-D214CFFF8597}
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
EndGlobal
|
EndGlobal
|
||||||
|
|||||||
+57
-100
@@ -1,101 +1,69 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<TargetFramework>net472</TargetFramework>
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
<Configurations>BepInEx;Workshop</Configurations>
|
||||||
<ProjectGuid>{C98403A1-AA47-4987-94FE-C1CEF2E5CC85}</ProjectGuid>
|
<AssemblyName>$(MSBuildProjectName)-$(Configuration)</AssemblyName>
|
||||||
<OutputType>Library</OutputType>
|
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
|
||||||
<RootNamespace>MMOKitchen</RootNamespace>
|
|
||||||
<AssemblyName>MMOKitchen</AssemblyName>
|
|
||||||
<TargetFrameworkVersion>v4.7.1</TargetFrameworkVersion>
|
|
||||||
<FileAlignment>512</FileAlignment>
|
|
||||||
<Deterministic>true</Deterministic>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
|
||||||
<DebugType>full</DebugType>
|
|
||||||
<Optimize>false</Optimize>
|
|
||||||
<OutputPath>bin\Debug\</OutputPath>
|
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
|
||||||
<DebugType>pdbonly</DebugType>
|
|
||||||
<Optimize>true</Optimize>
|
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'MelonLoader|AnyCPU'">
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
|
||||||
<OutputPath>bin\MelonLoader\</OutputPath>
|
|
||||||
<DefineConstants>TRACE;DEBUG;MELONLOADER</DefineConstants>
|
|
||||||
<DebugType>full</DebugType>
|
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
|
||||||
<LangVersion>7.3</LangVersion>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'BepInEx|AnyCPU'">
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
|
||||||
<OutputPath>bin\BepInEx\</OutputPath>
|
|
||||||
<DefineConstants>TRACE;DEBUG;BEPINEX</DefineConstants>
|
|
||||||
<DebugType>full</DebugType>
|
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
|
||||||
<LangVersion>7.3</LangVersion>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="0Harmony">
|
<Reference Include="0Harmony">
|
||||||
<HintPath>..\..\..\..\Libraries\BepInEx\core\0Harmony.dll</HintPath>
|
<HintPath>..\..\..\..\Libraries\0Harmony.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
<Reference Include="Discord">
|
||||||
|
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\Discord.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Facepunch.Steamworks.Win64">
|
||||||
|
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\Facepunch.Steamworks.Win64.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Kitchen.Common">
|
||||||
|
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\Kitchen.Common.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Kitchen.FranchiseBuilderMode">
|
||||||
|
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\Kitchen.FranchiseBuilderMode.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Kitchen.FranchiseMode">
|
||||||
|
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\Kitchen.FranchiseMode.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Kitchen.GameData">
|
||||||
|
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\Kitchen.GameData.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Kitchen.Layouts">
|
||||||
|
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\Kitchen.Layouts.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Kitchen.Networking">
|
||||||
|
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\Kitchen.Networking.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Kitchen.Persistence">
|
||||||
|
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\Kitchen.Persistence.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Kitchen.PostgameMode">
|
||||||
|
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\Kitchen.PostgameMode.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Kitchen.ResearchMode">
|
||||||
|
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\Kitchen.ResearchMode.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Kitchen.RestaurantMode">
|
||||||
|
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\Kitchen.RestaurantMode.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Kitchen.TutorialMode">
|
||||||
|
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\Kitchen.TutorialMode.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="KitchenLib-Workshop" Condition="'$(Configuration)'=='Workshop'">
|
||||||
|
<HintPath>..\..\..\..\Libraries\KitchenLib\KitchenLib-Workshop.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="KitchenLib-BepInEx" Condition="'$(Configuration)'=='BepInEx'">
|
||||||
|
<HintPath>..\..\..\..\Libraries\KitchenLib\KitchenLib-BepInEx.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<Reference Include="BepInEx">
|
<Reference Include="BepInEx">
|
||||||
<HintPath>..\..\..\..\Libraries\BepInEx\core\BepInEx.dll</HintPath>
|
<HintPath>..\..\..\..\Libraries\BepInEx\core\BepInEx.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Discord">
|
|
||||||
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\Discord.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Facepunch.Steamworks.Win64">
|
|
||||||
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\Facepunch.Steamworks.Win64.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Kitchen.Common">
|
|
||||||
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\Kitchen.Common.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Kitchen.FranchiseMode">
|
|
||||||
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\Kitchen.FranchiseMode.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Kitchen.GameData">
|
|
||||||
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\Kitchen.GameData.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Kitchen.Layouts">
|
|
||||||
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\Kitchen.Layouts.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Kitchen.Networking">
|
|
||||||
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\Kitchen.Networking.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="KitchenLib-BepInEx">
|
|
||||||
<HintPath>..\..\..\..\Libraries\KitchenLib\KitchenLib-BepInEx.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="KitchenMode">
|
<Reference Include="KitchenMode">
|
||||||
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\KitchenMode.dll</HintPath>
|
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\KitchenMode.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="MelonLoader">
|
<Reference Include="KitchenMods">
|
||||||
<HintPath>..\..\..\..\Libraries\MelonLoader\MelonLoader.dll</HintPath>
|
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\KitchenMods.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Sirenix.Serialization">
|
|
||||||
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\Sirenix.Serialization.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System" />
|
|
||||||
<Reference Include="System.Core" />
|
|
||||||
<Reference Include="System.Xml.Linq" />
|
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
|
||||||
<Reference Include="Microsoft.CSharp" />
|
|
||||||
<Reference Include="System.Data" />
|
|
||||||
<Reference Include="System.Net.Http" />
|
|
||||||
<Reference Include="System.Xml" />
|
|
||||||
<Reference Include="Unity.Entities">
|
<Reference Include="Unity.Entities">
|
||||||
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\Unity.Entities.dll</HintPath>
|
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\Unity.Entities.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
@@ -106,16 +74,5 @@
|
|||||||
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
|
<HintPath>..\..\..\..\Libraries\PlateUp_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
|
||||||
<Compile Include="Mod.cs" />
|
|
||||||
<Compile Include="Patches\CreateBedrooms_Patch.cs" />
|
|
||||||
<Compile Include="Patches\CreateGarage_Patch.cs" />
|
|
||||||
<Compile Include="Patches\FeaturesFromTexture_Patch.cs" />
|
|
||||||
<Compile Include="Patches\LayoutBuilder_Patch.cs" />
|
|
||||||
<Compile Include="Patches\LobbyTransaction_Patch.cs" />
|
|
||||||
<Compile Include="Patches\NewFromTexture_Patch.cs" />
|
|
||||||
<Compile Include="Patches\SteamPlatform_Patch.cs" />
|
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
|
||||||
</Project>
|
</Project>
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
using KitchenLib;
|
||||||
|
using System.Reflection;
|
||||||
|
using KitchenLib.Utils;
|
||||||
|
using UnityEngine;
|
||||||
|
using System;
|
||||||
|
#if BEPINEX
|
||||||
|
using BepInEx;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
namespace MMOKitchen
|
||||||
|
{
|
||||||
|
#if BEPINEX
|
||||||
|
[BepInProcess("PlateUp.exe")]
|
||||||
|
[BepInPlugin(MOD_ID, MOD_NAME, MOD_VERSION)]
|
||||||
|
#endif
|
||||||
|
public class Main : BaseMod
|
||||||
|
{
|
||||||
|
public const string MOD_ID = "mmokitchen";
|
||||||
|
public const string MOD_NAME = "MMO Kitchen";
|
||||||
|
public const string MOD_AUTHOR = "StarFluxGames";
|
||||||
|
public const string MOD_VERSION = "0.1.5";
|
||||||
|
public const string MOD_COMPATIBLE_VERSIONS = "1.1.2";
|
||||||
|
public Main() : base(MOD_ID, MOD_NAME, MOD_AUTHOR, MOD_VERSION, MOD_COMPATIBLE_VERSIONS, Assembly.GetExecutingAssembly()) { }
|
||||||
|
|
||||||
|
public static Texture2D LoadImage(string base64)
|
||||||
|
{
|
||||||
|
byte[] bytes = Convert.FromBase64String(base64);
|
||||||
|
|
||||||
|
Texture2D image = ResourceUtils.LoadTextureRaw(bytes);
|
||||||
|
|
||||||
|
return image;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
using KitchenLib;
|
|
||||||
using System.Reflection;
|
|
||||||
#if BEPINEX
|
|
||||||
using BepInEx;
|
|
||||||
#endif
|
|
||||||
#if MELONLOADER
|
|
||||||
using MelonLoader;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if MELONLOADER
|
|
||||||
[assembly: MelonInfo(typeof(MMOKitchen.Mod), "MMO Kitchen", "0.1.4", "StarFluxGames")]
|
|
||||||
[assembly: MelonGame("It's Happening", "PlateUp")]
|
|
||||||
#endif
|
|
||||||
namespace MMOKitchen
|
|
||||||
{
|
|
||||||
#if BEPINEX
|
|
||||||
[BepInProcess("PlateUp.exe")]
|
|
||||||
[BepInPlugin("starfluxgames.mmokitchen", "MMO Kitchen", "0.1.4")]
|
|
||||||
[BepInDependency(KitchenLib.Mod.GUID)]
|
|
||||||
#endif
|
|
||||||
public class Mod : BaseMod
|
|
||||||
{
|
|
||||||
#if MELONLOADER
|
|
||||||
public Mod() : base("mmokitchen", "1.1.1") { }
|
|
||||||
#endif
|
|
||||||
#if BEPINEX
|
|
||||||
public Mod() : base("1.1.1", Assembly.GetExecutingAssembly()) { }
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -9,6 +9,7 @@ using Unity.Collections;
|
|||||||
|
|
||||||
namespace MMOKitchen
|
namespace MMOKitchen
|
||||||
{
|
{
|
||||||
|
|
||||||
[HarmonyPatch(typeof(CreateBedrooms), "OnUpdate")]
|
[HarmonyPatch(typeof(CreateBedrooms), "OnUpdate")]
|
||||||
public class CreateBedrooms_Patch
|
public class CreateBedrooms_Patch
|
||||||
{
|
{
|
||||||
@@ -62,4 +63,5 @@ namespace MMOKitchen
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -9,7 +9,8 @@ using KitchenData;
|
|||||||
|
|
||||||
namespace MMOKitchen
|
namespace MMOKitchen
|
||||||
{
|
{
|
||||||
[HarmonyPatch(typeof(CreateGarage), "OnUpdate")]
|
|
||||||
|
[HarmonyPatch(typeof(CreateGarage), "OnUpdate")]
|
||||||
public class CreateGarage_Patch
|
public class CreateGarage_Patch
|
||||||
{
|
{
|
||||||
public static bool Prefix(CreateGarage __instance)
|
public static bool Prefix(CreateGarage __instance)
|
||||||
@@ -56,4 +57,5 @@ namespace MMOKitchen
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -7,12 +7,14 @@ using System.IO;
|
|||||||
namespace MMOKitchen
|
namespace MMOKitchen
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
[HarmonyPatch(typeof(FeaturesFromTexture), "ActOn")]
|
[HarmonyPatch(typeof(FeaturesFromTexture), "ActOn")]
|
||||||
public class FeaturesFromTexture_Patch
|
public class FeaturesFromTexture_Patch
|
||||||
{
|
{
|
||||||
public static void Prefix(NewFromTexture __instance)
|
public static void Prefix(NewFromTexture __instance)
|
||||||
{
|
{
|
||||||
__instance.SourceTexture = ResourceUtils.LoadTextureFromFile(Path.Combine(Application.streamingAssetsPath, "FeaturesFromTexture.png"));
|
__instance.SourceTexture = Main.LoadImage("iVBORw0KGgoAAAANSUhEUgAAAB4AAAAQCAMAAAA25D/gAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAMUExURQD/ACQA/+nKIQAAAOiZT8gAAAAEdFJOU////wBAKqn0AAAACXBIWXMAAA6/AAAOvwE4BVMkAAAASUlEQVQoU52MyQ0AIAgEBfrv2StcYTXReSAyLE2u/Og2p7uAjTComihrZ32ITse9U5KuvKSh3kTFrMXSNTkxPV6wAUPgOOaqRToQCQU9rUN4jgAAAABJRU5ErkJggg==");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -4,6 +4,7 @@ using UnityEngine;
|
|||||||
|
|
||||||
namespace MMOKitchen
|
namespace MMOKitchen
|
||||||
{
|
{
|
||||||
|
|
||||||
[HarmonyPatch(typeof(LayoutBuilder), "BuildWallBetween")]
|
[HarmonyPatch(typeof(LayoutBuilder), "BuildWallBetween")]
|
||||||
public class LayoutBuilder_Patch
|
public class LayoutBuilder_Patch
|
||||||
{
|
{
|
||||||
@@ -17,4 +18,5 @@ namespace MMOKitchen
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -6,6 +6,7 @@ using System.Reflection.Emit;
|
|||||||
|
|
||||||
namespace MMOKitchen
|
namespace MMOKitchen
|
||||||
{
|
{
|
||||||
|
|
||||||
[HarmonyPatch(typeof(DiscordPlatform))]
|
[HarmonyPatch(typeof(DiscordPlatform))]
|
||||||
[HarmonyPatch("CreateNewLobby")]
|
[HarmonyPatch("CreateNewLobby")]
|
||||||
public static class DiscordPlatform_Patch
|
public static class DiscordPlatform_Patch
|
||||||
@@ -20,4 +21,5 @@ namespace MMOKitchen
|
|||||||
return codes;
|
return codes;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -6,8 +6,12 @@ using System.Reflection;
|
|||||||
using Unity.Entities;
|
using Unity.Entities;
|
||||||
using KitchenLib.Utils;
|
using KitchenLib.Utils;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System;
|
||||||
|
|
||||||
namespace MMOKitchen
|
namespace MMOKitchen
|
||||||
{
|
{
|
||||||
|
|
||||||
[HarmonyPatch(typeof(NewFromTexture), "ActOn")]
|
[HarmonyPatch(typeof(NewFromTexture), "ActOn")]
|
||||||
public class NewFromTexture_Patch
|
public class NewFromTexture_Patch
|
||||||
{
|
{
|
||||||
@@ -17,7 +21,8 @@ namespace MMOKitchen
|
|||||||
FieldInfo finfo = typeof(PlayerManager).GetField("MaxPlayers", BindingFlags.Instance | BindingFlags.Public);
|
FieldInfo finfo = typeof(PlayerManager).GetField("MaxPlayers", BindingFlags.Instance | BindingFlags.Public);
|
||||||
finfo.SetValue(playerManager, 12);
|
finfo.SetValue(playerManager, 12);
|
||||||
|
|
||||||
__instance.SourceTexture = ResourceUtils.LoadTextureFromFile(Path.Combine(Application.streamingAssetsPath, "NewFromTexture.png"));
|
__instance.SourceTexture = Main.LoadImage("iVBORw0KGgoAAAANSUhEUgAAAB4AAAAQCAMAAAA25D/gAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAhUExURe0cJIgAFTHf77eA6hbzSv9/J//yAIC66hY68//JDgAAANY41qIAAAALdFJOU/////////////8ASk8B8gAAAAlwSFlzAAAOvwAADr8BOAVTJAAAAF1JREFUKFOl0UkOgDAMQ9Gamdz/wMRuQCVIgOAtIuG/qih2qxA66d1A0KhE3/PoUgY08qSMSiNPm6M5jTxFnzkfnvLkIs87aOR5lReJeMqru2SNPD+zWbyhFb/TbAPTUQgZqLo2tAAAAABJRU5ErkJggg==");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -33,4 +33,5 @@ namespace MMOKitchen
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
using System.Reflection;
|
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
// General Information about an assembly is controlled through the following
|
|
||||||
// set of attributes. Change these attribute values to modify the information
|
|
||||||
// associated with an assembly.
|
|
||||||
[assembly: AssemblyTitle("MMOKitchen")]
|
|
||||||
[assembly: AssemblyDescription("")]
|
|
||||||
[assembly: AssemblyConfiguration("")]
|
|
||||||
[assembly: AssemblyCompany("")]
|
|
||||||
[assembly: AssemblyProduct("MMOKitchen")]
|
|
||||||
[assembly: AssemblyCopyright("Copyright © 2022")]
|
|
||||||
[assembly: AssemblyTrademark("")]
|
|
||||||
[assembly: AssemblyCulture("")]
|
|
||||||
|
|
||||||
// Setting ComVisible to false makes the types in this assembly not visible
|
|
||||||
// to COM components. If you need to access a type in this assembly from
|
|
||||||
// COM, set the ComVisible attribute to true on that type.
|
|
||||||
[assembly: ComVisible(false)]
|
|
||||||
|
|
||||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
|
||||||
[assembly: Guid("c98403a1-aa47-4987-94fe-c1cef2e5cc85")]
|
|
||||||
|
|
||||||
// Version information for an assembly consists of the following four values:
|
|
||||||
//
|
|
||||||
// Major Version
|
|
||||||
// Minor Version
|
|
||||||
// Build Number
|
|
||||||
// Revision
|
|
||||||
//
|
|
||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
|
||||||
// by using the '*' as shown below:
|
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
|
||||||
Reference in New Issue
Block a user