File tree Expand file tree Collapse file tree 4 files changed +43
-0
lines changed Expand file tree Collapse file tree 4 files changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ using DungeonRoyale . Modules . GameManagers . Scripts ;
2
+
3
+ namespace DungeonRoyale . Modules . Game . Scripts ;
4
+
5
+ public partial class Game : Node2D
6
+ {
7
+ private static TilesManager _tilesManager => TilesManager . Instance ! ;
8
+
9
+ [ Export ] public int MapWidth { get ; private set ; }
10
+ [ Export ] public int MapHeight { get ; private set ; }
11
+
12
+ private bool MapIsLoading { get ; set ; } = true ;
13
+
14
+ public override void _Ready ( )
15
+ {
16
+ _tilesManager . SetUpTiles ( MapWidth , MapHeight ) ;
17
+ }
18
+
19
+ public void OnMapScanned ( )
20
+ {
21
+ MapIsLoading = false ;
22
+
23
+ // Do something with the scanned map
24
+ }
25
+
26
+ public void OnMapGenerated ( )
27
+ {
28
+ MapIsLoading = false ;
29
+
30
+ // Do something with the generated map
31
+ }
32
+ }
Original file line number Diff line number Diff line change
1
+ uid://doeo50prutum0
Original file line number Diff line number Diff line change
1
+ namespace DungeonRoyale . Modules . Map ;
2
+
3
+ public partial class MapScanner : Node2D
4
+ {
5
+ public void Scan ( )
6
+ {
7
+ // Scan the map
8
+ }
9
+ }
Original file line number Diff line number Diff line change
1
+ uid://di6j7dxqlb03e
You can’t perform that action at this time.
0 commit comments