mirror of
https://github.com/motajs/template.git
synced 2026-11-24 14:54:30 +08:00
chore: 注释调整与接口微调
This commit is contained in:
1 parent
79d06c31df
commit
ebfe59b4f5
8 files changed
+64
-8
No files matched your search
@@ -8,7 +8,8 @@ import {
|
||||
} from './types';
|
||||
|
||||
export class Enemy<TAttr> implements IEnemy<TAttr> {
|
||||
readonly specials: Set<ISpecial<any>> = new Set();
|
||||
/** 怪物身上的特殊属性列表 */
|
||||
private readonly specials: Set<ISpecial<any>> = new Set();
|
||||
/** code -> ISpecial 映射,用于快速查找 */
|
||||
private readonly specialMap: Map<number, ISpecial<any>> = new Map();
|
||||
|
||||
@@ -89,7 +90,8 @@ export class Enemy<TAttr> implements IEnemy<TAttr> {
|
||||
}
|
||||
|
||||
export class EnemyView<TAttr> implements IEnemyView<TAttr> {
|
||||
private computedEnemy: IEnemy<TAttr>;
|
||||
/** 计算后怪物 */
|
||||
private readonly computedEnemy: IEnemy<TAttr>;
|
||||
|
||||
constructor(
|
||||
readonly baseEnemy: IEnemy<TAttr>,
|
||||
|
||||
Reference in new issue
Block a user