Sfoglia il codice sorgente

Fix issues after the last GC update

master
NorbiPeti 4 anni fa
parent
commit
56af8ecd2c
Firmato da: NorbiPeti <szatmari.norbert.peter@gmail.com> ID Chiave GPG: DBA4C4549A927E56
3 ha cambiato i file con 9 aggiunte e 3 eliminazioni
  1. +5
    -2
      extracommands/CommandLineCompositionRootSaveCommandPatch.cs
  2. +3
    -0
      extracommands/ExtraCommands.csproj
  3. +1
    -1
      extracommands/MoveBlocksCommandEngine.cs

+ 5
- 2
extracommands/CommandLineCompositionRootSaveCommandPatch.cs Vedi File

@@ -6,6 +6,7 @@ using Unity.Entities;
using RobocraftX;
using RobocraftX.GUI.CommandLine;
using RobocraftX.Multiplayer;
using RobocraftX.StateSync;
using Svelto.ECS;
using Svelto.Context;

@@ -43,10 +44,12 @@ namespace ExtraCommands

static MethodBase TargetMethod(HarmonyInstance instance)
{
return _ComposeMethodInfo(CommandLineCompositionRoot.Compose<UnityContext<FullGameCompositionRoot>>);
return _ComposeMethodInfo(CommandLineCompositionRoot.Compose);
}

private static MethodInfo _ComposeMethodInfo(Action<UnityContext<FullGameCompositionRoot>, EnginesRoot, World, Action, MultiplayerInitParameters> a)
private delegate void ComposeAction(UnityContext<FullGameCompositionRoot> c, EnginesRoot r, World w, Action a,
MultiplayerInitParameters mip, ref StateSyncRegistrationHelper ssrh); //Ref params can't be used with Actions
private static MethodInfo _ComposeMethodInfo(ComposeAction a)
{
return a.Method;
}


+ 3
- 0
extracommands/ExtraCommands.csproj Vedi File

@@ -55,6 +55,9 @@
<Reference Include="RobocraftX.Physics">
<HintPath>..\ref\RobocraftX.Physics.dll</HintPath>
</Reference>
<Reference Include="RobocraftX.Services, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\ref\RobocraftX.Services.dll</HintPath>
</Reference>
<Reference Include="RobocraftX.StateSync">
<HintPath>..\ref\RobocraftX.StateSync.dll</HintPath>
</Reference>


+ 1
- 1
extracommands/MoveBlocksCommandEngine.cs Vedi File

@@ -151,7 +151,7 @@ namespace ExtraCommands.Building
//GridConnectionsEntityStruct[] blockConnections;
//MachineGraphConnectionEntityStruct[] connections;

Svelto.DataStructures.FasterList<uint> cubesToMove = new Svelto.DataStructures.FasterList<uint>();
Gamecraft.DataStructures.FasterList<uint> cubesToMove = new Gamecraft.DataStructures.FasterList<uint>();
ConnectedCubesUtility.TreeTraversal.GetConnectedCubes(entitiesDB, blockID, cubeStack, cubesToMove, (in GridConnectionsEntityStruct g) => { return false; });
for(int i = 0; i < cubesToMove.Count; i++) {
TranslateSingleBlock(cubesToMove[i], translationVector);


Loading…
Annulla
Salva