Beispiel #1
0
 public static void RegisterTouchAction(MapTouchActionInformation mapActionInformation)
 {
     if (GlobalTouchActions.Contains(mapActionInformation))
     {
         Logging.Log.Warning($"Potential conflict registering new action. Action {mapActionInformation.Action} has been registered by two separate mods. Only the last registered one will be used.");
     }
     GlobalTouchActions.Add(mapActionInformation);
 }
Beispiel #2
0
 public static void RegisterTouchAction(string MapName, MapTouchActionInformation mapActionInformation)
 {
     if (!MapTouchActions.ContainsKey(MapName))
     {
         MapTouchActions[MapName] = new List <MapTouchActionInformation>();
     }
     MapTouchActions[MapName].Add(mapActionInformation);
 }