Skip to content

InspectedModel beta ​

Interface of @v12-engine/editor

ts
export interface InspectedModel

A model the Inspector looks into: what it is drawn as (ModelDef), called what, and as what it is used

Members ​

as ​

ts
as: 'unit' | 'scenery' | 'file';

A unit type, scenery or a file alone: what its cost as the game draws it is said for first

model ​

ts
model: ModelDef;

The model the Inspector shows

title ​

ts
title: string;

The model's name shown as the Inspector's heading

type ​

ts
type?: string;

The unit type it is the model of, where it is one's: how it dies, goes up and looks hurt are shown with it