Skip to content

Commit 12cd0aa

Browse files
committed
refactor: move pasta shared para dentro da pasta modules
1 parent 9f3609e commit 12cd0aa

File tree

10 files changed

+29
-27
lines changed

10 files changed

+29
-27
lines changed

Modules/Game/Scripts/Game.cs

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,37 +5,37 @@ namespace DungeonRoyale.Modules.Game.Scripts;
55

66
public partial class Game : Node2D
77
{
8-
private static TilesManager _tilesManager => TilesManager.Instance!;
8+
private static TilesManager _tilesManager => TilesManager.Instance!;
99

10-
[Export] public MapSettingsResource MapSettings { get; private set; } = new MapSettingsResource();
10+
[Export] public MapSettingsResource MapSettings { get; private set; } = new MapSettingsResource();
1111

12-
private bool MapIsLoading { get; set; } = true;
12+
private bool MapIsLoading { get; set; } = true;
1313

14-
public override void _Ready()
15-
{
16-
_tilesManager.SetUpTiles(MapSettings.Width, MapSettings.Height);
14+
public override void _Ready()
15+
{
16+
_tilesManager.SetUpTiles(MapSettings.Width, MapSettings.Height);
1717

18-
if (FindChild(nameof(MapScanner), true) is not MapScanner mapScanner)
19-
{
20-
GD.PrintErr("MapScanner node not found.");
21-
return;
22-
}
18+
if (FindChild(nameof(MapScanner), true) is not MapScanner mapScanner)
19+
{
20+
GD.PrintErr("MapScanner node not found.");
21+
return;
22+
}
2323

24-
mapScanner.MapScanned += OnMapScanned;
25-
mapScanner.Scan(MapSettings.Width, MapSettings.Height);
26-
}
24+
mapScanner.MapScanned += OnMapScanned;
25+
mapScanner.Scan(MapSettings.Width, MapSettings.Height);
26+
}
2727

28-
public void OnMapScanned()
29-
{
30-
MapIsLoading = false;
28+
public void OnMapScanned()
29+
{
30+
MapIsLoading = false;
3131

32-
// Do something with the scanned map
33-
}
32+
// Do something with the scanned map
33+
}
3434

35-
public void OnMapGenerated()
36-
{
37-
MapIsLoading = false;
35+
public void OnMapGenerated()
36+
{
37+
MapIsLoading = false;
3838

39-
// Do something with the generated map
40-
}
39+
// Do something with the generated map
40+
}
4141
}
File renamed without changes.
File renamed without changes.

Shared/Resources/font1.ttf.import renamed to Modules/Shared/Resources/font1.ttf.import

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
importer="font_data_dynamic"
44
type="FontFile"
55
uid="uid://4gd2xpuyufru"
6-
path="res://.godot/imported/font1.ttf-6e7ba9975eab5806005bb5a794c32bb2.fontdata"
6+
path="res://.godot/imported/font1.ttf-a1e3d7eaf2a3dd96c6c75edf31a94005.fontdata"
77

88
[deps]
99

10-
source_file="res://Shared/Resources/font1.ttf"
11-
dest_files=["res://.godot/imported/font1.ttf-6e7ba9975eab5806005bb5a794c32bb2.fontdata"]
10+
source_file="res://Modules/Shared/Resources/font1.ttf"
11+
dest_files=["res://.godot/imported/font1.ttf-a1e3d7eaf2a3dd96c6c75edf31a94005.fontdata"]
1212

1313
[params]
1414

@@ -23,6 +23,7 @@ allow_system_fallback=true
2323
force_autohinter=false
2424
hinting=1
2525
subpixel_positioning=4
26+
keep_rounding_remainders=true
2627
oversampling=0.0
2728
Fallbacks=null
2829
fallbacks=[]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
uid://buc28pwwo43g6

0 commit comments

Comments
 (0)