本文整理汇总了C#中GameClient.AddEquipment方法的典型用法代码示例。如果您正苦于以下问题:C# GameClient.AddEquipment方法的具体用法?C# GameClient.AddEquipment怎么用?C# GameClient.AddEquipment使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GameClient
的用法示例。
在下文中一共展示了GameClient.AddEquipment方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LoadEquipment
public void LoadEquipment(GameClient Client)
{
SQLiteCommand Command = GetConnection().CreateCommand();
Command.CommandText = "SELECT * FROM Equipments WHERE EntityUID = @UID;";
Command.Parameters.Add("@UID", DbType.Int32).Value = Client.Entity.UID;
SQLiteDataReader Reader = Command.ExecuteReader();
while (Reader.Read())
{
ConquerItem Item = new ConquerItem(Client);
Item.ID = Convert.ToUInt32(Reader["ItemID"]);
Item.Plus = Convert.ToByte(Reader["Plus"]);
Item.SocketOne = Convert.ToByte(Reader["SocketOne"]);
Item.SocketTwo = Convert.ToByte(Reader["SocketTwo"]);
Item.Mode = Convert.ToUInt16(Reader["Mode"]);
Item.Durability = Convert.ToUInt16(Reader["Durability"]);
Item.MaxDurability = Convert.ToUInt16(Reader["MaxDurability"]);
Item.Effect = Convert.ToUInt16(Reader["Effect"]);
Item.Position = (ItemPosition)Convert.ToByte(Reader["Position"]);
Client.AddEquipment(Item, Item.Position);
}
Reader.Close();
}