AimShape beta
TypeAlias of @v12-engine/engine
ts
export type AimShape = {
shape: 'circle';
radius: number;
} | {
shape: 'line';
length: number;
width: number;
}
/** A fan from the caster: `angle` is how wide it opens, in radians */
| {
shape: 'cone';
length: number;
angle: number;
}
/** A ring at the spot: what is `radius` away and up to `width` closer, not what is in the middle */
| {
shape: 'ring';
radius: number;
width: number;
}
/** A stretch of a ring around the caster, `radius` away, `angle` wide (radians) and `width` thick, its middle the way it is aimed */
| {
shape: 'arc';
radius: number;
angle: number;
width: number;
}
/** A rectangle around the spot, `length` long the way it is aimed and `width` out on either side */
| {
shape: 'rect';
length: number;
width: number;
}
/** An X at the spot: two bars `length` long and `width` out on either side, crossing square, each turned an eighth from the way it is aimed */
| {
shape: 'cross';
length: number;
width: number;
};The ground an ability covers: what the player aims with, and what is shown when it goes off