SetRoleItemInfo() public method

public SetRoleItemInfo ( GameStruct info ) : void
info GameStruct
return void
Exemplo n.º 1
0
 //添加掉落道具信息
 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();
 }
Exemplo n.º 2
0
        //添加掉落道具信息
        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();
        }