コード例 #1
0
    public PartySystem()
    {
        _party       = new CritterGroup();
        _selected    = new CritterGroup();
        _pcs         = new CritterGroup();
        _npcs        = new CritterGroup();
        _aiFollowers = new CritterGroup();

        _selected.Comparer = new SelectedMemberComparer(_party);
        _party.Comparer    = new PartyMemberComparer(_aiFollowers, _party);

        Reset();
    }
コード例 #2
0
 public PartyMemberComparer(CritterGroup aiFollowers, CritterGroup party)
 {
     _aiFollowers = aiFollowers;
     _party       = party;
 }
コード例 #3
0
 public SelectedMemberComparer(CritterGroup party)
 {
     _party = party;
 }