Initial commit: Client Doc docs Server Tools
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user