/// <summary> /// <para>Creates a new <see cref="CustomName"/> with the specified <paramref name="id"/>, <paramref name="type"/> and <paramref name="info"/>.</para> /// </summary> public static CustomName CreateCustomName(string id, string type, CustomNameInfo info) { CustomName customName = GetCustomName(id, type); if (customName != null) { string message = string.Concat("A CustomName with Id \"", id, "\" and Type \"", type, "\" already exists!"); Logger.LogError(message); throw new ArgumentException(message, nameof(id)); } CustomNames.Add(customName = new CustomName(id, type, info)); Logger.LogDebug(string.Concat("A CustomName with Id \"", id, "\" and Type \"", type, "\" was created.")); return(customName); }
internal CustomUnlock(string id, CustomName name, CustomName description) { Id = id; Name = name; Description = description; }
internal CustomItem(string id, CustomName name, CustomName description) : base(id, name, description) { }
internal CustomMutator(string id, CustomName name, CustomName description) : base(id, name, description) { }
internal CustomAbility(string id, CustomName name, CustomName description) : base(id, name, description) { }