Constructors
constructor
- new Group<t>(name: string, game: Game, defaultItems?: t[]): Group<t>
Type parameters
Parameters
name: string
Optional defaultItems: t[]
Returns Group<t>
Properties
Readonly name
name: string
Protected stack
stack: t[]
Methods
at
- at(index: number): undefined | t
Parameters
Returns undefined | t
each
- each(cb: (item: t, index: number) => void): void
Parameters
cb: (item: t, index: number) => void
- (item: t, index: number): void
Returns void
find
- find(item: t): undefined | t
Parameters
Returns undefined | t
splice
- splice(index: number, deleteCount?: number): t[]
Parameters
index: number
Optional deleteCount: number
Returns t[]
Creates a DuckEngine Group
The Group Class. Contains and manages a group of items
1.0.0-beta