예제 #1
0
 public Asda2ItemStackTemplate(Asda2ItemId id, int amount)
 {
     this = new Asda2ItemStackTemplate(Asda2ItemMgr.GetTemplate(id), amount);
     if (m_Template == null)
     {
         throw new ArgumentException("id " + id + " is invalid.");
     }
 }
예제 #2
0
 public Asda2ItemStackTemplate(Asda2ItemId id)
 {
     this = new Asda2ItemStackTemplate(Asda2ItemMgr.GetTemplate(id), 1);
     if (this.m_Template == null)
     {
         throw new ArgumentException("ItemId " + (object)id + " is invalid.");
     }
 }
예제 #3
0
 public Asda2ItemStackTemplate(Asda2ItemTemplate templ)
 {
     this = new Asda2ItemStackTemplate(templ, templ.MaxAmount);
 }