Beispiel #1
0
        /// <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);
        }
Beispiel #2
0
 internal CustomUnlock(string id, CustomName name, CustomName description)
 {
     Id          = id;
     Name        = name;
     Description = description;
 }
Beispiel #3
0
 internal CustomItem(string id, CustomName name, CustomName description) : base(id, name, description)
 {
 }
Beispiel #4
0
 internal CustomMutator(string id, CustomName name, CustomName description) : base(id, name, description)
 {
 }
Beispiel #5
0
 internal CustomAbility(string id, CustomName name, CustomName description) : base(id, name, description)
 {
 }