refactor(runtime): own world environment state
This commit is contained in:
parent
b972f539f7
commit
902076c0a4
27 changed files with 886 additions and 295 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using AcDream.Core.Physics;
|
||||
using AcDream.Runtime.World;
|
||||
|
||||
namespace AcDream.Runtime;
|
||||
|
||||
|
|
@ -121,6 +122,7 @@ public readonly record struct RuntimeStateCheckpoint(
|
|||
int ChatCount,
|
||||
RuntimeActionSnapshot Actions,
|
||||
RuntimeMovementSnapshot Movement,
|
||||
RuntimeWorldEnvironmentSnapshot Environment,
|
||||
RuntimePortalSnapshot Portal);
|
||||
|
||||
public interface IGameRuntimeView
|
||||
|
|
@ -147,6 +149,8 @@ public interface IGameRuntimeView
|
|||
|
||||
IRuntimeMovementView Movement { get; }
|
||||
|
||||
IRuntimeWorldEnvironmentView Environment { get; }
|
||||
|
||||
IRuntimePortalView Portal { get; }
|
||||
|
||||
RuntimeStateCheckpoint CaptureCheckpoint();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue