Skip to content

Commit

Permalink
Broken layer events.
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuj committed Mar 15, 2022
1 parent daf6942 commit 71de328
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions Scenes/AlexandraSquare.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@
using System.Text;
using System.Threading.Tasks;
using tileEngine.SDK;
using tileEngine.SDK.Attributes;
using tileEngine.SDK.Audio;
using tileEngine.SDK.Diagnostics;
using tileEngine.SDK.GUI;
using tileEngine.SDK.GUI.Elements;
using tileEngine.SDK.Map;
using tileEngine.SDK.Utility;

namespace CampusCrawl.Scenes
Expand Down Expand Up @@ -90,5 +93,16 @@ public override void Update(GameTime delta)
}
//...
}

[EventFunction("EnteredOrExitedShelteredArea")]
public void EnteredOrExitedShelteredArea(TileEventData e)
{
DiagnosticsHook.DebugMessage("A");
Map.Layers.Where(x =>
{
DiagnosticsHook.DebugMessage(" -> " + x);
return true;
});
}
}
}
Binary file modified campus-crawl.teproj
Binary file not shown.
2 changes: 1 addition & 1 deletion tileEngine

0 comments on commit 71de328

Please sign in to comment.