Files
esengine/source/src/ECS/Systems/ProcessingSystem.ts

18 lines
445 B
TypeScript
Raw Normal View History

/** 用于协调其他系统的通用系统基类 */
2020-07-23 11:00:46 +08:00
module es {
export abstract class ProcessingSystem extends EntitySystem {
2020-07-28 16:25:20 +08:00
public onChanged(entity: Entity) {
2020-07-23 11:00:46 +08:00
}
2020-07-28 16:25:20 +08:00
/** 处理我们的系统 每帧调用 */
public abstract processSystem();
protected process(entities: Entity[]) {
2020-07-23 11:00:46 +08:00
this.begin();
this.processSystem();
this.end();
}
}
}