15 lines
417 B
GDScript
15 lines
417 B
GDScript
class_name ActionCommandService
|
|
extends RefCounted
|
|
|
|
signal command_resolved(result: ActionResult)
|
|
|
|
|
|
# Implementations must resolve the transient target handle and revalidate every
|
|
# precondition. An earlier ActionOffer never grants authority by itself.
|
|
func try_execute(_command: ActionCommand) -> ActionResult:
|
|
return null
|
|
|
|
|
|
func submit_command(command: ActionCommand) -> ActionResult:
|
|
return try_execute(command)
|