Skip to content

PrefabArea beta ​

Interface of @v12-engine/engine

ts
export interface PrefabArea

An area the rules watch, of a prefab: its id gets the spawn's own suffix, so that two of one prefab are two areas *

Members ​

id ​

ts
id: string;

The area's id before the spawn's own suffix is added, so two spawns of one prefab give two areas

shape ​

ts
shape: AreaShape;

The area's shape, placed around the prefab's middle