本文整理汇总了C#中IDataReader.ReadBoolean方法的典型用法代码示例。如果您正苦于以下问题:C# IDataReader.ReadBoolean方法的具体用法?C# IDataReader.ReadBoolean怎么用?C# IDataReader.ReadBoolean使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IDataReader
的用法示例。
在下文中一共展示了IDataReader.ReadBoolean方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public virtual void Deserialize(IDataReader reader)
{
playerId = reader.ReadInt();
if ( playerId < 0 )
{
throw new Exception("Forbidden value on playerId = " + playerId + ", it doesn't respect the following condition : playerId < 0");
}
playerName = reader.ReadUTF();
alignmentSide = reader.ReadSByte();
breed = reader.ReadSByte();
if ( breed < (byte)Enums.PlayableBreedEnum.Feca || breed > (byte)Enums.PlayableBreedEnum.Steamer )
{
throw new Exception("Forbidden value on breed = " + breed + ", it doesn't respect the following condition : breed < (byte)Enums.PlayableBreedEnum.Feca || breed > (byte)Enums.PlayableBreedEnum.Steamer");
}
sex = reader.ReadBoolean();
isInWorkshop = reader.ReadBoolean();
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.ReadShort();
if ( subAreaId < 0 )
{
throw new Exception("Forbidden value on subAreaId = " + subAreaId + ", it doesn't respect the following condition : subAreaId < 0");
}
}
示例2: TouchRotationCircle3D
public TouchRotationCircle3D(IDataReader state, IInputManager inputManager)
: base(state)
{
addInterface(typeof(IOrientation3D));
m_inputManager = inputManager;
m_invertY = state.ReadBoolean();
m_invertX = state.ReadBoolean();
m_scale = state.ReadSingle();
}
示例3: UserStatus
public UserStatus(IDataReader reader)
: this()
{
StatusId = reader.GetInt64(0);
StatusKey = reader.GetString(1);
ParentKey = reader.GetString(2);
ProfileId = reader.GetInt64(3);
SourceChannelId = reader.GetInt64(4);
TargetChannelId = reader.GetString(5);
ChannelStatusKey = reader.GetString(6);
From = new SourceAddress(reader.GetString(7));
To = new SourceAddress(reader.GetString(8));
Status = reader.GetString(9);
InReplyTo = reader.GetString(10);
StatusType = reader.GetInt32(11);
SearchKeyword = reader.GetString(12);
IsRead = reader.ReadBoolean(13);
SortDate = reader.ReadDateTime(14);
DateRead = reader.ReadDateTimeOrNull(15);
DateCreated = reader.ReadDateTime(16);
}
示例4: Deserialize
public override void Deserialize(IDataReader reader)
{
base.Deserialize(reader);
breed = reader.ReadSByte();
sex = reader.ReadBoolean();
rank = reader.ReadShort();
if (rank < 0)
throw new Exception("Forbidden value on rank = " + rank + ", it doesn't respect the following condition : rank < 0");
givenExperience = reader.ReadDouble();
if (givenExperience < 0)
throw new Exception("Forbidden value on givenExperience = " + givenExperience + ", it doesn't respect the following condition : givenExperience < 0");
experienceGivenPercent = reader.ReadSByte();
if (experienceGivenPercent < 0 || experienceGivenPercent > 100)
throw new Exception("Forbidden value on experienceGivenPercent = " + experienceGivenPercent + ", it doesn't respect the following condition : experienceGivenPercent < 0 || experienceGivenPercent > 100");
rights = reader.ReadUInt();
if (rights < 0 || rights > 4294967295)
throw new Exception("Forbidden value on rights = " + rights + ", it doesn't respect the following condition : rights < 0 || rights > 4294967295");
connected = reader.ReadSByte();
if (connected < 0)
throw new Exception("Forbidden value on connected = " + connected + ", it doesn't respect the following condition : connected < 0");
alignmentSide = reader.ReadSByte();
hoursSinceLastConnection = reader.ReadUShort();
if (hoursSinceLastConnection < 0 || hoursSinceLastConnection > 65535)
throw new Exception("Forbidden value on hoursSinceLastConnection = " + hoursSinceLastConnection + ", it doesn't respect the following condition : hoursSinceLastConnection < 0 || hoursSinceLastConnection > 65535");
moodSmileyId = reader.ReadSByte();
accountId = reader.ReadInt();
if (accountId < 0)
throw new Exception("Forbidden value on accountId = " + accountId + ", it doesn't respect the following condition : accountId < 0");
achievementPoints = reader.ReadInt();
status = Types.ProtocolTypeManager.GetInstance<Types.PlayerStatus>(reader.ReadShort());
status.Deserialize(reader);
}
示例5: Deserialize
public virtual void Deserialize(IDataReader reader)
{
objectiveId = reader.ReadShort();
if (objectiveId < 0)
throw new Exception("Forbidden value on objectiveId = " + objectiveId + ", it doesn't respect the following condition : objectiveId < 0");
objectiveStatus = reader.ReadBoolean();
}
示例6: Deserialize
public override void Deserialize(IDataReader reader)
{
enable = reader.ReadBoolean();
rights = reader.ReadUInt();
if (rights < 0 || rights > 4294967295)
throw new Exception("Forbidden value on rights = " + rights + ", it doesn't respect the following condition : rights < 0 || rights > 4294967295");
}
示例7: Deserialize
public override void Deserialize(IDataReader reader)
{
onlySuccess = reader.ReadBoolean();
goldSum = reader.ReadInt();
if (goldSum < 0)
throw new Exception("Forbidden value on goldSum = " + goldSum + ", it doesn't respect the following condition : goldSum < 0");
}
示例8: Deserialize
public override void Deserialize(IDataReader reader)
{
base.Deserialize(reader);
position = reader.ReadByte();
if ( position < 0 || position > 255 )
{
throw new Exception("Forbidden value on position = " + position + ", it doesn't respect the following condition : position < 0 || position > 255");
}
objectGID = reader.ReadShort();
if ( objectGID < 0 )
{
throw new Exception("Forbidden value on objectGID = " + objectGID + ", it doesn't respect the following condition : objectGID < 0");
}
powerRate = reader.ReadShort();
overMax = reader.ReadBoolean();
int limit = reader.ReadUShort();
effects = new Types.ObjectEffect[limit];
for (int i = 0; i < limit; i++)
{
(effects as Types.ObjectEffect[])[i] = ProtocolTypeManager.GetInstance<Types.ObjectEffect>(reader.ReadShort());
(effects as Types.ObjectEffect[])[i].Deserialize(reader);
}
objectUID = reader.ReadInt();
if ( objectUID < 0 )
{
throw new Exception("Forbidden value on objectUID = " + objectUID + ", it doesn't respect the following condition : objectUID < 0");
}
quantity = reader.ReadInt();
if ( quantity < 0 )
{
throw new Exception("Forbidden value on quantity = " + quantity + ", it doesn't respect the following condition : quantity < 0");
}
}
示例9: Deserialize
public virtual void Deserialize(IDataReader reader)
{
modelId = reader.ReadInt();
if (modelId < 0)
throw new Exception("Forbidden value on modelId = " + modelId + ", it doesn't respect the following condition : modelId < 0");
ownerName = reader.ReadUTF();
ownerConnected = reader.ReadBoolean();
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");
subAreaId = reader.ReadShort();
if (subAreaId < 0)
throw new Exception("Forbidden value on subAreaId = " + subAreaId + ", it doesn't respect the following condition : subAreaId < 0");
nbRoom = reader.ReadSByte();
nbChest = reader.ReadSByte();
var limit = reader.ReadUShort();
skillListIds = new int[limit];
for (int i = 0; i < limit; i++)
{
skillListIds[i] = reader.ReadInt();
}
isLocked = reader.ReadBoolean();
price = reader.ReadInt();
if (price < 0)
throw new Exception("Forbidden value on price = " + price + ", it doesn't respect the following condition : price < 0");
}
示例10: Deserialize
public override void Deserialize(IDataReader reader)
{
fightId = reader.ReadDouble();
fighterMovementInformations = new Types.CharacterMinimalPlusLookAndGradeInformations();
fighterMovementInformations.Deserialize(reader);
inMain = reader.ReadBoolean();
}
示例11: Deserialize
public override void Deserialize(IDataReader reader)
{
ready = reader.ReadBoolean();
step = reader.ReadShort();
if (step < 0)
throw new Exception("Forbidden value on step = " + step + ", it doesn't respect the following condition : step < 0");
}
示例12: Deserialize
public override void Deserialize(IDataReader reader)
{
characterId = reader.ReadInt();
if (characterId < 0)
throw new Exception("Forbidden value on characterId = " + characterId + ", it doesn't respect the following condition : characterId < 0");
isReady = reader.ReadBoolean();
}
示例13: Deserialize
public override void Deserialize(IDataReader reader)
{
fightId = reader.ReadInt();
if (fightId < 0)
throw new Exception("Forbidden value on fightId = " + fightId + ", it doesn't respect the following condition : fightId < 0");
var limit = reader.ReadUShort();
names = new string[limit];
for (int i = 0; i < limit; i++)
{
names[i] = reader.ReadUTF();
}
limit = reader.ReadUShort();
levels = new short[limit];
for (int i = 0; i < limit; i++)
{
levels[i] = reader.ReadShort();
}
teamSwap = reader.ReadSByte();
if (teamSwap < 0)
throw new Exception("Forbidden value on teamSwap = " + teamSwap + ", it doesn't respect the following condition : teamSwap < 0");
limit = reader.ReadUShort();
alives = new bool[limit];
for (int i = 0; i < limit; i++)
{
alives[i] = reader.ReadBoolean();
}
}
示例14: Deserialize
public override void Deserialize(IDataReader reader)
{
id = reader.ReadInt();
if (id < 0)
throw new Exception("Forbidden value on id = " + id + ", it doesn't respect the following condition : id < 0");
ready = reader.ReadBoolean();
}
示例15: Deserialize
public override void Deserialize(IDataReader reader)
{
base.Deserialize(reader);
targetId = reader.ReadInt();
stateId = reader.ReadShort();
active = reader.ReadBoolean();
}