将 json 序列化到 content 文件夹

发布于 2025-01-05 02:00:18 字数 105 浏览 2 评论 0原文

我一直在使用资源管理器从内容文件夹中读取 json 文件来填充我的关卡。是否有一种我不知道的方法可以让我将文件写入我的内容文件夹?我一直在使用标准的java编写器,但它限制了我的代码到特定的平台。

I've been reading json files from my content folder using the asset manager to fill my levels. Is there a method that I am not aware of that would allow me to also write files into my content folder? I've been using the standard java writer, but it limits my code to a specific platform.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

许你一世情深 2025-01-12 02:00:18

您无法通过 PlayN API 写入文件。 PlayN 游戏可以编译为 JavaScript 并部署在 Web 浏览器中。没有 HTML5 API 允许您将任意数据写入文件系统。有建议的 API,但它们涉及弹出“另存为...”对话框,并且在任何情况下都没有广泛使用。

You cannot write files via PlayN APIs. PlayN games can be compiled to JavaScript and deployed in web browsers. There is no HTML5 API that allows you to write arbitrary data to the file system. There are proposed APIs, but they involve popping up "Save as..." dialogs and they are not widely available in any case.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文