dynamic loading of gate prefabs

This commit is contained in:
klemek
2020-12-19 20:02:15 +01:00
parent 205a663e07
commit 972a689d9c
61 changed files with 5685 additions and 7662 deletions
@@ -52,13 +52,13 @@ namespace UntitledLogicGame.Workspace.Gates
foreach (var inputName in definition.Inputs)
{
if (!gate.InputAnchors.Any(a => a.Name.Equals(inputName)))
throw new InvalidOperationException($"Gate has no {inputName} input anchor");
throw new InvalidOperationException($"Gate {gateType} has no {inputName} input anchor");
}
foreach (var outputName in definition.Outputs)
{
if (!gate.OutputAnchors.Any(a => a.Name.Equals(outputName)))
throw new InvalidOperationException($"Gate has no {outputName} output anchor");
throw new InvalidOperationException($"Gate {gateType} has no {outputName} output anchor");
}
if (definition.HasState)