Files
rthythm_archor_game/scenes/components/ai_intent.gd
T
2026-07-06 22:59:47 -07:00

19 lines
462 B
GDScript

class_name AIIntent
extends RefCounted
var action_id: StringName
var timestamp_ms := 0.0
var judgement: Dictionary = {
"label": "perfect",
"diff": 0.0,
"abs_diff": 0.0,
}
static func create(next_action_id: StringName, next_timestamp_ms: float) -> RefCounted:
var script: Script = load("res://scenes/components/ai_intent.gd")
var intent: RefCounted = script.new()
intent.action_id = next_action_id
intent.timestamp_ms = next_timestamp_ms
return intent