mirror of
https://github.com/motajs/template.git
synced 2026-11-22 13:04:31 +08:00
refactor(type): material types.
This commit is contained in:
1 parent
9b51b6a1ce
commit
4e305e392a
19 files changed
+80
-87
No files matched your search
@@ -1,13 +1,13 @@
|
||||
import { linear, TimingFn } from 'mutate-animate';
|
||||
import { IMapRenderer, IMapVertexGenerator, IMovingBlock } from './types';
|
||||
import { IMaterialFramedData, IMaterialManager } from '@user/client-base';
|
||||
import { IMaterialFramedData, ITextureManager } from '@user/client-base';
|
||||
import { logger } from '@motajs/common';
|
||||
import { IMapLayer } from '@user/data-base';
|
||||
import { DynamicBlockStatus } from './status';
|
||||
|
||||
export interface IMovingRenderer {
|
||||
/** 素材管理器 */
|
||||
readonly manager: IMaterialManager;
|
||||
readonly manager: ITextureManager;
|
||||
/** 顶点数组生成器 */
|
||||
readonly vertex: IMapVertexGenerator;
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
BlockCls,
|
||||
IAutotileProcessor,
|
||||
IMaterialFramedData,
|
||||
IMaterialManager,
|
||||
ITextureManager,
|
||||
ITrackedAssetData
|
||||
} from '@user/client-base';
|
||||
import {
|
||||
@@ -214,7 +214,7 @@ export class MapRenderer
|
||||
* 创建地图渲染器
|
||||
* @param manager 素材管理器
|
||||
*/
|
||||
constructor(readonly manager: IMaterialManager) {
|
||||
constructor(readonly manager: ITextureManager) {
|
||||
this.movingIndexPool.push(
|
||||
...Array.from({ length: this.movingCount }, (_, i) => i).reverse()
|
||||
);
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
import {
|
||||
IAutotileProcessor,
|
||||
IMaterialFramedData,
|
||||
IMaterialManager,
|
||||
ITextureManager,
|
||||
ITrackedAssetData
|
||||
} from '@user/client-base';
|
||||
import { IGameMap, IMapLayer } from '@user/data-base';
|
||||
@@ -326,7 +326,7 @@ export interface IMapRenderResult {
|
||||
|
||||
export interface IMapRenderer {
|
||||
/** 地图渲染器使用的资源管理器 */
|
||||
readonly manager: IMaterialManager;
|
||||
readonly manager: ITextureManager;
|
||||
/** 画布渲染上下文 */
|
||||
readonly gl: WebGL2RenderingContext;
|
||||
|
||||
|
||||
Reference in new issue
Block a user