Design: a C ABI so a game runtime can embed the SixM client
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 25/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Rust
- Sterne
- 3
- Forks
- 1
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus CodingRule/SixM
-
help wanted in-game-client needs-game-copy
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 70/100
CodingRule/SixM#1 ·
-
in-game-client tracking
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 10/100
CodingRule/SixM#12 ·
-
Option to trust X-Forwarded-For behind a reverse proxyEvtl. vergeben @shiwng hat das heute übernommen. Offenenhancement good first issue hosting
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
CodingRule/SixM#10 ·
-
enhancement help wanted hosting
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 30/100
CodingRule/SixM#9 ·
-
enhancement help wanted networking
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 68/100
CodingRule/SixM#7 ·
Alle Issues in CodingRule/SixM
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 2 Tagen
-
autofixer: follow-up
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
tursodatabase/turso#12531 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug help wanted ui
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
userFRM/egui-charts#4292 ·
Maintainer antworten meist innerhalb von 1 Tag
-
CHANGELOG.md out of dateOffenIssue-Bug Need-Review
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 85/100
PowerShell/DSC#1832 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag