Diagnostic code · ARA0705
Invalid command shape
A [Command] class has an Execute signature the generator cannot bind to a typed command. Compilation fails; the last good module keeps running and the new command is not registered.
Common causes
Executeis missing, is not static, does not returnCommandResult, or does not begin withref CommandContext.- A component parameter has no target
Entityparameter. - A non-component argument after the context is passed by
reforin.
Fixes
Use
public static CommandResult Execute(ref CommandContext ctx, Entity target, ...)and place the target before its component parameters.Pass component arguments by
reforinas needed and ordinary serialized arguments by value.Code:
ARA0705Constant:
cs::BAD_COMMANDReported by: Ara.Generators