aboutsummaryrefslogtreecommitdiff
path: root/game/src/Autoload/Events.gd
blob: dbd3f9f7cb2c40cbf61399b7b9475c0a76eea095 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
extends Node

var Options = preload("Events/Options.gd").new()
var Localisation = preload("Events/Localisation.gd").new()

const _province_identifier_file : String = "res://common/map/provinces.json"
const _water_province_file : String = "res://common/map/water.json"
const _region_file : String = "res://common/map/regions.json"
const _province_shape_file : String = "res://common/map/provinces.png"

# REQUIREMENTS
# * FS-333, FS-334, FS-335, FS-341
func _ready():
   if MapSingleton.load_province_identifier_file(_province_identifier_file) != OK:
      push_error("Failed to load province identifiers")
   if MapSingleton.load_water_province_file(_water_province_file) != OK:
      push_error("Failed to load water provinces")
   if MapSingleton.load_region_file(_region_file) != OK:
      push_error("Failed to load regions")
   if MapSingleton.load_province_shape_file(_province_shape_file) != OK:
      push_error("Failed to load province shapes")