Design: a C ABI so a game runtime can embed the SixM client
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Rust
- Star
- 3
- Fork
- 1
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của CodingRule/SixM
-
help wanted in-game-client needs-game-copy
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 70/100
CodingRule/SixM#1 ·
-
in-game-client tracking
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 10/100
CodingRule/SixM#12 ·
-
Option to trust X-Forwarded-For behind a reverse proxyCó thể đã có người làm @shiwng đã nhận hôm nay. Đang mởenhancement good first issue hosting
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
CodingRule/SixM#10 ·
-
enhancement help wanted hosting
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
CodingRule/SixM#9 ·
-
enhancement help wanted networking
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 68/100
CodingRule/SixM#7 ·
Tất cả issue của CodingRule/SixM
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 2 ngày
-
autofixer: follow-up
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
tursodatabase/turso#12531 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug help wanted ui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
userFRM/egui-charts#4292 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
CHANGELOG.md out of dateĐang mởIssue-Bug Need-Review
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
PowerShell/DSC#1832 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày