Files
gamedev-the-steward/simulation/definitions/SimulationIds.gd
T

107 lines
3.7 KiB
GDScript

class_name SimulationIds
extends RefCounted
const PLAYER_ACTOR_ID := -1
const PLAYER_INVENTORY_ID := &"player_inventory"
const ACTION_IDLE := &"idle"
const ACTION_DEAD := &"dead"
const ACTION_SLEEP := &"sleep"
const ACTION_GATHER_FOOD := &"gather_food"
const ACTION_GATHER_WOOD := &"gather_wood"
const ACTION_FEED_ANIMAL := &"feed_animal"
const ACTION_PATROL := &"patrol"
const ACTION_STUDY := &"study"
const ACTION_EAT := &"eat"
const ACTION_REST := &"rest"
const ACTION_WANDER := &"wander"
const ACTION_DEPOSIT_FOOD := &"deposit_food"
const ACTION_WITHDRAW_FOOD := &"withdraw_food"
const ACTION_DEPOSIT_WOOD := &"deposit_wood"
const PROFESSION_FARMER := &"farmer"
const PROFESSION_WOODCUTTER := &"woodcutter"
const PROFESSION_GUARD := &"guard"
const PROFESSION_SCHOLAR := &"scholar"
const PROFESSION_WANDERER := &"wanderer"
const TARGET_RESOURCE := &"resource"
const TARGET_ACTIVITY := &"activity"
const TARGET_ANIMAL := &"animal"
const TARGET_FREE := &"free"
const RESOURCE_FOOD := &"food"
const RESOURCE_WOOD := &"wood"
const ANIMAL_DUNJA := &"goat_dunja"
const ANIMAL_ZORA := &"goat_zora"
const SPECIES_GOAT := &"goat"
const ANIMAL_SITE_DUNJA_PASTURE := &"dunja_pasture"
const ANIMAL_SITE_DUNJA_SHELTER := &"dunja_shelter"
const ANIMAL_SITE_ZORA_SHELTER := &"zora_shelter"
const STORAGE_VILLAGE_PANTRY := &"village_pantry"
const STORAGE_VILLAGE_WOODPILE := &"village_woodpile"
const EVENT_RESOURCE_EXTRACTED := &"resource_extracted"
const EVENT_STORAGE_DEPOSITED := &"storage_deposited"
const EVENT_STORAGE_WITHDRAWN := &"storage_withdrawn"
const EVENT_ITEM_CONSUMED := &"item_consumed"
const EVENT_NPC_SLEPT := &"npc_slept"
const EVENT_NPC_DIED := &"npc_died"
const EVENT_TASK_STARTED := &"task_started"
const EVENT_TASK_BLOCKED := &"task_blocked"
const EVENT_RESOURCE_DEPLETED := &"resource_depleted"
const EVENT_ANIMAL_FED := &"animal_fed"
const EVENT_VILLAGER_WEAK := &"villager_weak"
const EVENT_HOME_DAMAGED := &"home_damaged"
const OPPORTUNITY_RESTOCK_EMPTY_PANTRY := &"restock_empty_pantry"
const OPPORTUNITY_SUPPLY_MISSING_WOOD := &"supply_missing_wood"
const OPPORTUNITY_FEED_WEAK_VILLAGER := &"feed_weak_villager"
const OPPORTUNITY_REPAIR_HOME_ROOF := &"repair_home_roof"
const OPPORTUNITY_STATUS_OPEN := &"open"
const OPPORTUNITY_STATUS_RESOLVED := &"resolved"
const OPPORTUNITY_STATUS_INVALIDATED := &"invalidated"
const OPPORTUNITY_INVALIDATED_INTERESTED_DIED := &"interested_died"
const OPPORTUNITY_INVALIDATED_EVIDENCE_STALE := &"evidence_stale"
const KNOWLEDGE_ACQUISITION_PERFORMED := &"performed"
const KNOWLEDGE_ACQUISITION_WITNESSED := &"witnessed"
const KNOWLEDGE_ACQUISITION_COMMUNICATED := &"communicated"
const KNOWLEDGE_ACQUISITION_LEGACY := &"legacy"
const ITEM_SWORD := &"item_sword"
const ITEM_CLAW := &"item_claw"
const ITEM_CATEGORY_WEAPON := &"weapon"
const EQUIP_SLOT_HAND := &"hand"
const FACTION_VILLAGE := &"faction_village"
const FACTION_TRIBE := &"faction_tribe"
const STANCE_NEUTRAL := &"neutral"
const STANCE_HOSTILE := &"hostile"
const WAR_PLAN_NONE := &"none"
const WAR_PLAN_PLANNED := &"planned"
const WAR_PLAN_RAIDING := &"raiding"
const WAR_PLAN_ABORTED := &"aborted"
const COMBATANT_KIND_NPC := &"npc"
const COMBATANT_KIND_RAIDER := &"raider"
const COMBATANT_KIND_WOLF := &"wolf"
const COMBATANT_KIND_PLAYER := &"player"
const EVENT_COMBATANT_HURT := &"combatant_hurt"
const EVENT_COMBATANT_KILLED := &"combatant_killed"
const EVENT_RAID_STARTED := &"raid_started"
const EVENT_WAR_RESOLVED := &"war_resolved"
const EVENT_WAR_ABORTED := &"war_aborted"
const EVENT_WOLF_HUNT := &"wolf_hunt"
static func npc_inventory_id(npc_id: int) -> StringName:
return StringName("npc_%d_inventory" % npc_id)
static func npc_combatant_id(npc_id: int) -> StringName:
return StringName("npc_%d_combatant" % npc_id)