Skip to content
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.
Permalink
8ab221d4ed
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
59 lines (50 sloc) 1.2 KB
/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { CreateActorCommon, Payload } from '.';
import { AssetLike, AssetSource, ColliderType, CollisionLayer, Guid } from '../..';
export type CreateColliderType = ColliderType | 'none';
/** @hidden */
export type AssetPayloadType
= 'assets-loaded'
| 'asset-update'
| 'create-asset'
| 'create-from-prefab'
| 'load-assets'
| 'unload-assets';
/** @hidden */
export type LoadAssets = Payload & {
type: 'load-assets';
containerId: Guid;
source: AssetSource;
colliderType: CreateColliderType;
};
/** @hidden */
export type CreateAsset = Payload & {
type: 'create-asset';
containerId: Guid;
definition: AssetLike;
};
/** @hidden */
export type AssetsLoaded = Payload & {
type: 'assets-loaded';
assets: AssetLike[];
failureMessage: string;
};
/** @hidden */
export type AssetUpdate = Payload & {
type: 'asset-update';
asset: Partial<AssetLike>;
};
/** @hidden */
export type CreateFromPrefab = CreateActorCommon & {
type: 'create-from-prefab';
prefabId: Guid;
collisionLayer?: CollisionLayer;
};
/** @hidden */
export type UnloadAssets = Payload & {
type: 'unload-assets';
containerId: Guid;
};