lots done
This commit is contained in:
parent
1ba7c39c30
commit
fbd0ba445a
59 changed files with 6074 additions and 3598 deletions
28
src/Roboto.Core/GameState.cs
Normal file
28
src/Roboto.Core/GameState.cs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
using System.Numerics;
|
||||
|
||||
namespace Roboto.Core;
|
||||
|
||||
public class GameState
|
||||
{
|
||||
public long TickNumber { get; set; }
|
||||
public float DeltaTime { get; set; }
|
||||
public long TimestampMs { get; set; }
|
||||
|
||||
public PlayerState Player { get; set; } = new();
|
||||
public IReadOnlyList<EntitySnapshot> Entities { get; set; } = [];
|
||||
public IReadOnlyList<EntitySnapshot> HostileMonsters { get; set; } = [];
|
||||
public IReadOnlyList<EntitySnapshot> NearbyLoot { get; set; } = [];
|
||||
public WalkabilitySnapshot? Terrain { get; set; }
|
||||
|
||||
public uint AreaHash { get; set; }
|
||||
public int AreaLevel { get; set; }
|
||||
public bool IsLoading { get; set; }
|
||||
public bool IsEscapeOpen { get; set; }
|
||||
public DangerLevel Danger { get; set; }
|
||||
public Matrix4x4? CameraMatrix { get; set; }
|
||||
|
||||
// Derived (computed once per tick by GameStateEnricher)
|
||||
public ThreatMap Threats { get; set; } = new();
|
||||
public IReadOnlyList<EntitySnapshot> NearestEnemies { get; set; } = [];
|
||||
public IReadOnlyList<GroundEffect> GroundEffects { get; set; } = [];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue