示例#1
0
文件: ItemBag.cs 项目: uiopsczc/Test
 public void ClearItems()
 {
     SubDoerUtil2.ClearSubDoers <Scene>(this.parentDoer, this.subDoerKey);
 }
示例#2
0
文件: ItemBag.cs 项目: uiopsczc/Test
 public Item RemoveItem(string rid)
 {
     return(SubDoerUtil2.RemoveSubDoer <Item>(this.parentDoer, this.subDoerKey, rid));
 }
示例#3
0
文件: ItemBag.cs 项目: uiopsczc/Test
 public Item RemoveItem(Item item)
 {
     return(SubDoerUtil2.RemoveSubDoer <Item>(this.parentDoer, this.subDoerKey, item));
 }
示例#4
0
文件: ItemBag.cs 项目: uiopsczc/Test
 public Item[] RemoveItems(string id, int count)
 {
     return(SubDoerUtil2.RemoveSubDoers <Item>(this.parentDoer, this.subDoerKey, id, count,
                                               Client.instance.itemFactory));
 }
示例#5
0
文件: ItemBag.cs 项目: uiopsczc/Test
 public bool CanRemoveItems(string id, int count)
 {
     return(SubDoerUtil2.CanRemoveSubDoers(this.parentDoer, this.subDoerKey, id, count));
 }
示例#6
0
文件: ItemBag.cs 项目: uiopsczc/Test
 ////////////////////DoXXX/////////////////////////////////
 //卸载
 public void DoRelease()
 {
     SubDoerUtil2.DoReleaseSubDoer <Item>(this.parentDoer, this.subDoerKey);
 }
示例#7
0
文件: ItemBag.cs 项目: uiopsczc/Test
 public void AddItem(Item item)
 {
     SubDoerUtil2.AddSubDoers(this.parentDoer, this.subDoerKey, item);
 }
示例#8
0
文件: ItemBag.cs 项目: uiopsczc/Test
 public int GetItemCount(string id)
 {
     return(SubDoerUtil2.GetSubDoerCount <Item>(this.parentDoer, this.subDoerKey, id));
 }
示例#9
0
文件: ItemBag.cs 项目: uiopsczc/Test
 public bool HasItem(string id)
 {
     return(SubDoerUtil2.HasSubDoers <Item>(this.parentDoer, this.subDoerKey, id));
 }
示例#10
0
文件: ItemBag.cs 项目: uiopsczc/Test
 public string[] GetItemIds()
 {
     return(SubDoerUtil2.GetSubDoerIds(this.parentDoer, this.subDoerKey));
 }
示例#11
0
文件: ItemBag.cs 项目: uiopsczc/Test
 public Item[] GetItemsOfTypes(string type1, string type2 = null)
 {
     return(SubDoerUtil2.GetSubDoers <Item>(this.parentDoer, this.subDoerKey, null,
                                            (item) => this.__FilterType(item, type1, type2)));
 }
示例#12
0
文件: ItemBag.cs 项目: uiopsczc/Test
 //获得指定的镶物
 public Item GetItem(string idOrRid)
 {
     return(SubDoerUtil2.GetSubDoer <Item>(this.parentDoer, this.subDoerKey, idOrRid));
 }
示例#13
0
文件: ItemBag.cs 项目: uiopsczc/Test
 public ArrayList GetItems_ToEdit(string id)         //可以直接插入删除
 {
     return(SubDoerUtil2.GetSubDoers_ToEdit(this.parentDoer, this.subDoerKey, id));
 }
示例#14
0
文件: ItemBag.cs 项目: uiopsczc/Test
 public Item[] GetItems(string id = null)
 {
     return(SubDoerUtil2.GetSubDoers <Item>(this.parentDoer, this.subDoerKey, id, null));
 }