39 lines
731 B
GDScript
39 lines
731 B
GDScript
"""
|
|
class GDDBConstants
|
|
"""
|
|
|
|
class_name GDDBConstants
|
|
|
|
tool
|
|
extends Node
|
|
|
|
# GDDB signature
|
|
const c_gddb_signature = "GDDB_ver"
|
|
|
|
# GDDB ver
|
|
const c_gddb_ver = "2.0"
|
|
|
|
# invalid id to initialize integer properties
|
|
const c_invalid_id = -1
|
|
|
|
# maximum database name length
|
|
const c_max_db_name_len = 16
|
|
|
|
# maximum table name length
|
|
const c_max_table_name_len = 16
|
|
|
|
# characters that should not be part of the database name
|
|
const c_invalid_characters = "`~!@#$%^&*()=+[]{}\\|;:'\",<.>/?"
|
|
|
|
# addon main path
|
|
const c_addon_main_path = "res://addons/godot_db_manager/"
|
|
|
|
# maximum tables list width
|
|
const c_max_tables_list_width = 400.0
|
|
|
|
# minimum cell width
|
|
const c_min_cell_width = 150.0
|
|
|
|
# maximum cell width
|
|
const c_max_cell_width = 400.0
|