ItemShort.SetData C# (CSharp) Method

SetData() public method

public SetData ( Hashtable ht ) : void
ht Hashtable
return void
    public void SetData(Hashtable ht)
    {
        if(ht.ContainsKey("ismoney")) this.isMoney = true;
        else
        {
            this.type = (ItemDropType)System.Enum.Parse(typeof(ItemDropType), (string)ht["type"]);
            this.id = int.Parse((string)ht["itemid"]);
        }
        this.quantity = int.Parse((string)ht["quantity"]);
    }