Design: a C ABI so a game runtime can embed the SixM client
还没有人认领这个 Issue。
评估
调研方向
Start by reading the sixm-client crate, which the issue identifies as holding the client core. The proposal leaves threading, host registration of script functions, and event and chat delivery unresolved, so those design questions need decisions before implementation. Done means agreeing on a C API header and design note, then implementing it as a cdylib on top of sixm-client.
由索引模型根据 Issue 内容生成。
描述
The client core (connect, handshake, send local state, receive snapshots, run client Lua) now lives in the sixm-client Rust crate. A game integration needs to drive it from C or C++.
Needs no game files.
Proposal to flesh out
A small C API, something like:
sixm_client* sixm_connect(const char* host, uint16_t port, const char* name);
void sixm_set_local_state(sixm_client*, const sixm_state* state);
size_t sixm_get_remote_players(sixm_client*, sixm_remote* out, size_t max);
void sixm_tick(sixm_client*);
void sixm_disconnect(sixm_client*);
Open questions
- Threading: who owns the network thread, and when may the host call in?
- How do script-visible game functions get registered by the host?
- How are events and chat surfaced to the host?
Done when
A header and a design note are agreed here, then implemented as a cdylib on top of sixm-client.
- 主要语言
- Rust
- 星标
- 3
- 派生
- 1
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
CodingRule/SixM 的其他 Issue
-
help wanted in-game-client needs-game-copy
难度 1/5 1 小时以内 新手友好度 70/100
CodingRule/SixM#1 ·
-
in-game-client tracking
难度 5/5 一周以上 新手友好度 10/100
CodingRule/SixM#12 ·
-
Option to trust X-Forwarded-For behind a reverse proxy可能已有人在做 @shiwng 今天认领。 未关闭enhancement good first issue hosting
难度 4/5 3-5 天 新手友好度 35/100
CodingRule/SixM#10 ·
-
enhancement help wanted hosting
难度 5/5 一周以上 新手友好度 30/100
CodingRule/SixM#9 ·
-
enhancement help wanted networking
难度 4/5 3-5 天 新手友好度 68/100
CodingRule/SixM#7 ·
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 2 天内回复
-
autofixer: follow-up
难度 2/5 1-3 小时 新手友好度 78/100
tursodatabase/turso#12531 ·
维护者通常 1 天内回复
-
bug help wanted ui
难度 2/5 1-3 小时 新手友好度 82/100
userFRM/egui-charts#4292 ·
维护者通常 1 天内回复
-
Issue-Bug Need-Review
难度 1/5 1-3 小时 新手友好度 85/100
PowerShell/DSC#1832 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复