HudSharing beta
Interface of @v12-engine/engine
export interface HudSharingWhat of a unit the players who see it are told beyond what they always are (RuleSettings.hud), each for the plates over it to show. What is not shared never reaches a player, so no screen can show it. A game's own data goes in a component with replicate (the client's hudData reads it)
Members
shareAbilities
shareAbilities?: HudShareRule<'none' | 'icons' | 'cooldowns'>;Its abilities (EntityState.abilities) to everyone who sees it, its side's or not: those it has learned and their levels ('icons'), with how much of their cooldowns is left too ('cooldowns'), or none ('none', when left out: its side has them in own all the same)
shareBuffTimes
shareBuffTimes?: HudShareRule<boolean | 'allies'>;The seconds left of its buffs (EntityState.buffTimes): to everyone who sees it (true), to its owner and their allies ('allies'), or to no one (false, when left out)
shareXp
shareXp?: HudShareRule<boolean>;A hero's experience (HeroSent.xp) to everyone who sees it. Its side's alone when left out