Skip to content

Commit 3959a07

Browse files
authored
Merge pull request #46 from DekuDesu/development
Development
2 parents bff0cfc + b4ff6fb commit 3959a07

35 files changed

Lines changed: 871 additions & 354 deletions

MiniMapLibrary/Basic/Dimension2D.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ public float Width
1616
set
1717
{
1818
_Width = value;
19-
if (OnChanged != null)
20-
{
21-
OnChanged(this);
22-
}
19+
OnChanged?.Invoke(this);
2320
}
2421
}
2522
public float Height
@@ -28,10 +25,7 @@ public float Height
2825
set
2926
{
3027
_Height = value;
31-
if (OnChanged != null)
32-
{
33-
OnChanged(this);
34-
}
28+
OnChanged?.Invoke(this);
3529
}
3630
}
3731

MiniMapLibrary/Interfaces/IConfig.cs renamed to MiniMapLibrary/Config/Interfaces/IConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Collections.Generic;
33
using System.Text;
44

5-
namespace MiniMapLibrary.Interfaces
5+
namespace MiniMapLibrary.Config
66
{
77
public interface IConfig
88
{

MiniMapLibrary/Interfaces/IConfigEntry.cs renamed to MiniMapLibrary/Config/Interfaces/IConfigEntry.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Collections.Generic;
33
using System.Text;
44

5-
namespace MiniMapLibrary.Interfaces
5+
namespace MiniMapLibrary.Config
66
{
77
public interface IConfigEntry<T>
88
{

MiniMapLibrary/Interfaces/wrappers/SettingConfigGroup.cs renamed to MiniMapLibrary/Config/Interfaces/ISettingConfigGroup.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
using MiniMapLibrary.Interfaces;
2-
using System;
1+
using System;
32
using System.Collections.Generic;
43
using System.Text;
54
using UnityEngine;
65

7-
namespace MiniMapMod.wrappers
6+
namespace MiniMapLibrary.Config
87
{
98
public interface ISettingConfigGroup
109
{

MiniMapLibrary/SettingConfigGroup.cs renamed to MiniMapLibrary/Config/SettingConfigGroup.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
using MiniMapLibrary;
2-
using MiniMapLibrary.Interfaces;
2+
using MiniMapLibrary.Config;
33
using System;
44
using System.Collections.Generic;
55
using System.Text;
66
using UnityEngine;
77

8-
namespace MiniMapMod.wrappers
8+
namespace MiniMapLibrary.Config
99
{
1010
public class SettingConfigGroup : ISettingConfigGroup
1111
{

MiniMapLibrary/StubConfigEntry.cs renamed to MiniMapLibrary/Config/wrappers/StubConfigEntry.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
using MiniMapLibrary.Interfaces;
2-
using System;
1+
using System;
32
using System.Collections.Generic;
43
using System.Text;
54

6-
namespace MiniMapLibrary
5+
namespace MiniMapLibrary.Config
76
{
87
public class StubConfigEntry<T> : IConfigEntry<T>
98
{

MiniMapLibrary/Interactible/InteractableKind.cs

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,21 @@ public enum InteractableKind
1111
none = 0,
1212
Chest = 1 << 0,
1313
Utility = 1 << 1,
14-
Teleporter = 1 << 2,
15-
Shrine = 1 << 3,
16-
Special = 1 << 4,
17-
Player = 1 << 5,
18-
Drone = 1 << 6,
19-
Barrel = 1 << 7,
20-
Enemy = 1 << 8,
21-
Printer = 1 << 9,
22-
LunarPod = 1 << 10,
23-
All = 0b_1111_11
14+
Shrine = 1 << 2,
15+
Special = 1 << 3,
16+
Drone = 1 << 4,
17+
Barrel = 1 << 5,
18+
Printer = 1 << 6,
19+
LunarPod = 1 << 7,
20+
Shop = 1 << 8,
21+
Equipment = 1 << 9,
22+
Teleporter = 1 << 10,
23+
EnemyMonster = 1 << 11,
24+
EnemyLunar = 1 << 12,
25+
EnemyVoid = 1 << 13,
26+
Minion = 1 << 14,
27+
Player = 1 << 15,
28+
Item = 1 << 16,
29+
All = 0xFFFF
2430
}
2531
}

MiniMapLibrary/Interactible/InteractibleSetting.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using MiniMapLibrary.Interfaces;
2-
using MiniMapMod.wrappers;
1+
using MiniMapLibrary.Config;
32
using System;
43
using System.Collections.Generic;
54
using System.Text;
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text;
4+
5+
namespace MiniMapLibrary
6+
{
7+
public interface ILogger
8+
{
9+
void LogDebug(object data);
10+
void LogError(object data);
11+
void LogFatal(object data);
12+
void LogInfo(object data);
13+
void LogMessage(object data);
14+
void LogWarning(object data);
15+
void LogException(Exception head, string message = "");
16+
}
17+
}
File renamed without changes.

0 commit comments

Comments
 (0)