> For the complete documentation index, see [llms.txt](https://docs.decentraland.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.decentraland.org/creator/content-creator-zh/jiao-cheng-yu-shi-li/published-games/clean-the-club.md).

# 清理俱乐部

通过共享组件轮询和附着在头像上的道具来反映携带物品的合作式夜店清理。

![《Clean The Club》预览](https://2460066822-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-fa79832b55db3f6f4d68c9a9e744578ff9c3d461%2FcleanTheClub-preview.webp?alt=media)

一款合作清理游戏，玩家要争分夺秒，在下一场派对开始前恢复夜总会的整洁。

* [在 Decentraland 上游玩](https://decentraland.org/jump?realm=cleantheclub.dcl.eth)

## 项目信息

**维护者：** 社区 · CleanTheClub

[查看上游源代码](https://github.com/CleanTheClub/CleanTheClub)

**许可证：** [Apache-2.0](https://github.com/CleanTheClub/CleanTheClub/blob/main/LICENSE)。重复使用前请查看上游条款；代码和资源可能适用不同的条款。

{% hint style="warning" %}
**社区维护的代码——使用前请先审查**

此社区项目由 Decentraland Foundation 和 DAO 的 GitHub 组织之外的人员维护。其源代码和线上部署可能独立发生变化。

此项目被收录于本目录，并不代表它已通过安全审计或保证其安全性。运行或复用前，请审查代码、依赖项和安装脚本。

[报告目录相关问题](https://github.com/decentraland/docs/issues/new)。如怀疑存在漏洞，请遵循上游项目的安全政策。请勿在公开议题中包含漏洞利用细节或凭据。
{% endhint %}

## 探索代码

这些链接指向特定的源代码快照，因此随着上游持续开发，这些说明仍然有用。它们是学习参考资料，并非安全评估。

### 在多个系统间共享一次组件扫描

onClutterPoll 每个轮询间隔收集一次 ClutterSync 条目，建立物品 ID 查找表，并将同一份快照传递给订阅者。每个使用方都可以自行进行筛选和变更检测。

**项目背景：** 这有助于了解如何避免重复扫描 ECS；它依赖共享架构和阶段门控轮询间隔，订阅应在客户端初始化时设置。

**源代码参考：**

* [onClutterPoll](https://github.com/CleanTheClub/CleanTheClub/blob/8ffc6c1fa24ff0da22a1d82ecdf2f9ce72f47f73/src/client/clutterWatcher.ts#L15-L54)

### 显示另一名玩家携带的装备

updateRemoteCarry 会将道具层级附加到另一名玩家角色的左手，根据当前装备或搬运状态选择模型，并按背包的装填比例缩放背包。如果没有要显示的内容，它也会移除该层级。

**项目背景：** 请结合携带消息处理程序、主题模型查找和模型适配偏移量来阅读：这些内容提供了状态信息和针对特定资源的定位方式。

**源代码参考：**

* [updateRemoteCarry](https://github.com/CleanTheClub/CleanTheClub/blob/8ffc6c1fa24ff0da22a1d82ecdf2f9ce72f47f73/src/client/carrySystem.ts#L805-L846)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.decentraland.org/creator/content-creator-zh/jiao-cheng-yu-shi-li/published-games/clean-the-club.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
