本文整理汇总了C#中BlueSheep.Common.IO.BigEndianReader.ReadUTF方法的典型用法代码示例。如果您正苦于以下问题:C# BigEndianReader.ReadUTF方法的具体用法?C# BigEndianReader.ReadUTF怎么用?C# BigEndianReader.ReadUTF使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BlueSheep.Common.IO.BigEndianReader
的用法示例。
在下文中一共展示了BigEndianReader.ReadUTF方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public override void Deserialize(BigEndianReader reader)
{
collectorName = reader.ReadUTF();
worldX = reader.ReadShort();
if (worldX < -255 || worldX > 255)
throw new Exception("Forbidden value on worldX = " + worldX + ", it doesn't respect the following condition : worldX < -255 || worldX > 255");
worldY = reader.ReadShort();
if (worldY < -255 || worldY > 255)
throw new Exception("Forbidden value on worldY = " + worldY + ", it doesn't respect the following condition : worldY < -255 || worldY > 255");
mapId = reader.ReadInt();
subAreaId = reader.ReadVarShort();
if (subAreaId < 0)
throw new Exception("Forbidden value on subAreaId = " + subAreaId + ", it doesn't respect the following condition : subAreaId < 0");
userName = reader.ReadUTF();
experience = reader.ReadDouble();
if (experience < -9.007199254740992E15 || experience > 9.007199254740992E15)
throw new Exception("Forbidden value on experience = " + experience + ", it doesn't respect the following condition : experience < -9.007199254740992E15 || experience > 9.007199254740992E15");
var limit = reader.ReadUShort();
objectsInfos = new Types.ObjectItemQuantity[limit];
for (int i = 0; i < limit; i++)
{
objectsInfos[i] = new Types.ObjectItemQuantity();
objectsInfos[i].Deserialize(reader);
}
}
示例2: Deserialize
public override void Deserialize(BigEndianReader reader)
{
byte flag1 = reader.ReadByte();
self = BooleanByteWrapper.GetFlag(flag1, 0);
verbose = BooleanByteWrapper.GetFlag(flag1, 1);
position = reader.ReadSByte();
accountNickname = reader.ReadUTF();
accountId = reader.ReadInt();
if (accountId < 0)
throw new Exception("Forbidden value on accountId = " + accountId + ", it doesn't respect the following condition : accountId < 0");
playerName = reader.ReadUTF();
playerId = reader.ReadVarInt();
if (playerId < 0)
throw new Exception("Forbidden value on playerId = " + playerId + ", it doesn't respect the following condition : playerId < 0");
areaId = reader.ReadShort();
var limit = reader.ReadUShort();
socialGroups = new Types.AbstractSocialGroupInfos[limit];
for (int i = 0; i < limit; i++)
{
socialGroups[i] = Types.ProtocolTypeManager.GetInstance<Types.AbstractSocialGroupInfos>(reader.ReadShort());
socialGroups[i].Deserialize(reader);
}
playerState = reader.ReadSByte();
if (playerState < 0)
throw new Exception("Forbidden value on playerState = " + playerState + ", it doesn't respect the following condition : playerState < 0");
}
示例3: Deserialize
public override void Deserialize(BigEndianReader reader)
{
allianceName = reader.ReadUTF();
allianceTag = reader.ReadUTF();
allianceEmblem = new Types.GuildEmblem();
allianceEmblem.Deserialize(reader);
}
示例4: Deserialize
public override void Deserialize(BigEndianReader reader)
{
base.Deserialize(reader);
partyType = reader.ReadSByte();
if (partyType < 0)
throw new Exception("Forbidden value on partyType = " + partyType + ", it doesn't respect the following condition : partyType < 0");
partyName = reader.ReadUTF();
fromId = reader.ReadVarInt();
if (fromId < 0)
throw new Exception("Forbidden value on fromId = " + fromId + ", it doesn't respect the following condition : fromId < 0");
fromName = reader.ReadUTF();
leaderId = reader.ReadVarInt();
if (leaderId < 0)
throw new Exception("Forbidden value on leaderId = " + leaderId + ", it doesn't respect the following condition : leaderId < 0");
var limit = reader.ReadUShort();
members = new Types.PartyInvitationMemberInformations[limit];
for (int i = 0; i < limit; i++)
{
members[i] = new Types.PartyInvitationMemberInformations();
members[i].Deserialize(reader);
}
limit = reader.ReadUShort();
guests = new Types.PartyGuestInformations[limit];
for (int i = 0; i < limit; i++)
{
guests[i] = new Types.PartyGuestInformations();
guests[i].Deserialize(reader);
}
}
示例5: Deserialize
public override void Deserialize(BigEndianReader reader)
{
filenameHash = reader.ReadUTF();
type = reader.ReadSByte();
if (type < 0)
throw new Exception("Forbidden value on type = " + type + ", it doesn't respect the following condition : type < 0");
value = reader.ReadUTF();
}
示例6: Deserialize
public override void Deserialize(BigEndianReader reader)
{
errorId = reader.ReadSByte();
if (errorId < 0)
throw new Exception("Forbidden value on errorId = " + errorId + ", it doesn't respect the following condition : errorId < 0");
message = reader.ReadUTF();
helpUrl = reader.ReadUTF();
}
示例7: Deserialize
public virtual void Deserialize(BigEndianReader reader)
{
modelId = reader.ReadSByte();
if (modelId < 0)
throw new Exception("Forbidden value on modelId = " + modelId + ", it doesn't respect the following condition : modelId < 0");
name = reader.ReadUTF();
ownerName = reader.ReadUTF();
}
示例8: Deserialize
public override void Deserialize(BigEndianReader reader)
{
lockDuration = reader.ReadByte();
if (lockDuration < 0 || lockDuration > 255)
throw new Exception("Forbidden value on lockDuration = " + lockDuration + ", it doesn't respect the following condition : lockDuration < 0 || lockDuration > 255");
author = reader.ReadUTF();
content = reader.ReadUTF();
}
示例9: Deserialize
public override void Deserialize(BigEndianReader reader)
{
channel = reader.ReadSByte();
if (channel < 0)
throw new Exception("Forbidden value on channel = " + channel + ", it doesn't respect the following condition : channel < 0");
content = reader.ReadUTF();
timestamp = reader.ReadInt();
if (timestamp < 0)
throw new Exception("Forbidden value on timestamp = " + timestamp + ", it doesn't respect the following condition : timestamp < 0");
fingerprint = reader.ReadUTF();
}
示例10: Deserialize
public override void Deserialize(BigEndianReader reader)
{
name = reader.ReadUTF();
worldX = reader.ReadShort();
if (worldX < -255 || worldX > 255)
throw new Exception("Forbidden value on worldX = " + worldX + ", it doesn't respect the following condition : worldX < -255 || worldX > 255");
worldY = reader.ReadShort();
if (worldY < -255 || worldY > 255)
throw new Exception("Forbidden value on worldY = " + worldY + ", it doesn't respect the following condition : worldY < -255 || worldY > 255");
liberator = reader.ReadUTF();
}
示例11: Deserialize
public override void Deserialize(BigEndianReader reader)
{
byte flag1 = reader.ReadByte();
ssl = BooleanByteWrapper.GetFlag(flag1, 0);
canCreateNewCharacter = BooleanByteWrapper.GetFlag(flag1, 1);
serverId = reader.ReadVarShort();
if (serverId < 0)
throw new Exception("Forbidden value on serverId = " + serverId + ", it doesn't respect the following condition : serverId < 0");
address = reader.ReadUTF();
port = reader.ReadUShort();
if (port < 0 || port > 65535)
throw new Exception("Forbidden value on port = " + port + ", it doesn't respect the following condition : port < 0 || port > 65535");
ticket = reader.ReadUTF();
}
示例12: method_0
private Delegate0 method_0(int int_0, BigEndianReader dofusReader_0)
{
switch (int_0)
{
case -1:
return new Delegate0(this.method_9);
case -2:
return new Delegate0(this.method_10);
case -3:
return new Delegate0(this.method_5);
case -4:
return new Delegate0(this.method_11);
case -5:
return new Delegate0(this.method_12);
case -6:
return new Delegate0(this.method_13);
case -99:
string str = dofusReader_0.ReadUTF();
this.class17_0 = new Class17(str, dofusReader_0);
return new Delegate0(this.method_1);
}
if ((int_0 > 0))
{
return new Delegate0(this.method_2);
}
return null;
}
示例13: Deserialize
public override void Deserialize(BigEndianReader reader)
{
recrutedName = reader.ReadUTF();
invitationState = reader.ReadSByte();
if (invitationState < 0)
throw new Exception("Forbidden value on invitationState = " + invitationState + ", it doesn't respect the following condition : invitationState < 0");
}
示例14: Deserialize
public virtual void Deserialize(BigEndianReader reader)
{
//houseId = reader.ReadInt();
houseId = reader.ReadVarInt();
if (houseId < 0)
throw new Exception("Forbidden value on houseId = " + houseId + ", it doesn't respect the following condition : houseId < 0");
modelId = reader.ReadVarInt();
if (modelId < 0)
throw new Exception("Forbidden value on modelId = " + modelId + ", it doesn't respect the following condition : modelId < 0");
ownerName = reader.ReadUTF();
worldX = reader.ReadShort();
if (worldX < -255 || worldX > 255)
throw new Exception("Forbidden value on worldX = " + worldX + ", it doesn't respect the following condition : worldX < -255 || worldX > 255");
worldY = reader.ReadShort();
if (worldY < -255 || worldY > 255)
throw new Exception("Forbidden value on worldY = " + worldY + ", it doesn't respect the following condition : worldY < -255 || worldY > 255");
mapId = reader.ReadInt();
subAreaId = reader.ReadVarShort();
if (subAreaId < 0)
throw new Exception("Forbidden value on subAreaId = " + subAreaId + ", it doesn't respect the following condition : subAreaId < 0");
var limit = reader.ReadUShort();
skillListIds = new int[limit];
for (int i = 0; i < limit; i++)
{
skillListIds[i] = reader.ReadInt();
}
guildshareParams = reader.ReadVarInt();
if (guildshareParams < 0)
throw new Exception("Forbidden value on guildshareParams = " + guildshareParams + ", it doesn't respect the following condition : guildshareParams < 0");
}
示例15: Deserialize
public virtual void Deserialize(BigEndianReader reader)
{
teamId = reader.ReadSByte();
if (teamId < 0)
throw new Exception("Forbidden value on teamId = " + teamId + ", it doesn't respect the following condition : teamId < 0");
partyName = reader.ReadUTF();
}