feat(timer): 添加定时器和冷却系统 (#325)

- 添加 ITimerService 接口和 TimerService 实现
- 支持一次性定时器和重复定时器
- 支持冷却系统 (startCooldown/isCooldownReady/getCooldownProgress)
- 添加 8 个蓝图节点:
  - StartCooldown, IsCooldownReady, GetCooldownProgress
  - ResetCooldown, GetCooldownInfo
  - HasTimer, CancelTimer, GetTimerRemaining
This commit is contained in:
YHH
2025-12-25 12:29:59 +08:00
committed by GitHub
parent 068ca4bf69
commit ebb984d354
12 changed files with 1492 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
import { defineConfig } from 'tsup';
export default defineConfig({
entry: ['src/index.ts'],
format: ['esm'],
dts: true,
sourcemap: true,
clean: true,
external: [
'@esengine/ecs-framework',
'@esengine/blueprint'
],
tsconfig: 'tsconfig.build.json'
});