mirror of
https://github.com/soarqin/DSP_Mods_TO.git
synced 2025-12-12 01:23:31 +08:00
update XianTu to support latest patch
This commit is contained in:
@@ -14,10 +14,18 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="BepInEx.Core" Version="5.*" />
|
<PackageReference Include="BepInEx.Core" Version="5.*" />
|
||||||
<PackageReference Include="BepInEx.PluginInfoProps" Version="1.*" />
|
<PackageReference Include="BepInEx.PluginInfoProps" Version="1.*" />
|
||||||
<PackageReference Include="DysonSphereProgram.GameLibs" Version="*-r.*" />
|
<!--<PackageReference Include="DysonSphereProgram.GameLibs" Version="*-r.*" />-->
|
||||||
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.*" />
|
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.*" />
|
||||||
<PackageReference Include="UnityEngine.Modules" Version="2018.4.12" IncludeAssets="compile" />
|
<PackageReference Include="UnityEngine.Modules" Version="2018.4.12" IncludeAssets="compile" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="Assembly-CSharp">
|
||||||
|
<HintPath>..\AssemblyFromGame\Assembly-CSharp.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="UnityEngine.UI">
|
||||||
|
<HintPath>..\AssemblyFromGame\UnityEngine.UI.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup Condition="'$(TargetFramework.TrimEnd(`0123456789`))' == 'net'">
|
<ItemGroup Condition="'$(TargetFramework.TrimEnd(`0123456789`))' == 'net'">
|
||||||
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="all" />
|
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="all" />
|
||||||
|
|||||||
@@ -156,25 +156,27 @@ namespace XianTu.Scripts.DataController
|
|||||||
|
|
||||||
private void Build(BuildTool_BlueprintPaste bp)
|
private void Build(BuildTool_BlueprintPaste bp)
|
||||||
{
|
{
|
||||||
PlayerController.cmd.stage = 1;
|
if (bp.CheckBuildConditionsPrestage())
|
||||||
bp.GenerateBlueprintGratBoxes();
|
|
||||||
bp.DeterminePreviewsPrestage(true);
|
|
||||||
bp.ActiveColliders(_actionBuild.model);
|
|
||||||
bp.buildCondition = bp.CheckBuildConditions();
|
|
||||||
bp.DeterminePreviews();
|
|
||||||
bp.DeactiveColliders(_actionBuild.model);
|
|
||||||
var buildCondition = bp.buildCondition;
|
|
||||||
if (buildCondition)
|
|
||||||
{
|
{
|
||||||
bp.CreatePrebuilds();
|
PlayerController.cmd.stage = 1;
|
||||||
bp.ResetStates();
|
bp.GenerateBlueprintGratBoxes();
|
||||||
}
|
bp.DeterminePreviewsPrestage(true, false);
|
||||||
else
|
bp.ActiveColliders(_actionBuild.model);
|
||||||
{
|
var buildCondition = bp.CheckBuildConditions();
|
||||||
bp.isDragging = false;
|
bp.DeterminePreviews();
|
||||||
bp.startGroundPosSnapped = bp.castGroundPosSnapped;
|
bp.result = (buildCondition ? (bp.result & ~EBlueprintPasteResult.HasError) : (bp.result | EBlueprintPasteResult.HasError));
|
||||||
_BuildTool_BluePrint_OnTick();
|
bp.DeactiveColliders(_actionBuild.model);
|
||||||
|
bp.CalculateReformData();
|
||||||
|
if (buildCondition && bp.quickPaste && (bp.result & EBlueprintPasteResult.HasReform) == EBlueprintPasteResult.None)
|
||||||
|
{
|
||||||
|
bp.CreatePrebuilds();
|
||||||
|
bp.ResetStates();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
bp.isDragging = false;
|
||||||
|
bp.startGroundPosSnapped = bp.castGroundPosSnapped;
|
||||||
|
bp.ErrorGridClustering();
|
||||||
|
_BuildTool_BluePrint_OnTick();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnUserChangeData()
|
private void OnUserChangeData()
|
||||||
@@ -372,20 +374,18 @@ namespace XianTu.Scripts.DataController
|
|||||||
{
|
{
|
||||||
buildToolBlueprintPaste.ClearErrorMessage();
|
buildToolBlueprintPaste.ClearErrorMessage();
|
||||||
buildToolBlueprintPaste.UpdateRaycast();
|
buildToolBlueprintPaste.UpdateRaycast();
|
||||||
var flag2 = PlayerController.cmd.stage == 0;
|
buildToolBlueprintPaste.CheckBuildConditionsPrestage();
|
||||||
if (flag2)
|
switch (PlayerController.cmd.stage)
|
||||||
{
|
{
|
||||||
buildToolBlueprintPaste.OperatingPrestage();
|
case 0:
|
||||||
}
|
buildToolBlueprintPaste.OperatingPrestage();
|
||||||
else
|
break;
|
||||||
{
|
case 1:
|
||||||
var flag3 = PlayerController.cmd.stage == 1;
|
buildToolBlueprintPaste.Operating();
|
||||||
if (flag3)
|
break;
|
||||||
{
|
}
|
||||||
buildToolBlueprintPaste.Operating();
|
buildToolBlueprintPaste.UpdatePreviewModels(_actionBuild.model);
|
||||||
}
|
buildToolBlueprintPaste.ErrorGridClustering();
|
||||||
}
|
|
||||||
buildToolBlueprintPaste.UpdatePreviewModels(_actionBuild.model);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -15,9 +15,17 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="BepInEx.Core" Version="5.*" />
|
<PackageReference Include="BepInEx.Core" Version="5.*" />
|
||||||
<PackageReference Include="BepInEx.PluginInfoProps" Version="1.*" />
|
<PackageReference Include="BepInEx.PluginInfoProps" Version="1.*" />
|
||||||
<PackageReference Include="DysonSphereProgram.GameLibs" Version="*-r.*" />
|
<PackageReference Include="UnityEngine.Modules" Version="2022.3.53" IncludeAssets="compile" />
|
||||||
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.*" />
|
<!--<PackageReference Include="DysonSphereProgram.GameLibs" Version="*-r.*" />-->
|
||||||
<PackageReference Include="UnityEngine.Modules" Version="2018.4.12" IncludeAssets="compile" />
|
<!--<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.*" />-->
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="Assembly-CSharp">
|
||||||
|
<HintPath>..\AssemblyFromGame\Assembly-CSharp.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="UnityEngine.UI">
|
||||||
|
<HintPath>..\AssemblyFromGame\UnityEngine.UI.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup Condition="'$(TargetFramework.TrimEnd(`0123456789`))' == 'net'">
|
<ItemGroup Condition="'$(TargetFramework.TrimEnd(`0123456789`))' == 'net'">
|
||||||
|
|||||||
Reference in New Issue
Block a user