Browse Source

Turned the rest of the errors into TODOs

tags/v2.0.0
NorbiPeti 3 years ago
parent
commit
2d41026a05
Signed by: NorbiPeti <szatmari.norbert.peter@gmail.com> GPG Key ID: DBA4C4549A927E56
5 changed files with 11 additions and 10 deletions
  1. +3
    -3
      GamecraftModdingAPI/Input/FakeInput.cs
  2. +2
    -2
      GamecraftModdingAPI/Inventory/HotbarEngine.cs
  3. +1
    -1
      GamecraftModdingAPI/Players/PlayerEngine.cs
  4. +2
    -2
      GamecraftModdingAPI/Tests/GamecraftModdingAPIPluginTest.cs
  5. +3
    -2
      GamecraftModdingAPI/Utility/AsyncUtilsEngine.cs

+ 3
- 3
GamecraftModdingAPI/Input/FakeInput.cs View File

@@ -109,8 +109,8 @@ namespace GamecraftModdingAPI.Input
}
ref LocalInputEntityStruct currentInput = ref inputEngine.GetInputRef(playerID);
//Utility.Logging.CommandLog($"Current sim frame {currentInput.frame}");
// set inputs
if (toggleMode) currentInput.actionMask |= RobocraftX.Common.Input.ActionInput.ToggleTimeRunningMode;
// set inputs - TODO
/*if (toggleMode) currentInput.actionMask |= RobocraftX.Common.Input.ActionInput.ToggleTimeRunningMode;
if (forward) currentInput.actionMask |= RobocraftX.Common.Input.ActionInput.Forward;
if (backward) currentInput.actionMask |= RobocraftX.Common.Input.ActionInput.Backward;
if (up) currentInput.actionMask |= RobocraftX.Common.Input.ActionInput.Up;
@@ -134,7 +134,7 @@ namespace GamecraftModdingAPI.Input
if (rotateBlockCounterclockwise) currentInput.actionMask |= RobocraftX.Common.Input.ActionInput.RotateBlockAnticlockwise;
if (cutSelection) currentInput.actionMask |= RobocraftX.Common.Input.ActionInput.CutSelection;
if (copySelection) currentInput.actionMask |= RobocraftX.Common.Input.ActionInput.CopySelection;
if (deleteSelection) currentInput.actionMask |= RobocraftX.Common.Input.ActionInput.DeleteSelection;
if (deleteSelection) currentInput.actionMask |= RobocraftX.Common.Input.ActionInput.DeleteSelection;*/
}

public static void Init()


+ 2
- 2
GamecraftModdingAPI/Inventory/HotbarEngine.cs View File

@@ -41,8 +41,8 @@ namespace GamecraftModdingAPI.Inventory
for (int i = 0; i < inputs.count; i++)
{
if (inputs.buffer[i].ID.entityID == playerID) {
inputs.buffer[i].cubeSelectedByPick = cubeSelectedByPick;
inputs.buffer[i].selectedCube = block;
/*inputs.buffer[i].cubeSelectedByPick = cubeSelectedByPick; - TODO
inputs.buffer[i].selectedCube = block;*/
return true;
}
}


+ 1
- 1
GamecraftModdingAPI/Players/PlayerEngine.cs View File

@@ -232,7 +232,7 @@ namespace GamecraftModdingAPI.Players
EGID egid = new EGID(playerId, PlayerGroupFromEnum(type));
if (entitiesDB.Exists<PlayerNetworkStatsEntityStruct>(egid))
{
return entitiesDB.QueryEntity<PlayerNetworkStatsEntityStruct>(egid).lastPingTimeSinceLevelLoad;
//return entitiesDB.QueryEntity<PlayerNetworkStatsEntityStruct>(egid).lastPingTimeSinceLevelLoad; - TODO
}
return null;
}


+ 2
- 2
GamecraftModdingAPI/Tests/GamecraftModdingAPIPluginTest.cs View File

@@ -242,7 +242,7 @@ namespace GamecraftModdingAPI.Tests
}
}).Build();

CommandBuilder.Builder()
/*CommandBuilder.Builder()
.Name("PlaceConsole")
.Description("Place a bunch of console block with a given text - entering simulation with them crashes the game as the cmd doesn't exist")
.Action((float x, float y, float z) =>
@@ -262,7 +262,7 @@ namespace GamecraftModdingAPI.Tests
sw.Stop();
Logging.CommandLog($"Blocks placed in {sw.ElapsedMilliseconds} ms");
})
.Build();
.Build();*/
CommandBuilder.Builder()
.Name("WireTest")


+ 3
- 2
GamecraftModdingAPI/Utility/AsyncUtilsEngine.cs View File

@@ -16,10 +16,11 @@ namespace GamecraftModdingAPI.Utility
private IEnumerator WaitForSubmissionInternal(IEntityFunctions efu, IEntityFactory efa,
EntitiesDB entitiesDB, TaskCompletionSource<object> task)
{
var waitEnumerator = new WaitForSubmissionEnumerator(efu, efa, entitiesDB);
/*var waitEnumerator = new WaitForSubmissionEnumerator(efu, efa, entitiesDB);
while (waitEnumerator.MoveNext())
yield return null;
task.SetResult(null);
task.SetResult(null);*/
yield break; //TODO
}

private IEnumerator WaitForNextFrameInternal(TaskCompletionSource<object> task)


Loading…
Cancel
Save