Add walkable housing interiors and cross-hub visitors

This commit is contained in:
dingo
2026-09-10 10:48:26 -04:00
parent b2dd2cb3ba
commit 1bd5d487e2
28 changed files with 721 additions and 52 deletions
+21
View File
@@ -725,6 +725,7 @@ type Snapshot struct {
Chunks []Chunk `json:"chunks"`
Entities []Entity `json:"entities"`
GatherRisks map[string]GatheringRisk `json:"gatherRisks,omitempty"`
House *HouseScene `json:"house,omitempty"`
Message string `json:"message"`
ProjectileVisuals []ProjectileVisual `json:"projectileVisuals,omitempty"`
Self Character `json:"self"`
@@ -756,6 +757,25 @@ type GatheringRisk struct {
Seconds float64 `json:"seconds"`
}
type HouseScene struct {
Furniture []RoomFurniture `json:"furniture"`
ID string `json:"id"`
Name string `json:"name"`
People []Entity `json:"people"`
Size float64 `json:"size"`
}
type RoomFurniture struct {
Container bool `json:"container"`
Depth float64 `json:"depth"`
Height float64 `json:"height"`
ID string `json:"id"`
Name string `json:"name"`
Width float64 `json:"width"`
X float64 `json:"x"`
Z float64 `json:"z"`
}
type ProjectileVisual struct {
At float64 `json:"at"`
Destination Vec3 `json:"destination"`
@@ -788,6 +808,7 @@ type Character struct {
HasKeystone bool `json:"hasKeystone"`
HealthChoices int64 `json:"healthChoices"`
HouseID *string `json:"houseId,omitempty"`
HousePosition *Vec3 `json:"housePosition,omitempty"`
Inventory map[string]int64 `json:"inventory"`
Items []ItemInstance `json:"items"`
Kills int64 `json:"kills"`