scene stuff
This commit is contained in:
14
scripts/System/OverworldSystem.gd
Normal file
14
scripts/System/OverworldSystem.gd
Normal file
@@ -0,0 +1,14 @@
|
||||
class_name OverworldSystem extends Node
|
||||
|
||||
enum Map {
|
||||
TEST_MAP
|
||||
};
|
||||
|
||||
var MAPS = [
|
||||
"res://scenes/Maps/TestMap.tscn"
|
||||
];
|
||||
|
||||
var currentMap:String = "";
|
||||
|
||||
func setMap(map:Map):
|
||||
pass
|
1
scripts/System/OverworldSystem.gd.uid
Normal file
1
scripts/System/OverworldSystem.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://btowswycywrgc
|
@@ -3,13 +3,14 @@ const MainMenu = preload("res://scenes/MainMenu.tscn");
|
||||
const OverworldScene = preload("res://scenes/Meta/Overworld.tscn");
|
||||
|
||||
enum DawnScene {
|
||||
INITIAL,
|
||||
MAIN_MENU,
|
||||
OVERWORLD,
|
||||
BATTLE,
|
||||
COOKING
|
||||
};
|
||||
|
||||
var scene:DawnScene = DawnScene.OVERWORLD;
|
||||
var scene:DawnScene = DawnScene.INITIAL;
|
||||
|
||||
func getMainMenuScene():
|
||||
return get_tree().current_scene.get_node("MainMenu");
|
||||
|
@@ -7,6 +7,7 @@ const PauseSystem = preload("res://scripts/System/PauseSystem.gd");
|
||||
const BattleSystem = preload("res://scripts/System/BattleSystem.gd");
|
||||
const CookingSystem = preload("res://scripts/System/CookingSystem.gd");
|
||||
const SceneSystem = preload("res://scripts/System/SceneSystem.gd");
|
||||
const OverworldSystem = preload("res://scripts/System/OverworldSystem.gd");
|
||||
|
||||
var ITEM:ItemSystem;
|
||||
var CUTSCENE:CutsceneSystem;
|
||||
@@ -16,6 +17,7 @@ var PAUSE:PauseSystem;
|
||||
var BATTLE:BattleSystem;
|
||||
var COOKING:CookingSystem;
|
||||
var SCENE:SceneSystem;
|
||||
var OVERWORLD:OverworldSystem;
|
||||
|
||||
func _ready():
|
||||
ITEM = $Item;
|
||||
@@ -26,6 +28,4 @@ func _ready():
|
||||
BATTLE = $Battle;
|
||||
COOKING = $Cooking;
|
||||
SCENE = $Scene;
|
||||
|
||||
func _process(delta):
|
||||
pass
|
||||
OVERWORLD = $Overworld;
|
Reference in New Issue
Block a user