forked from interstellar_development/freeftf
Milestone 5: Private Testing Release 1
Lot's of changes.
This commit is contained in:
parent
0bd1414af0
commit
40100e8fee
90 changed files with 5741 additions and 156 deletions
|
|
@ -1,15 +1,29 @@
|
|||
## Copyright (C) 2024 Patrick_Pluto
|
||||
## freeftf
|
||||
## Copyright (C) 2024 Patrick_Pluto
|
||||
##
|
||||
## This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3.
|
||||
## This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
##
|
||||
## This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
## This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
##
|
||||
## You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
## You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
extends Node
|
||||
|
||||
var settings = {"save_version" = 2, "fps_counter" = 1}
|
||||
var computers = 0
|
||||
var players = 0
|
||||
var is_creating = false
|
||||
var map_name = "mansion"
|
||||
|
||||
func _ready():
|
||||
if FileAccess.file_exists("user://settings.json"):
|
||||
var temp = Load.loadJSON("user://settings.json")
|
||||
if !(temp is Dictionary) or settings["save_version"] != temp["save_version"]:
|
||||
Save.saveJSON("user://settings.json", settings)
|
||||
else:
|
||||
settings = temp
|
||||
else:
|
||||
Save.saveJSON("user://settings.json", settings)
|
||||
|
||||
func _process(delta):
|
||||
pass
|
||||
|
|
@ -18,4 +32,10 @@ func reset():
|
|||
computers = 0
|
||||
players = 0
|
||||
|
||||
func save_setting(setting_name, value):
|
||||
settings[setting_name] = value
|
||||
Save.saveJSON("user://settings.json", settings)
|
||||
|
||||
func apply_settings():
|
||||
pass
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue