blob: 47c3b88bd76f568dab7c23a9b82b6e7c3f7b8174 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
extends Node
var GameDebug = preload("Events/GameDebug.gd").new()
var Options = preload("Events/Options.gd").new()
var Localisation = preload("Events/Localisation.gd").new()
var ShaderManager = preload("Events/ShaderManager.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 _terrain_file : String = "res://common/map/terrain.json"
const _province_image_file : String = "res://common/map/provinces.png"
const _terrain_image_file : String = "res://common/map/terrain.png"
# REQUIREMENTS
# * FS-333, FS-334, FS-335, FS-341
func _ready():
if GameSingleton.load_province_identifier_file(_province_identifier_file) != OK:
push_error("Failed to load province identifiers")
if GameSingleton.load_water_province_file(_water_province_file) != OK:
push_error("Failed to load water provinces")
if GameSingleton.load_region_file(_region_file) != OK:
push_error("Failed to load regions")
if GameSingleton.load_terrain_file(_terrain_file) != OK:
push_error("Failed to load terrain variants")
if GameSingleton.load_map_images(_province_image_file, _terrain_image_file) != OK:
push_error("Failed to load map images")
|