ProjectileState beta
Interface of @v12-engine/engine
ts
export interface ProjectileStateA projectile in flight as the screen is told of it: where it is, who shot it and what kind of damage it carries
Members
crit
ts
crit: boolean;Whether the hit it carries is a critical one
damageType
ts
damageType: DamageType;The type of damage it deals on landing
from
ts
from?: Vec2;Where it was fired from and where it comes down, for shots that are lobbed at a spot
id
ts
id: number;The projectile's id
kind
ts
kind: string;The type of what shot it, known even when the shooter is out of sight: what it looks like
look
ts
look?: string;A look the rules gave it (see Projectile.look)
owner
ts
owner: PlayerId;The player whose unit shot it
source
ts
source?: number;Entity it was fired by, when that one is known to the player
target
ts
target?: number;Entity it is after, when that one is known to the player
to
ts
to?: Vec2;Where a lobbed shot comes down
x
ts
x: number;Where it is, east-west, in world units
z
ts
z: number;Where it is, north-south, in world units