summaryrefslogtreecommitdiffstats
path: root/world/monuments/DockMonument.gd
blob: 2ac0c7194c85d1bf53a79858d51024ec3aa29efd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
extends Monument
class_name DockMonument

var packed_scene = preload("res://world/monuments/Dock.tscn")

func _init(xform:Transform).(xform,packed_scene,_chunks(),_origin()):
    pass

func _chunks():
    var chunk_size = ChunkLoader.world.chunk_size
    var c = {}
    var width = stepify(200.0,chunk_size)
    for x in range(-width,width+chunk_size,chunk_size):
        for y in range(-width,width+chunk_size,chunk_size):
            c[Vector2(x,y)] = true
    return c

func _origin():
    return Vector2(0.0,0.0)