Exemplo n.º 1
0
    public void InheritStars(Character father, Character mother)
    {
        List <FieldInfo> fatherFieldInfos = Stars.GetType().GetFields().Where(s =>
                                                                              (int)s.GetValue(father.Stars) != 0).ToList();

        List <FieldInfo> motherFieldInfos = Stars.GetType().GetFields().Where(s =>
                                                                              (int)s.GetValue(mother.Stars) != 0).ToList();
    }