2020-10-15 17:23:55 +00:00
|
|
|
extends Node
|
|
|
|
|
|
|
|
var version = 0.0
|
|
|
|
|
|
|
|
var player_name = null
|
|
|
|
|
|
|
|
var ressource_queue = preload("res://ressources/scripts/resource_queue.gd").new()
|
|
|
|
|
|
|
|
enum RACE {
|
2021-05-27 21:56:16 +00:00
|
|
|
human
|
2020-10-15 17:23:55 +00:00
|
|
|
}
|
|
|
|
var race_label = [ "Humain" ]
|
|
|
|
func get_race_id( p_label ):
|
2021-05-27 21:56:16 +00:00
|
|
|
return race_label.find( p_label )
|
|
|
|
|
2020-10-15 17:23:55 +00:00
|
|
|
enum SEX {
|
2021-05-27 21:56:16 +00:00
|
|
|
female,
|
|
|
|
male
|
2020-10-15 17:23:55 +00:00
|
|
|
}
|
|
|
|
var sex_label = [ "Femme", "Homme" ]
|
|
|
|
func get_sex_id( p_label ):
|
2021-05-27 21:56:16 +00:00
|
|
|
return race_label.find( p_label )
|
2020-10-15 17:23:55 +00:00
|
|
|
|
|
|
|
enum CREATURES_EDITOR_MODE {
|
2021-05-27 21:56:16 +00:00
|
|
|
player,
|
|
|
|
npc
|
2020-10-15 17:23:55 +00:00
|
|
|
}
|
|
|
|
var creatures_editor_mode = CREATURES_EDITOR_MODE.player
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func goto_scene( path ):
|
2021-05-27 21:56:16 +00:00
|
|
|
self.get_tree().get_root().get_node("main").goto_scene( path )
|
2020-10-15 17:23:55 +00:00
|
|
|
|
|
|
|
|