mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-26 15:40:51 +01:00
Update for asset manager
This commit is contained in:
parent
bbf717648e
commit
d8741a75b0
@ -1,5 +1,4 @@
|
|||||||
import { IGraphicAssetCollection, NitroPoint, NitroTilemap, PixiApplicationProxy, PixiInteractionEventProxy, POINT_STRUCT_SIZE } from '@nitrots/nitro-renderer';
|
import { GetAssetManager, IGraphicAssetCollection, NitroPoint, NitroTilemap, PixiApplicationProxy, PixiInteractionEventProxy, POINT_STRUCT_SIZE } from '@nitrots/nitro-renderer';
|
||||||
import { GetNitroCore } from '../../../api';
|
|
||||||
import { ActionSettings } from './ActionSettings';
|
import { ActionSettings } from './ActionSettings';
|
||||||
import { FloorAction, HEIGHT_SCHEME, MAX_NUM_TILE_PER_AXIS, TILE_SIZE } from './Constants';
|
import { FloorAction, HEIGHT_SCHEME, MAX_NUM_TILE_PER_AXIS, TILE_SIZE } from './Constants';
|
||||||
import { Tile } from './Tile';
|
import { Tile } from './Tile';
|
||||||
@ -53,7 +52,7 @@ export class FloorplanEditor extends PixiApplicationProxy
|
|||||||
{
|
{
|
||||||
if(this._isInitialized) return;
|
if(this._isInitialized) return;
|
||||||
|
|
||||||
const collection = GetNitroCore().asset.getCollection('floor_editor');
|
const collection = GetAssetManager().getCollection('floor_editor');
|
||||||
|
|
||||||
if(!collection) return;
|
if(!collection) return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user