Turned the rest of the errors into TODOs
This commit is contained in:
parent
a6b69d94c9
commit
2d41026a05
5 changed files with 11 additions and 10 deletions
|
@ -109,8 +109,8 @@ namespace GamecraftModdingAPI.Input
|
||||||
}
|
}
|
||||||
ref LocalInputEntityStruct currentInput = ref inputEngine.GetInputRef(playerID);
|
ref LocalInputEntityStruct currentInput = ref inputEngine.GetInputRef(playerID);
|
||||||
//Utility.Logging.CommandLog($"Current sim frame {currentInput.frame}");
|
//Utility.Logging.CommandLog($"Current sim frame {currentInput.frame}");
|
||||||
// set inputs
|
// set inputs - TODO
|
||||||
if (toggleMode) currentInput.actionMask |= RobocraftX.Common.Input.ActionInput.ToggleTimeRunningMode;
|
/*if (toggleMode) currentInput.actionMask |= RobocraftX.Common.Input.ActionInput.ToggleTimeRunningMode;
|
||||||
if (forward) currentInput.actionMask |= RobocraftX.Common.Input.ActionInput.Forward;
|
if (forward) currentInput.actionMask |= RobocraftX.Common.Input.ActionInput.Forward;
|
||||||
if (backward) currentInput.actionMask |= RobocraftX.Common.Input.ActionInput.Backward;
|
if (backward) currentInput.actionMask |= RobocraftX.Common.Input.ActionInput.Backward;
|
||||||
if (up) currentInput.actionMask |= RobocraftX.Common.Input.ActionInput.Up;
|
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 (rotateBlockCounterclockwise) currentInput.actionMask |= RobocraftX.Common.Input.ActionInput.RotateBlockAnticlockwise;
|
||||||
if (cutSelection) currentInput.actionMask |= RobocraftX.Common.Input.ActionInput.CutSelection;
|
if (cutSelection) currentInput.actionMask |= RobocraftX.Common.Input.ActionInput.CutSelection;
|
||||||
if (copySelection) currentInput.actionMask |= RobocraftX.Common.Input.ActionInput.CopySelection;
|
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()
|
public static void Init()
|
||||||
|
|
|
@ -41,8 +41,8 @@ namespace GamecraftModdingAPI.Inventory
|
||||||
for (int i = 0; i < inputs.count; i++)
|
for (int i = 0; i < inputs.count; i++)
|
||||||
{
|
{
|
||||||
if (inputs.buffer[i].ID.entityID == playerID) {
|
if (inputs.buffer[i].ID.entityID == playerID) {
|
||||||
inputs.buffer[i].cubeSelectedByPick = cubeSelectedByPick;
|
/*inputs.buffer[i].cubeSelectedByPick = cubeSelectedByPick; - TODO
|
||||||
inputs.buffer[i].selectedCube = block;
|
inputs.buffer[i].selectedCube = block;*/
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -232,7 +232,7 @@ namespace GamecraftModdingAPI.Players
|
||||||
EGID egid = new EGID(playerId, PlayerGroupFromEnum(type));
|
EGID egid = new EGID(playerId, PlayerGroupFromEnum(type));
|
||||||
if (entitiesDB.Exists<PlayerNetworkStatsEntityStruct>(egid))
|
if (entitiesDB.Exists<PlayerNetworkStatsEntityStruct>(egid))
|
||||||
{
|
{
|
||||||
return entitiesDB.QueryEntity<PlayerNetworkStatsEntityStruct>(egid).lastPingTimeSinceLevelLoad;
|
//return entitiesDB.QueryEntity<PlayerNetworkStatsEntityStruct>(egid).lastPingTimeSinceLevelLoad; - TODO
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -242,7 +242,7 @@ namespace GamecraftModdingAPI.Tests
|
||||||
}
|
}
|
||||||
}).Build();
|
}).Build();
|
||||||
|
|
||||||
CommandBuilder.Builder()
|
/*CommandBuilder.Builder()
|
||||||
.Name("PlaceConsole")
|
.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")
|
.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) =>
|
.Action((float x, float y, float z) =>
|
||||||
|
@ -262,7 +262,7 @@ namespace GamecraftModdingAPI.Tests
|
||||||
sw.Stop();
|
sw.Stop();
|
||||||
Logging.CommandLog($"Blocks placed in {sw.ElapsedMilliseconds} ms");
|
Logging.CommandLog($"Blocks placed in {sw.ElapsedMilliseconds} ms");
|
||||||
})
|
})
|
||||||
.Build();
|
.Build();*/
|
||||||
|
|
||||||
CommandBuilder.Builder()
|
CommandBuilder.Builder()
|
||||||
.Name("WireTest")
|
.Name("WireTest")
|
||||||
|
|
|
@ -16,10 +16,11 @@ namespace GamecraftModdingAPI.Utility
|
||||||
private IEnumerator WaitForSubmissionInternal(IEntityFunctions efu, IEntityFactory efa,
|
private IEnumerator WaitForSubmissionInternal(IEntityFunctions efu, IEntityFactory efa,
|
||||||
EntitiesDB entitiesDB, TaskCompletionSource<object> task)
|
EntitiesDB entitiesDB, TaskCompletionSource<object> task)
|
||||||
{
|
{
|
||||||
var waitEnumerator = new WaitForSubmissionEnumerator(efu, efa, entitiesDB);
|
/*var waitEnumerator = new WaitForSubmissionEnumerator(efu, efa, entitiesDB);
|
||||||
while (waitEnumerator.MoveNext())
|
while (waitEnumerator.MoveNext())
|
||||||
yield return null;
|
yield return null;
|
||||||
task.SetResult(null);
|
task.SetResult(null);*/
|
||||||
|
yield break; //TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
private IEnumerator WaitForNextFrameInternal(TaskCompletionSource<object> task)
|
private IEnumerator WaitForNextFrameInternal(TaskCompletionSource<object> task)
|
||||||
|
|
Loading…
Reference in a new issue