Add collision teleport portals and ledge-safe movement in VNext dungeons

This commit is contained in:
dingo
2026-02-14 15:05:10 -05:00
parent 147e7d625d
commit 8f7098af81
9 changed files with 382 additions and 34 deletions
+15 -2
View File
@@ -144,9 +144,12 @@ public class DungeonLayoutV2 : DungeonLayout
frame = o.FrameIndex,
blocks = o.BlocksMovement,
interact = o.IsInteractable,
triggeredByWalk = o.TriggeredByWalk,
interactionType = o.InteractionType,
trap = o.IsTrap,
damage = o.TrapDamage,
loot = o.LootTableId
loot = o.LootTableId,
metadataJson = o.MetadataJson
}),
// Tile sheets
tileSheets = TileMapSheets.Select(s => new
@@ -194,7 +197,17 @@ public class DungeonLayoutV2 : DungeonLayout
rooms = Rooms.Select(r => new { x = r.X, y = r.Y, w = r.Width, h = r.Height, type = r.Type.ToString() }),
mobs = MobSpawns.Select(m => new { id = m.Id, x = m.X, y = m.Y, type = m.MobType.ToString() }),
chests = ChestSpawns.Select(c => new { id = c.Id, x = c.X, y = c.Y, type = c.ChestType.ToString() }),
objects = Objects.Select(o => new { x = o.X, y = o.Y, id = o.ObjectTemplateId, type = o.Type, blocks = o.BlocksMovement })
objects = Objects.Select(o => new
{
x = o.X,
y = o.Y,
id = o.ObjectTemplateId,
type = o.Type,
blocks = o.BlocksMovement,
triggeredByWalk = o.TriggeredByWalk,
interactionType = o.InteractionType,
metadataJson = o.MetadataJson
})
});
}