コード例 #1
0
        private static bool AddModCollision(GameModification mod, string actionDescription, string collisionReasonDescription, string collidingModID, ModCollisionSeverity severity, out ModCollision collision, string suffix = "")
        {
            string modPrefix = $"Mod collision detected while installing mod ({mod.Config.ModID})";

            collision = new ModCollision(collidingModID, severity, $"{modPrefix}: Attempting to {actionDescription} that has been {collisionReasonDescription} another mod{(string.IsNullOrEmpty(suffix) ? "" : $" {suffix}")} (conflicting mod: {collidingModID})");
コード例 #2
0
 public ModCollision(string modID, ModCollisionSeverity severity, string description)
 {
     this.modID       = modID;
     this.severity    = severity;
     this.description = description;
 }
コード例 #3
0
        private static bool AddModCollision(GameModification mod, ModInstallActionEnum action, string collisionReasonDescription, string collidingModID, ModCollisionSeverity severity, out ModCollision collision, string suffix = "")
        {
            string actionDescription = GetModificationDescription(action);

            return(AddModCollision(mod, actionDescription, collisionReasonDescription, collidingModID, severity, out collision, suffix: suffix));
        }