Deserialize chunk json + spawn debug markers
This commit is contained in:
parent
dbdfd2bb74
commit
77114f5551
3 changed files with 86 additions and 4 deletions
20
scripts/world/ChunkData.cs
Normal file
20
scripts/world/ChunkData.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
public record ChunkData(
|
||||
int schema,
|
||||
string id,
|
||||
int x,
|
||||
int y,
|
||||
string? biome,
|
||||
List<ChunkPickup>? pickups,
|
||||
List<ChunkGate>? gates,
|
||||
List<ChunkNpc>? npcs,
|
||||
List<ChunkSpawnZone>? spawn_zones,
|
||||
List<ChunkCollisionRect>? collision_rects
|
||||
);
|
||||
|
||||
public record ChunkPickup(string id, string item, int[] pos, int respawn_seconds);
|
||||
public record ChunkGate(string id, int[] rect, string requires, string? message);
|
||||
public record ChunkNpc(string id, string kind, int[] pos, string @ref);
|
||||
public record ChunkSpawnZone(string id, string biome, int[] rect, List<string>? time_windows, List<string>? weather);
|
||||
public record ChunkCollisionRect(string id, int[] rect);
|
||||
Loading…
Add table
Add a link
Reference in a new issue