mirror of
https://github.com/Relintai/pmlpp_sample.git
synced 2025-01-19 14:57:20 +01:00
21 lines
337 B
GDScript
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]
|