Server-authoritative Godot 4.6 strategy game. Includes the headless WebSocket game server, the browser client, and Nix packaging (server and web-export derivations plus a NixOS module) for deployment.
15 lines
537 B
GDScript
15 lines
537 B
GDScript
class_name CivDescription
|
|
|
|
extends Resource
|
|
|
|
## Defines a playable civilisation. Instances live as .tres files under
|
|
## res://data/civilisations and are also the run-time identity of a nation:
|
|
## territory and units reference the resource directly when comparing owners.
|
|
|
|
@export var name : String
|
|
@export var primary_colour : Color
|
|
@export var accent_colour : Color
|
|
@export var flag : Texture2D
|
|
## Names used for the civilisation's non-capital cities, in founding order.
|
|
@export var city_names : PackedStringArray = PackedStringArray()
|