コード例 #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);
        }
コード例 #2
0
ファイル: CustomUnlock.cs プロジェクト: Freiling87/RogueLibs
 internal CustomUnlock(string id, CustomName name, CustomName description)
 {
     Id          = id;
     Name        = name;
     Description = description;
 }
コード例 #3
0
ファイル: CustomItem.cs プロジェクト: Freiling87/RogueLibs
 internal CustomItem(string id, CustomName name, CustomName description) : base(id, name, description)
 {
 }
コード例 #4
0
 internal CustomMutator(string id, CustomName name, CustomName description) : base(id, name, description)
 {
 }
コード例 #5
0
ファイル: CustomAbility.cs プロジェクト: Freiling87/RogueLibs
 internal CustomAbility(string id, CustomName name, CustomName description) : base(id, name, description)
 {
 }