Ejemplo n.º 1
0
        public void Equip(string id, Roar.Callback <Roar.WebObjects.Items.EquipResponse> callback)
        {
            var item = dataStore.inventory.Get(id);

            if (item == null)
            {
                logger.DebugLog("[roar] -- Failed: no record with id: " + id);
                return;
            }


            Roar.WebObjects.Items.EquipArguments args = new Roar.WebObjects.Items.EquipArguments();
            args.item_id = id;

            itemActions.equip(args, new EquipCallback(callback, this, id));
        }
Ejemplo n.º 2
0
 public void equip(Roar.WebObjects.Items.EquipArguments args, ZWebAPI.Callback <Roar.WebObjects.Items.EquipResponse> cb)
 {
     api.MakeCall("items/equip", args.ToHashtable(), new CallbackBridge <Roar.WebObjects.Items.EquipResponse>(cb, equip_response_parser), true);
 }