ItemShort.SetData C# (CSharp) Méthode

SetData() public méthode

public SetData ( Hashtable ht ) : void
ht Hashtable
Résultat 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"]);
    }