當前位置: 首頁>>代碼示例>>C#>>正文


C# CraftItem.AddRes方法代碼示例

本文整理匯總了C#中Server.Engines.Craft.CraftItem.AddRes方法的典型用法代碼示例。如果您正苦於以下問題:C# CraftItem.AddRes方法的具體用法?C# CraftItem.AddRes怎麽用?C# CraftItem.AddRes使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Server.Engines.Craft.CraftItem的用法示例。


在下文中一共展示了CraftItem.AddRes方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: AddCraft

        public int AddCraft(Type typeItem, TextDefinition group, TextDefinition name, SkillName skillToMake, double minSkill, double maxSkill, Type typeRes, TextDefinition nameRes, int amount, TextDefinition message)
        {
            CraftItem craftItem = new CraftItem(typeItem, group, name);
            craftItem.AddRes(typeRes, nameRes, amount, message);
            craftItem.AddSkill(skillToMake, minSkill, maxSkill);

            this.DoGroup(group, craftItem);
            return this.m_CraftItems.Add(craftItem);
        }
開發者ID:jasegiffin,項目名稱:ServUO,代碼行數:9,代碼來源:CraftSystem.cs

示例2: AddCraft

        public int AddCraft( Type typeItem, TextDefinition group, TextDefinition name, SkillName skillToMake, double minSkill, double maxSkill, Type typeRes, TextDefinition nameRes, int amount, TextDefinition message )
        {
            CraftItem craftItem = new CraftItem( typeItem, group, name );
            craftItem.AddRes( typeRes, nameRes, amount, message );
            //craftItem.AddSkill( skillToMake, minSkill, maxSkill ); MOD TO GLOBALLY CHANGE ALL DIFFICULTIES

            if( typeof(IEasyCraft).IsAssignableFrom(typeItem) )
                craftItem.AddSkill( skillToMake, 0.0, 0.0 );

            else
                craftItem.AddSkill( skillToMake, 0.5, 105.0 );

            DoGroup( group, craftItem );
            return m_CraftItems.Add( craftItem );
        }
開發者ID:justdanofficial,項目名稱:khaeros,代碼行數:15,代碼來源:CraftSystem.cs

示例3: AddCraft

		public int AddCraft( Type typeItem, string strGroup, string strName, SkillName skillToMake, double minSkill, double maxSkill, Type typeRes, string nameRes, int amount, string strMessage)
		{
			CraftItem craftItem = new CraftItem( typeItem, strGroup, strName );
			craftItem.AddRes( typeRes, nameRes, amount, strMessage );
			craftItem.AddSkill( skillToMake, minSkill, maxSkill );

			DoGroup( strGroup, craftItem );
			return m_CraftItems.Add( craftItem );
		}
開發者ID:zerodowned,項目名稱:angelisland,代碼行數:9,代碼來源:CraftSystem.cs

示例4: AddCraft

        public CraftItem AddCraft( int index, Type typeItem, TextDefinition group, TextDefinition name, SkillName skillToMake, double minSkill, double maxSkill, Type typeRes, TextDefinition nameRes, int amount, TextDefinition message )
        {
            CraftItem craftItem = new CraftItem( typeItem, group, name );

            craftItem.AddRes( typeRes, nameRes, amount, message );
            craftItem.AddSkill( skillToMake, minSkill, maxSkill );
            craftItem.CraftId = index;

            if ( typeItem != null )
                DoGroup( group, index, craftItem );

            m_CraftItems.Add( index, craftItem );

            return craftItem;
        }
開發者ID:Ravenwolfe,項目名稱:xrunuo,代碼行數:15,代碼來源:CraftSystem.cs


注:本文中的Server.Engines.Craft.CraftItem.AddRes方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。