Exemplo n.º 1
0
 public static void RegisterAction(MapActionInformation mapActionInformation)
 {
     if (GlobalActions.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.");
     }
     GlobalActions.Add(mapActionInformation);
 }
Exemplo n.º 2
0
 public static void RegisterAction(string MapName, MapActionInformation mapActionInformation)
 {
     if (!MapActions.ContainsKey(MapName))
     {
         MapActions[MapName] = new List <MapActionInformation>();
     }
     MapActions[MapName].Add(mapActionInformation);
 }