12 lines
303 B
GDScript
12 lines
303 B
GDScript
class_name PlayerAction
|
|
extends RefCounted
|
|
|
|
var kind: StringName
|
|
var direction: Vector2i
|
|
var target_id: StringName
|
|
|
|
func _init(new_kind: StringName, new_direction: Vector2i = Vector2i.ZERO, new_target_id: StringName = &"") -> void:
|
|
kind = new_kind
|
|
direction = new_direction
|
|
target_id = new_target_id
|