本文整理匯總了C#中ServerEngine.PacketEngine.Packet.Skip方法的典型用法代碼示例。如果您正苦於以下問題:C# Packet.Skip方法的具體用法?C# Packet.Skip怎麽用?C# Packet.Skip使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ServerEngine.PacketEngine.Packet
的用法示例。
在下文中一共展示了Packet.Skip方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: RecvBuyItem
public static BuyItemInfo RecvBuyItem(Packet p)
{
p.Skip(2);
int npcid = p.ReadInt();
short wref = p.ReadShort();
p.Skip(2);
short amount = p.ReadShort();
p.Skip(2);
byte bag = p.ReadByte();
BuyItemInfo i = new BuyItemInfo
{
NpcID = npcid,
ReferenceID = wref,
Amount = amount,
Bag = bag
};
return i;
}
示例2: RecvAddStatRequest
public static AddStatInfo RecvAddStatRequest(Packet p)
{
p.Skip(2);
byte stat = p.ReadByte();
byte amount = p.ReadByte();
AddStatInfo asi = new AddStatInfo
{
Stat = stat,
Amount = amount
};
return asi;
}
示例3: RecvAddItemToShop
public static AddItemToShopInfo RecvAddItemToShop(Packet p)
{
p.Skip(2);
byte frombag = p.ReadByte();
byte fromslot = p.ReadByte();
int itemid = p.ReadInt();
byte slot = p.ReadByte();
int price = p.ReadInt();
AddItemToShopInfo i = new AddItemToShopInfo
{
FromBag = frombag,
FromSlot = fromslot,
ItemID = itemid,
Slot = slot,
Price = price
};
return i;
}
示例4: RecvAcceptImbueItem
public static AcceptImbueItem RecvAcceptImbueItem(Packet p)
{
p.Skip(2);
int NpcID = p.ReadInt();
int toImbueID = p.ReadInt();
byte toImbueBag = p.ReadByte();
byte toImbueSlot = p.ReadByte();
int imbueItem1ID = p.ReadInt();
byte imbueItem1Bag = p.ReadByte();
byte imbueItem1Slot = p.ReadByte();
int imbueItem2ID = p.ReadInt();
byte imbueItem2Bag = p.ReadByte();
byte imbueItem2Slot = p.ReadByte();
int imbueItem3ID = p.ReadInt();
byte imbueItem3Bag = p.ReadByte();
byte imbueItem3Slot = p.ReadByte();
AcceptImbueItem i = new AcceptImbueItem
{
NpcID = NpcID,
ToImbueItemID = toImbueID,
ToImbueItemBag = toImbueBag,
ToImbueItemSlot = toImbueSlot,
ImbueItem1ID = imbueItem1ID,
ImbueItem1Bag = imbueItem1Bag,
ImbueItem1Slot = imbueItem1Slot,
ImbueItem2ID = imbueItem2ID,
ImbueItem2Bag = imbueItem2Bag,
ImbueItem2Slot = imbueItem2Slot,
ImbueItem3ID = imbueItem3ID,
ImbueItem3Bag = imbueItem3Bag,
ImbueItem3Slot = imbueItem3Slot
};
return i;
}
示例5: RecvAddItemToWarehouse
public static AddItemToWarehouseInfo RecvAddItemToWarehouse(Packet p)
{
p.Skip(2);
int charid = p.ReadInt();
int itemid = p.ReadInt();
byte frombag = p.ReadByte();
byte fromslot = p.ReadByte();
byte toslot = p.ReadByte();
byte tobag = p.ReadByte();
AddItemToWarehouseInfo i = new AddItemToWarehouseInfo
{
CharacterID = charid,
ItemID = itemid,
FromBag = frombag,
FromSlot = fromslot,
ToBag = tobag,
ToSlot = toslot
};
return i;
}
示例6: RecvStopMoving
public static MovementInfo RecvStopMoving(Packet p)
{
p.Skip(2);
int charid = p.ReadInt();
short from_x = p.ReadShort();
short from_y = p.ReadShort();
byte from_z = p.ReadByte();
MovementInfo mi = new MovementInfo
{
PacketID = 3,
CharacterID = charid,
FromX = from_x,
FromY = from_y,
FromZ = from_z,
};
return mi;
}
示例7: RecvStartMoving
public static MovementInfo RecvStartMoving(Packet p)
{
p.Skip(2);
int charid = p.ReadInt();
short from_x = p.ReadShort();
short from_y = p.ReadShort();
byte from_z = p.ReadByte();
short to_x = p.ReadShort();
short to_y = p.ReadShort();
byte to_z = p.ReadByte();
short direction = p.ReadShort();
MovementInfo mi = new MovementInfo
{
PacketID = 1,
CharacterID = charid,
FromX = from_x,
FromY = from_y,
FromZ = from_z,
ToX = to_x,
ToY = to_y,
ToZ = to_z,
Rotation = direction
};
return mi;
}
示例8: RecvSkillListRequest
public static int RecvSkillListRequest(Packet p)
{
p.Skip(2);
int skill = p.ReadByte();
return skill;
}
示例9: RecvNpcTrade
public static NpcTradeInfo RecvNpcTrade(Packet p)
{
p.Skip(2);
int map = p.ReadInt();
int npc = p.ReadInt();
byte bag = p.ReadByte();
NpcTradeInfo nti = new NpcTradeInfo
{
MapID = map,
NpcID = npc,
Bag = bag
};
return nti;
}
示例10: RecvChatMessage
public static ChatMessageInfo RecvChatMessage(Packet p)
{
p.Skip(2);
byte type = p.ReadByte();
int targetId = p.ReadInt();
string message = p.ReadString();
string targetName = p.ReadString(); // if you dont have id
ChatMessageInfo cmi = new ChatMessageInfo
{
Type = (ChatType)type,
TargetID = targetId,
Message = message,
TargetName = targetName
};
return cmi;
}
示例11: RecvChannelRequest
public static ChannelRequest RecvChannelRequest(Packet p)
{
p.Skip(2);
int worldID = p.ReadByte();
ChannelRequest c = new ChannelRequest()
{
WorldID = worldID
};
return c;
}
示例12: RecvChannelLogin
public static ChannelLogin RecvChannelLogin(Packet p)
{
p.Skip(2);
int characterID = p.ReadInt();
int accountID = p.ReadShort();
int channelID = p.ReadShort();
int worldID = p.ReadByte();
ChannelLogin u = new ChannelLogin()
{
CharacterID = characterID,
AccountID = accountID,
ChannelID = channelID,
WorldID = worldID
};
return u;
}
示例13: RecvRenamePet
public static RenamePetInfo RecvRenamePet(Packet p)
{
p.Skip(2);
int mapid = p.ReadInt();
int petid = p.ReadInt();
string newname = p.ReadString();
RenamePetInfo i = new RenamePetInfo
{
MapID = mapid,
PetID = petid,
NewName = newname
};
return i;
}
示例14: RecvPlayerPetRequest
public static PetRequestInfo RecvPlayerPetRequest(Packet p)
{
p.Skip(2);
int charid = p.ReadInt();
PetRequestInfo sr = new PetRequestInfo
{
CharacterID = charid
};
return sr;
}
示例15: RecvPetStatRequest
public static RequestPetStats RecvPetStatRequest(Packet p)
{
p.Skip(2);
int mapid = p.ReadInt();
int petid = p.ReadInt();
RequestPetStats i = new RequestPetStats
{
MapID = mapid,
PetID = petid
};
return i;
}