Add collision teleport portals and ledge-safe movement in VNext dungeons
This commit is contained in:
@@ -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
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user