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()
|
|
|
|
|
2021-09-03 21:27:28 +00:00
|
|
|
var player = {}
|
|
|
|
|
2020-10-15 17:23:55 +00:00
|
|
|
enum RACE {
|
2021-06-28 22:33:56 +00:00
|
|
|
arche,
|
2021-05-27 21:56:16 +00:00
|
|
|
human
|
2020-10-15 17:23:55 +00:00
|
|
|
}
|
2021-06-28 22:33:56 +00:00
|
|
|
var race_label = [ "Arche", "Humain" ]
|
2020-10-15 17:23:55 +00:00
|
|
|
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,
|
2021-06-28 22:33:56 +00:00
|
|
|
male,
|
|
|
|
hermaphroditism,
|
|
|
|
asexual
|
2020-10-15 17:23:55 +00:00
|
|
|
}
|
2021-06-28 22:33:56 +00:00
|
|
|
var sex_label = [ "Female", "Male", "Hermaphroditism", "Asexual" ]
|
2020-10-15 17:23:55 +00:00
|
|
|
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
|
|
|
|
|
|
|
|