Files
esengine/packages/core/src/ECS/Systems/ProcessingSystem.ts

30 lines
850 B
TypeScript
Raw Normal View History

import { EntitySystem } from './EntitySystem';
import { Entity } from '../Entity';
import { Matcher } from '../Utils/Matcher';
/**
*
* EntitySystem类
* processSystem方法
*/
export abstract class ProcessingSystem extends EntitySystem {
constructor(matcher?: Matcher) {
super(matcher);
}
/**
* processSystem方法进行处理
* @param entities 使
*/
protected override process(_entities: Entity[]): void {
// 调用子类实现的processSystem方法进行实体处理
this.processSystem();
}
/**
*
*/
public abstract processSystem(): void;
}