mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 03:29:51 +02:00
feat: some work on functional pro ts
This commit is contained in:
1 parent
9b134fab27
commit
57170469f2
6 files changed
+44
-29
No files matched your search
@@ -1,3 +1,18 @@
|
||||
import { TankDefinition, TankDefinitions } from '@blitzkit/core';
|
||||
|
||||
export async function definitions() {
|
||||
console.log('Building definitions...');
|
||||
|
||||
const tankDefinitions = new TankDefinitions();
|
||||
const tanks = tankDefinitions.getTanksMap();
|
||||
|
||||
const testTank = new TankDefinition();
|
||||
|
||||
testTank.setName('asd');
|
||||
|
||||
tanks.set(1, testTank);
|
||||
|
||||
console.log(JSON.stringify(tankDefinitions.toObject(), null, 2));
|
||||
}
|
||||
|
||||
definitions();
|
||||
Reference in new issue
Block a user