新增fastList、注释完善

This commit is contained in:
yhh
2020-10-27 18:08:49 +08:00
parent 0e7b0bc45c
commit fc6a8a0803
19 changed files with 595 additions and 205 deletions

View File

@@ -0,0 +1,16 @@
module es {
export interface IUpdatable {
enabled: boolean;
updateOrder: number;
update();
}
/**
* 用于比较组件更新排序
*/
export class IUpdatableComparer implements IComparer<IUpdatable> {
public compare(a: Component, b: Component) {
return a.updateOrder - b.updateOrder;
}
}
}