Ejemplo n.º 1
0
 public void Clear()
 {
     type = 0;
     number = 0;
     potion_item = null;
     buff_item = null;
     debuff_item = null;
     damage_item = null;
     script_item = null;
     material_item = null;
 }
Ejemplo n.º 2
0
 public void SetItem(Items item,int number)
 {
     Clear();
     type = item.GetType();
     switch(type)
     {
     case ItemTypes.potions:
         potion_item=(Potions)item;
         break;
     case ItemTypes.buff:
         buff_item=(BuffOrb)item;
         break;
     case ItemTypes.debuff:
         debuff_item=(DebuffOrb)item;
         break;
     case ItemTypes.damage:
         damage_item=(DamageOrb)item;
         break;
     case ItemTypes.material:
         material_item=(MaterialItem)item;
         break;
     case ItemTypes.script:
         script_item=(ScriptItem)item;
         break;
     default:
         break;
     }
 }