33using System . Linq ;
44using System . Text ;
55using System . Threading . Tasks ;
6+ using UnityEngine ;
67
78namespace MiniMapLibrary
89{
@@ -12,24 +13,21 @@ public static class Settings
1213
1314 public static Dimension2D ViewfinderSize { get ; set ; } = new Dimension2D ( 10 , 100 ) ;
1415
15- public static IDictionary < string , Interactable > InteractableDefinitions { get ; } = new Dictionary < string , Interactable > ( ) ;
16-
1716 public static IDictionary < InteractableKind , Dimension2D > InteractableSizes { get ; } = new Dictionary < InteractableKind , Dimension2D > ( ) ;
1817
1918 private static readonly Dimension2D DefaultUIElementSize = new Dimension2D ( 10 , 10 ) ;
2019
20+ public static Color PlayerIconColor { get ; set ; } = Color . white ;
21+
22+ public static Color DefaultIconColor { get ; set ; } = Color . yellow ;
23+
2124 static Settings ( )
2225 {
2326 InitializeDefaultSettings ( ) ;
2427 }
2528
2629 private static void InitializeDefaultSettings ( )
2730 {
28- void Add ( string key , InteractableKind type )
29- {
30- InteractableDefinitions . Add ( key , new Interactable ( key , type ) ) ;
31- }
32-
3331 void AddSize ( InteractableKind type , float width = - 1 , float height = - 1 )
3432 {
3533 Dimension2D size = DefaultUIElementSize ;
@@ -46,47 +44,11 @@ void AddSize(InteractableKind type, float width = -1, float height = -1)
4644 AddSize ( InteractableKind . Shrine ) ;
4745 AddSize ( InteractableKind . Teleporter ) ;
4846 AddSize ( InteractableKind . Player ) ;
47+ AddSize ( InteractableKind . Barrel , 5 , 5 ) ;
48+ AddSize ( InteractableKind . Drone ) ;
4949 AddSize ( InteractableKind . Primary ) ;
5050 AddSize ( InteractableKind . Special ) ;
5151 AddSize ( InteractableKind . Utility ) ;
52-
53- Add ( "ShrineCombat" , InteractableKind . Shrine ) ;
54- Add ( "ShrineBlood" , InteractableKind . Shrine ) ;
55- Add ( "ShrineChance" , InteractableKind . Shrine ) ;
56- Add ( "ShrineBoss" , InteractableKind . Shrine ) ;
57-
58- Add ( "Teleporter" , InteractableKind . Teleporter ) ;
59-
60- Add ( "GoldshoresBeacon" , InteractableKind . Special ) ;
61- Add ( "NullSafeZone" , InteractableKind . Special ) ;
62-
63- Add ( "TripleShop" , InteractableKind . Chest ) ;
64- Add ( "LunarChest" , InteractableKind . Chest ) ;
65- Add ( "Chest" , InteractableKind . Chest ) ;
66- Add ( "Duplicator" , InteractableKind . Chest ) ;
67- Add ( "EquipmentBarrel" , InteractableKind . Chest ) ;
68- Add ( "GoldChest" , InteractableKind . Chest ) ;
69- Add ( "CategoryChestDamage" , InteractableKind . Chest ) ;
70- Add ( "CategoryChestHealing" , InteractableKind . Chest ) ;
71- Add ( "CategoryChestUtility" , InteractableKind . Chest ) ;
72-
73- Add ( "Scrapper" , InteractableKind . Utility ) ;
74- Add ( "NewtStatue" , InteractableKind . Utility ) ;
75- Add ( "Barrel" , InteractableKind . Utility ) ;
76- Add ( "Drone1Broken" , InteractableKind . Utility ) ;
77- Add ( "MissleDroneBroken" , InteractableKind . Utility ) ;
78- Add ( "EquipmentDroneBroken" , InteractableKind . Utility ) ;
79- }
80-
81- public static InteractableKind GetInteractableType ( string Name )
82- {
83-
84- if ( InteractableDefinitions . ContainsKey ( Name ) )
85- {
86- return InteractableDefinitions [ Name ] . InteractableType ;
87- }
88-
89- return InteractableKind . none ;
9052 }
9153
9254 public static Dimension2D GetInteractableSize ( InteractableKind type )
0 commit comments