Data Model

3files
2min read
Sheet 30 of 31 · Internals

Filesweapons.yml · armor.yml · enemies.yml

Fileweapons.ymlFilearmor.ymlThe main objects inside the plugin, for anyone reading the source or writing against it. The pattern throughout: a definition loaded from config says what something is, and a separate runtime object tracks what it is doing right now.

Arena

ObjectRole
ArenaOne map: lobby, spawn, rooms, waves, spawners and every structure, plus live match state.
ArenaStatusWAITING, COUNTDOWN, RUNNING, ENDING.
RoomA zone, cuboid or voxel, with start and requires-power flags.
EnemySpawnerA spawn point, with an optional room.
WaveA wave number and its list of enemy groups.

Structures

ObjectRole
StructureAnything placed at a location with a hologram.
RegionalStructureA structure that can also have a clickable region.
GateDoor region linked to two rooms, with a cost.
BarricadeWindow region with health.
PowerSwitch, TeamMachineMachines with their own saved cost.
KitShop, PerkShop, WeaponShop, LotteryShop, MysteryBox, WeaponEnchanterShops. A WeaponShop may be locked to one WeaponType.
ArmorShop, ArmorEnchanterArmor shops and the Forge (1.5.0). An ArmorShop may be locked to one ArmorTier.

Combat

ObjectRole
WeaponTypeThe ten weapon ids, plus legacy aliases such as PISTOL and SHOTGUN that map to them.
WeaponA weapon's definition from weapons.yml.
WeaponInstanceA weapon a player holds: magazine, reserve, state, Pack-a-Punch flag.
WeaponStateREADY, RELOADING, RECOIL.
ArmorTierLEATHER, CHAINMAIL, IRON, DIAMOND, NETHERITE.
ArmorA tier's definition from armor.yml.
ArmorInstanceThe set a player wears, with its reinforced flag.
PerkThe seven perks.

Enemies

ObjectRole
EnemyTemplateA template from enemies.yml.
EnemyContainerOne group in a wave: template id and count.
EnemyEquipment, EnemyEffectGear and potion effects of a template.
BossAbility, BossAbilitySpecAbility types and their configured values.
BossInstanceA living boss: its bar, cooldowns and enrage state.

Match events

ObjectRole
ArenaEventINSTA_KILL, DOUBLE_MONEY, AMMO_REFILL, AUTO_REPAIR, DISCOUNT.
ActiveEventAn event running in an arena.
PowerUpTypeMAX_AMMO, NUKE, INSTA_KILL, DOUBLE_POINTS, CARPENTER, each with its item.

Players and stats

ObjectRole
ZombiesPlayerA player's match state: status, weapons, perks, armor, kills, saved inventory.
PlayerStatusLOBBY, PLAYING, DOWNED, SPECTATING.
PlayerProfilePersistent stats, including best round per arena.
StatTypeThe five stats and their database columns.
LeaderboardEntryOne name and value on a leaderboard.

Creator

ObjectRole
CreatorSessionAn arena being built or edited in the creator GUI.
CreatorStepThe creator steps and which ones are required to save.
EnemyCreatorSessionA template being built in the Enemy Creator.

Loading the index

Enter openUp Down moveEsc close