agentleFS
WhaocaiiWhaocaii/ai-game-skills/skills/day-time-system/SKILL.md

day-time-system

Skill4 starsChanged 2 months agoMITView on GitHub

管理游戏模拟时间、天数、时间倍率、暂停和离线推进。用于逻辑时间,不负责太阳天空表现。 Design game time, time scale, pause, day rollover and offline progression; use for simulation logic.

The file

Files
SKILL.md

逻辑时间与跨日事件

本模块由 Whaocaii 主导设计与维护,使用 AI 辅助编写。当前版本为 0.1.0 工作草稿。按用户的目标与现有项目约束执行;仅使用实际可用的工具。

输入

  • 时间来源、流速、暂停和离线规则
  • 跨日任务、生产计时与事件重放需求

工作过程

  1. 区分真实经过时间、模拟时间和显示时间,给系统指定使用哪一种。
  2. 用确定的推进函数更新模拟时间;倍率变化和暂停在边界应用,避免同时由多个计时器写时间。
  3. 跨越多个日界时按事件规则逐个或聚合结算,记录已处理边界以防重放重复发奖。
  4. 明确离线时推进哪些系统、最多推进多久,不能让天气变化意外驱动所有生产。
  5. 验证保存、恢复和快进后,同一输入序列得到一致逻辑结果。

交付

  • 时间模型与事件调度约定
  • 跨日、暂停、快进和恢复样例

检查

  • 一次长时间推进不会漏掉必要事件
  • 显示时间变动不会反向污染逻辑状态

使用案例

玩家离线三天回来,商店刷新一次还是三次?为每日奖励、产线和天气分别定义规则。

验收时按上面的检查项判断结果;只读完本文件不代表完成了任务。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.