Move files

This commit is contained in:
Mathilde Grapin 2024-05-25 18:58:08 +02:00
parent 8563e3c1aa
commit 88f8cf17aa
3 changed files with 1 additions and 1 deletions

25
script/periodmanager.gd Normal file
View file

@ -0,0 +1,25 @@
extends Node
var periods = []
var last_period = null
func add(date):
if last_period != null:
last_period.end = date
last_period = null
dump()
return
# If no new period has begun
var period = Period.new()
period.begin = date
periods.append(period)
last_period = period
dump()
func dump():
for period in periods:
print("%s - %s" % [period.begin, period.end])