//添加掉落道具信息 public void AddDropItemObj(uint itemid,short x,short y,uint ownerid = 0,int time = 120000,GameStruct.RoleItemInfo info = null,RoleData_Eudemon eudemon = null) { DropItemObject obj = new DropItemObject(itemid, x, y,ownerid, time); obj.SetRoleItemInfo(info); obj.SetRoleEudemonInfo(eudemon); AddObject(obj); obj.RefreshVisibleObject(); //广播给玩家 obj.BroadcastInfo(); }
//添加掉落道具信息 public void AddDropItemObj(uint itemid, short x, short y, uint ownerid = 0, int time = 120000, GameStruct.RoleItemInfo info = null, RoleData_Eudemon eudemon = null) { DropItemObject obj = new DropItemObject(itemid, x, y, ownerid, time); obj.SetRoleItemInfo(info); obj.SetRoleEudemonInfo(eudemon); AddObject(obj); obj.RefreshVisibleObject(); //广播给玩家 obj.BroadcastInfo(); }