Skip to content

Commit 33f2b4d

Browse files
committed
updated version, disabled naming warnings explcitly for unity variables within minimap and tracked object classes
1 parent 616ef36 commit 33f2b4d

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

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

MiniMapMod/ITrackedObject.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ namespace MiniMapMod
55
{
66
public interface ITrackedObject
77
{
8+
// ignore naming violation, name was chosen because unity style uses the same name
9+
#pragma warning disable IDE1006
810
GameObject gameObject { get; set; }
11+
#pragma warning restore IDE1006
912
InteractableKind InteractableType { get; set; }
1013
RectTransform MinimapTransform { get; set; }
1114
bool DynamicObject { get; set; }

MiniMapMod/MiniMapPlugin.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace MiniMapMod
1313
{
14-
[BepInPlugin("MiniMap", "Mini Map Mod", "3.1.6")]
14+
[BepInPlugin("MiniMap", "Mini Map Mod", "3.2.0")]
1515
public class MiniMapPlugin : BaseUnityPlugin
1616
{
1717
private readonly ISpriteManager SpriteManager = new SpriteManager();

MiniMapMod/Minimap.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ namespace MiniMapLibrary
1111
{
1212
public class Minimap
1313
{
14+
// ignore naming violation, name was chosen because unity style uses the same name
15+
#pragma warning disable IDE1006
1416
public static GameObject gameObject { get; private set; }
17+
#pragma warning restore IDE1006
1518

1619
public static GameObject Container { get; private set; }
1720

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "MiniMapMod",
3-
"version_number": "3.1.6",
3+
"version_number": "3.2.0",
44
"website_url": "https://github.com/DekuDesu",
55
"description": "Adds a MiniMap to your game v3.1",
66
"dependencies": [

0 commit comments

Comments
 (0)