Services

2files
1min read
Sheet 31 of 31 · Internals

Filesfx.yml · leaderboards.yml

Filefx.ymlFileleaderboards.ymlInside, the plugin is split into services that each own one part of the game. This map helps when reading the source or tracking down which part handles what.

Match

ServiceOwns
ArenaServiceJoining, leaving, the countdown, starting and ending matches, going down and reviving, the room graph, barricade damage.
WaveServiceBuilding spawn lists, spawn timing, boss rounds, counting enemies, finishing waves.
BossServiceBoss bars and abilities.
EventServiceRolling round events and applying discounts.
PowerUpServicePower-up drops and their effects.
KillStreakServiceKill streaks, their bar and tier rewards.

Player

ServiceOwns
PlayerServiceSaving and restoring inventories, the arena hotbar, giving weapons.
EconomyServiceMatch money.
PerkServiceBuying perks and applying their effects.
WeaponServiceWeapon items, ammo, reloads and ADS.
ArmorServiceArmor sets, damage reduction, the tier loss on going down, the Forge.
CorpseServiceThe downed player's seat and bleedout name tag.

Display

ServiceOwns
ScoreboardServiceThe sidebar.
ActionBarServiceThe action bar line during a match.
HologramServiceStructure holograms and previews.
FxServiceSounds from fx.yml and a few visual effects.

Setup

ServiceOwns
CreatorServiceArena creator sessions and saving them.
CreatorModeServiceCreator Mode: the hotbar, invisibility, flight and inventory snapshot.
EnemyCreatorServiceEnemy Creator sessions and writing templates.
RegionServicePos1/Pos2 and voxel selections.
RegionHighlightServiceRegion outlines and room previews.
WandServiceBuilding and recognising the wands.

Stats

ClassOwns
StatsServiceLoaded profiles, recording stats, saving changed ones.
ProfileRepositoryDatabase reads and writes, on its own thread.
LeaderboardServiceThe cached top lists.
LeaderboardHologramManagerLeaderboard holograms and leaderboards.yml.
DatabaseThe SQLite or MySQL connection pool.

Loading the index

Enter openUp Down moveEsc close