本文整理汇总了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);
}
}
}
示例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);
}
示例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);
}
}
示例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;
}
示例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);
}
示例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);
}
示例7: AddItem
public bool AddItem(ItemInfo item, int minSlot)
{
if (item == null) return false;
int place = FindFirstEmptySlot(minSlot);
return AddItemTo(item, place);
}
示例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);
}
示例9: RemoveItem
public override int RemoveItem(ItemInfo item)
{
int place = base.RemoveItem(item);
if (place != -1)
{
_player.Out.SendUpdatePropInventorySlot(place, false, 0);
}
return place;
}
示例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;
}
示例11: Execute
public void Execute(GamePlayer player, ItemInfo item)
{
if (player.CurrentGame.Data.CurrentSpell != null)
return;
TankData data = player.CurrentGame.Data;
data.BreachDefence = true;
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}