pmlpp_sample/game/addons/easy_charts/utilities/classes/plotting/point.gd

21 lines
337 B
GDScript

tool
extends Reference
class_name Point
enum Shape {
CIRCLE,
TRIANGLE,
SQUARE,
CROSS
}
var position: Vector2
var value: Pair
func _init(position: Vector2, value: Pair = Pair.new()) -> void:
self.value = value
self.position = position
func _to_string() -> String:
return "Value: %s\nPosition: %s" % [self.value, self.position]