extends Reference const IntPoint = preload("IntPoint.gd") # Declare member variables here. Examples: # var a = 2 # var b = "text" # Called when the node enters the scene tree for the first time. func _ready(): pass # Replace with function body. # Called every frame. 'delta' is the elapsed time since the previous frame. #func _process(delta): # pass func Create(ip : IntPoint): Websocket.send("POST","/v1/point",{"id": ip.id, "x": ip.x, "y": ip.y}) func Read(id : String): Websocket.send("GET","/v1/point/"+id,null) func Update(ip : IntPoint): Websocket.send("PATCH","/v1/point/"+str(ip.id),{"id": ip.id, "x": ip.x, "y": ip.y}) func Delete(id : String): Websocket.send("DELETE","/v1/point/"+id,null)