当前位置: 首页>>代码示例>>C#>>正文


C# Data.ItemInfo类代码示例

本文整理汇总了C#中SqlDataProvider.Data.ItemInfo的典型用法代码示例。如果您正苦于以下问题:C# ItemInfo类的具体用法?C# ItemInfo怎么用?C# ItemInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ItemInfo类属于SqlDataProvider.Data命名空间,在下文中一共展示了ItemInfo类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Execute

        public void Execute(GamePlayer player, ItemInfo item)
        {
            //if (player.CurrentGame.Data.CurrentSpell != this)
            if (player.CurrentGame.Data.CurrentFire == null)
            {
                player.CurrentGame.Data.CurrentSpell = this;
                player.CurrentGame.Data.CurrentPorp = item;
                //player.CurrentGame.Data.CurrentBall = Bussiness.Managers.BallMgr.FindBall(1);
                player.CurrentGame.Data.SetCurrentBall(BallMgr.FindBall(1), false);

                player.CurrentGame.Data.AddAttack = -1;
                player.CurrentGame.Data.AddBall = 1;
            }
            else
            {
                if (player.CurrentGame.Data.Players[player].IsFrost == 0)
                {
                    IceFronzeEffect ice = new IceFronzeEffect(item.Template.Property2);
                    ice.Start(player);
                }
                else
                {
                    player.CurrentGame.Data.Players[player].SetFrost(item.Template.Property2);
                }

            }
        }
开发者ID:geniushuai,项目名称:DDTank-3.0,代码行数:27,代码来源:FrostSpell.cs

示例2: HandleGameRoomCreate

        public void HandleGameRoomCreate(GSPacketIn pkg)
        {
            int roomId = pkg.ReadInt();
            int gameType = pkg.ReadInt();
            int count = pkg.ReadInt();

            IGamePlayer[] players = new IGamePlayer[count];
            for (int i = 0; i < count; i++)
            {
                PlayerInfo info = new PlayerInfo();
                info.ID = pkg.ReadInt();
                info.Attack = pkg.ReadInt();
                info.Defence = pkg.ReadInt();
                info.Agility = pkg.ReadInt();
                info.Luck = pkg.ReadInt();

                double baseAttack = pkg.ReadDouble();
                double baseDefence = pkg.ReadDouble();
                double baseAgility = pkg.ReadDouble();
                double baseBlood = pkg.ReadDouble();
                int templateId = pkg.ReadInt();

                ItemTemplateInfo itemTemplate = ItemMgr.FindItemTemplate(templateId);
                ItemInfo item = new ItemInfo(itemTemplate);

                players[i] = new ProxyPlayer(info, item, baseAttack, baseDefence, baseAgility, baseBlood);
            }

            ProxyRoomMgr.CreateRoom(players, roomId, this);
        }
开发者ID:vancourt,项目名称:BaseGunnyII,代码行数:30,代码来源:ServerClient.cs

示例3: AddProperty

        public void AddProperty(ItemInfo item, ref int attack, ref int defence, ref int agility, ref  int lucky)
        {
            if (item != null)
            {

                if (item.Hole1 > 0)

                    AddBaseProperty(item.Hole1, ref attack, ref defence, ref agility, ref lucky);

                if (item.Hole2 > 0)
                    AddBaseProperty(item.Hole2, ref attack, ref defence, ref agility, ref lucky);

                if (item.Hole3 > 0)
                    AddBaseProperty(item.Hole3, ref attack, ref defence, ref agility, ref lucky);

                if (item.Hole4 > 0)
                    AddBaseProperty(item.Hole4, ref attack, ref defence, ref agility, ref lucky);

                if (item.Hole5 > 0)
                    AddBaseProperty(item.Hole5, ref attack, ref defence, ref agility, ref lucky);

                if (item.Hole6 > 0)
                    AddBaseProperty(item.Hole6, ref attack, ref defence, ref agility, ref lucky);

            }
        }
开发者ID:vancourt,项目名称:BaseGunnyII,代码行数:26,代码来源:PlayerEquipInventory.cs

示例4: Box

 public Box(int id,string model,ItemInfo item)
     : base(id,"",model,"",1,1)
 {
     _userID = 0;
     m_rect = new Rectangle(-15, -15, 30, 30);
     m_item = item;
 }
开发者ID:geniushuai,项目名称:DDTank-3.0,代码行数:7,代码来源:Box.cs

示例5: PropertyString

 public  void  PropertyString(ItemInfo item, ref string Property)
 {
     if (item != null)
         Property = string.Format("{0},{1},{2},{3},{4},{5},{6},{7},{8}", item.StrengthenLevel, item.Attack, item.Defence,
                    item.Agility, item.Luck, item.AttackCompose, item.DefendCompose, item.AgilityCompose, item.LuckCompose);
 
 }
开发者ID:geniushuai,项目名称:DDTank-3.0,代码行数:7,代码来源:ItemRecordBussiness.cs

示例6: Execute

        public void Execute(GamePlayer player, ItemInfo item)
        {
            TankData data = player.CurrentGame.Data;
            data.AddWound = (data.AddWound + (double)item.Template.Property2 / 100);

            GSPacketIn pkg = player.Out.SendAddWound(player);
            player.CurrentGame.SendToPlayerExceptSelf(pkg, player);
        }
开发者ID:geniushuai,项目名称:DDTank-3.0,代码行数:8,代码来源:AddWoudSpell.cs

示例7: AddItem

        public bool AddItem(ItemInfo item, int minSlot)
        {
            if (item == null) return false;

            int place = FindFirstEmptySlot(minSlot);

            return AddItemTo(item, place);
        }
开发者ID:geniushuai,项目名称:DDTank-3.0,代码行数:8,代码来源:AbstractInventory.cs

示例8: Execute

        public void Execute(GamePlayer player, ItemInfo item)
        {
            TankData data = player.CurrentGame.Data;
            data.AddMultiple = (1- (double)item.Template.Property2 / 100);

            GSPacketIn pkg = player.Out.SendShootStraight(player);
            player.CurrentGame.SendToPlayerExceptSelf(pkg, player);
        }
开发者ID:geniushuai,项目名称:DDTank-3.0,代码行数:8,代码来源:ShootStraightSpell.cs

示例9: RemoveItem

 public override int RemoveItem(ItemInfo item)
 {
     int place = base.RemoveItem(item);
     if (place != -1)
     {
         _player.Out.SendUpdatePropInventorySlot(place, false, 0);
     }
     return place;
 }
开发者ID:geniushuai,项目名称:DDTank-3.0,代码行数:9,代码来源:PropInventory.cs

示例10: AddItem

 /// <summary>
 /// 成功返回物品的位置,失败返回-1
 /// </summary>
 /// <param name="item"></param>
 /// <param name="start"></param>
 /// <returns></returns>
 public override int AddItem(ItemInfo item,int start)
 {
     int place = base.AddItem(item,start);
     if (place != -1)
     {
         _player.Out.SendUpdatePropInventorySlot(place, true, item.TemplateID);
     }
     return place;
 }
开发者ID:geniushuai,项目名称:DDTank-3.0,代码行数:15,代码来源:PropInventory.cs

示例11: Execute

        public void Execute(GamePlayer player, ItemInfo item)
        {
            if (player.CurrentGame.Data.CurrentSpell != null)
                return;

            TankData data = player.CurrentGame.Data;
            data.BreachDefence = true;

        }
开发者ID:geniushuai,项目名称:DDTank-3.0,代码行数:9,代码来源:BreachDefenceSpell.cs

示例12: Execute

        public void Execute(GamePlayer player, ItemInfo item)
        {
            //TankData data = player.CurrentGame.Data;
            //data.AttackUp *= item.Property1;
            player.CurrentGame.Data.Players[player].SetDander( item.Template.Property2);

            GSPacketIn pkg = player.Out.SendAttackUp(player);
            player.CurrentGame.SendToPlayerExceptSelf(pkg, player);
        }
开发者ID:geniushuai,项目名称:DDTank-3.0,代码行数:9,代码来源:AttackUpSpell.cs

示例13: AddItem

 public int AddItem(int showPlace, ItemInfo item)
 {
     int place = base.AddItem(item, 0);
     if (place != -1)
     {
         item.UserID = _player.PlayerCharacter.ID;
         _player.Out.SendUpdateInventorySlot(place, true, item, _bagType, showPlace);
     }
     return place;
 }
开发者ID:vancourt,项目名称:BaseGunnyII,代码行数:10,代码来源:CommonPage.cs

示例14: AddItem

 /// <summary>
 /// 从指定位置开始查找空位添加物品
 /// </summary>
 /// <param name="item"></param>
 /// <param name="start"></param>
 /// <returns></returns>
 public override int AddItem(ItemInfo item, int start)
 {
     int place = base.AddItem(item, start);
     if (place != -1)
     {
         item.UserID = _player.PlayerCharacter.ID;
         _player.Out.SendUpdateInventorySlot(place, true, item,_bagType);
     }
     return place;
 }
开发者ID:vancourt,项目名称:BaseGunnyII,代码行数:16,代码来源:CommonPage.cs

示例15: RemoveItem

 public override int RemoveItem(ItemInfo item)
 {
     int start = item.Place;
     int place = base.RemoveItem(item);
     if (place != -1)
     {
         item.Place = start;
         _player.Out.SendUpdateTempInventorySlot(place, false,null);
     }
     return place;
 }
开发者ID:vancourt,项目名称:BaseGunnyII,代码行数:11,代码来源:TempInventory.cs


注:本文中的SqlDataProvider.Data.ItemInfo类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。