Server.Items.RepairDeed.GetTypeFor C# (CSharp) Méthode

GetTypeFor() public static méthode

public static GetTypeFor ( CraftSystem s ) : RepairSkillType
s Server.Engines.Craft.CraftSystem
Résultat RepairSkillType
		public static RepairSkillType GetTypeFor( CraftSystem s )
		{
			for( int i = 0; i < RepairSkillInfo.Table.Length; i++ )
			{
				if( RepairSkillInfo.Table[i].System == s )
					return (RepairSkillType)i;
			}

			return RepairSkillType.Smithing;
		}