Design: a C ABI so a game runtime can embed the SixM client

オープン
#4 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
活発
技術スタック
rust
領域
api, game-dev

調査の方向性

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 の本文から書いたものです。

説明

enhancement help wanted in-game-client

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 はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CodingRule/SixM のほかの issue

CodingRule/SixM の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。