AssemblyCSharp.WeightedGroupItem.ForIndex C# (CSharp) Méthode

ForIndex() public static méthode

public static ForIndex ( int index, string type, string Name ) : WeightedGroupItem
index int
type string
Name string
Résultat WeightedGroupItem
        public static WeightedGroupItem ForIndex(int index, string type, string Name)
        {
            return new WeightedGroupItem {
                Type = type,
                Name = Name,
                Weight = 1.0f - (index * 0.25f)
            };
        }
WeightedGroupItem