Ejemplo n.º 1
0
    void Swap(Slottable targetSlottable)
    {
        SlotGroup targetSG = targetSlottable.m_OrigSG;

        targetSG.RemoveItemFromData(targetSlottable, targetSlottable.m_Quantity);
        this.m_OrigSG.RemoveItemFromData(this, this.m_PickAmount);

        targetSG.AddItemToData(this, this.m_PickAmount);
        this.m_OrigSG.AddItemToData(targetSlottable, targetSlottable.m_Quantity);
    }
Ejemplo n.º 2
0
 void Add(SlotGroup sg)
 {
     sg.AddItemToData(this, this.m_PickAmount);
     this.m_OrigSG.RemoveItemFromData(this, this.m_PickAmount);
 }