Example #1
0
 //获得指定的角色
 public Role GetRole(string idOrRid)
 {
     return(SubDoerUtil1.GetSubDoer <Role>(this.parentDoer, this.subDoerKey, idOrRid));
 }
Example #2
0
 //清除所有角色
 public void ClearRoles()
 {
     SubDoerUtil1.ClearSubDoers <Role>(this.parentDoer, this.subDoerKey,
                                       (role) => { ((User)this.parentDoer).RemoveRole(role); });
 }
Example #3
0
        //////////////////////////OnXXX//////////////////////////////////////////////////


        ////////////////////////////////////////////////////////////////////////////
        public Mission[] GetMissions(string id = null)
        {
            return(SubDoerUtil1.GetSubDoers <Mission>(this.parentDoer, this.subDoerKey, id, null));
        }
Example #4
0
 public bool HasMissions()
 {
     return(SubDoerUtil1.HasSubDoers <Mission>(this.parentDoer, this.subDoerKey));
 }
Example #5
0
        ////////////////////////////OnXXX////////////////////////////////////////////////


        ////////////////////////////////////////////////////////////////////////////
        //获得指定的装备
        public Item[] GetEquips(string id = null)
        {
            return(SubDoerUtil1.GetSubDoers <Item>(this.parentDoer, this.subDoerKey, id, null));
        }
Example #6
0
 public void ClearMissions()
 {
     SubDoerUtil1.ClearSubDoers <Mission>(this.parentDoer, this.subDoerKey, (mission) => { });
 }
Example #7
0
 //清除所有镶物
 public void ClearEquips()
 {
     SubDoerUtil1.ClearSubDoers <Item>(this.parentDoer, this.subDoerKey,
                                       (equip) => { ((Critter)this.parentDoer).TakeOffEquip(equip); });
 }
Example #8
0
 public ArrayList GetRoles_ToEdit()         //可以直接插入删除
 {
     return(SubDoerUtil1.GetSubDoers_ToEdit(this.parentDoer, this.subDoerKey));
 }
Example #9
0
 //是否有指定种类装备
 public int GetEquipsCountOfTypes(string type1, string type2 = null)
 {
     return(SubDoerUtil1.GetSubDoersCount <Item>(this.parentDoer, this.subDoerKey, null,
                                                 (equip) => this.__FilterType(equip, type1, type2)));
 }
Example #10
0
 //获得指定的装备
 public Item GetEquip(string idOrRid)
 {
     return(SubDoerUtil1.GetSubDoer <Item>(this.parentDoer, this.subDoerKey, idOrRid));
 }
Example #11
0
 //是否有指定种类装备
 public bool HasEquipsOfTypes(string type1, string type2 = null)
 {
     return(SubDoerUtil1.HasSubDoers <Item>(this.parentDoer, this.subDoerKey, null,
                                            (equip) => this.__FilterType(equip, type1, type2)));
 }
Example #12
0
 public int GetEquipsCount()
 {
     return(SubDoerUtil1.GetSubDoersCount <Item>(this.parentDoer, this.subDoerKey));
 }
Example #13
0
 //是否有装备
 public bool HasEquips()
 {
     return(SubDoerUtil1.HasSubDoers <Item>(this.parentDoer, this.subDoerKey));
 }
Example #14
0
 ////////////////////DoXXX/////////////////////////////////
 //卸载
 public void DoRelease()
 {
     SubDoerUtil1.DoReleaseSubDoer <Role>(this.parentDoer, this.subDoerKey);
 }
Example #15
0
 public int GetMissionsCount()
 {
     return(SubDoerUtil1.GetSubDoersCount <Mission>(this.parentDoer, this.subDoerKey));
 }
Example #16
0
        //////////////////////////OnXXX//////////////////////////////////////////////////


        ////////////////////////////////////////////////////////////////////////////
        //获得指定的角色
        public Role[] GetRoles(string id = null)
        {
            return(SubDoerUtil1.GetSubDoers <Role>(this.parentDoer, this.subDoerKey, id, null));
        }
Example #17
0
 public Mission GetMission(string idOrRid)
 {
     return(SubDoerUtil1.GetSubDoer <Mission>(this.parentDoer, this.subDoerKey, idOrRid));
 }
Example #18
0
 public int GetRolesCount()
 {
     return(SubDoerUtil1.GetSubDoersCount <Role>(this.parentDoer, this.subDoerKey));
 }
Example #19
0
 //清除所有镶物
 public void ClearEmbeds()
 {
     SubDoerUtil1.ClearSubDoers <Item>(this.parentDoer, this.subDoerKey,
                                       (embed) => { ((Item)this.parentDoer).EmbedOff(embed); });
 }