新增被动系统与协调系统 完善matcher
This commit is contained in:
15
source/src/ECS/Systems/ProcessingSystem.ts
Normal file
15
source/src/ECS/Systems/ProcessingSystem.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
/** 用于协调其他系统的通用系统基类 */
|
||||
abstract class ProcessingSystem extends EntitySystem {
|
||||
public onChanged(entity: Entity){
|
||||
|
||||
}
|
||||
|
||||
protected process(entities: Entity[]){
|
||||
this.begin();
|
||||
this.processSystem();
|
||||
this.end();
|
||||
}
|
||||
|
||||
/** 处理我们的系统 每帧调用 */
|
||||
public abstract processSystem();
|
||||
}
|
||||
Reference in New Issue
Block a user