添加物品

物品
服务端
Both Mobile and PC

为玩家添加物品,返回发放的物品列表

声明

func AddItem(target entity<Player>, item ItemIDType, count int, out var createdEntity List<entity<Entity>>)
go

参数

输入

名称 类型 描述
目标 Player 玩家
物品 ItemGoodsIDType 物品ID
数量 Int 物品数量

输出

名称 类型 描述
创建的实体 ListT_Entity 为玩家添加的物品列表,即使只添加一个物品也以列表返回