Initial commit: Client Doc docs Server Tools

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
ud18010
2026-07-10 10:24:29 +08:00
co-authored by Cursor
commit 7e35d8da31
3374 changed files with 680813 additions and 0 deletions
@@ -0,0 +1,11 @@
namespace XWorld.Framework
{
// 平台无关、纯函数式的权威逻辑;两端共用做权威计算与客户端预演
public interface IGameLogic<TState, TInput, TEvent>
{
TState CreateInitial(RoomConfig config, IRandom random);
StepResult<TState, TEvent> Step(TState state, TInput input, IRandom random);
byte[] Encode(TState state); // 快照编解码,两端共用
TState Decode(byte[] data);
}
}