mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-08 09:35:55 +00:00
Mapping
This commit is contained in:
parent
e6dd2a2348
commit
19a0802ef2
6 changed files with 144 additions and 17 deletions
|
|
@ -13,7 +13,7 @@ public partial class LevelTeleporter : Teleporter
|
|||
[Export] public string LevelPath { get; set; }
|
||||
[Export] public MapResource Map { get; private set; }
|
||||
|
||||
[Export] public bool SaveInventory { get; private set; }
|
||||
[Export] public bool SaveInventory { get; set; }
|
||||
|
||||
protected override async Task Teleport(IStateMachine<PlayerState, CharacterBody2D> player)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@ public partial class TeleporterMarker : FeatureMarker
|
|||
if (Type is TeleporterMarkerType.NextLevel && _spawnedTeleporter is LevelTeleporter levelTeleporter)
|
||||
{
|
||||
levelTeleporter.LevelPath = mapTheme.LevelTeleporterDestinationPath;
|
||||
levelTeleporter.SaveInventory = true;
|
||||
}
|
||||
|
||||
return this;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue