本文整理汇总了C#中ICustomDataInput类的典型用法代码示例。如果您正苦于以下问题:C# ICustomDataInput类的具体用法?C# ICustomDataInput怎么用?C# ICustomDataInput使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ICustomDataInput类属于命名空间,在下文中一共展示了ICustomDataInput类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public virtual void Deserialize(ICustomDataInput reader)
{
markAuthorId = reader.ReadInt();
markTeamId = reader.ReadSByte();
if (markTeamId < 0)
throw new Exception("Forbidden value on markTeamId = " + markTeamId + ", it doesn't respect the following condition : markTeamId < 0");
markSpellId = reader.ReadInt();
if (markSpellId < 0)
throw new Exception("Forbidden value on markSpellId = " + markSpellId + ", it doesn't respect the following condition : markSpellId < 0");
markSpellLevel = reader.ReadSByte();
if ((markSpellLevel < 1) || (markSpellLevel > 6))
throw new Exception("Forbidden value on markSpellLevel = " + markSpellLevel + ", it doesn't respect the following condition : (markSpellLevel < 1) || (markSpellLevel > 6)");
markId = reader.ReadShort();
markType = reader.ReadSByte();
markimpactCell = reader.ReadShort();
if ((markimpactCell < -1) || (markimpactCell > 559))
throw new Exception("Forbidden value on markimpactCell = " + markimpactCell + ", it doesn't respect the following condition : (markimpactCell < -1) || (markimpactCell > 559)");
var limit = reader.ReadUShort();
cells = new Types.GameActionMarkedCell[limit];
for (int i = 0; i < limit; i++)
{
(cells as Types.GameActionMarkedCell[])[i] = new Types.GameActionMarkedCell();
(cells as Types.GameActionMarkedCell[])[i].Deserialize(reader);
}
active = reader.ReadBoolean();
}
示例2: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
uid = reader.ReadUTF();
failure = reader.ReadSByte();
if (failure < 0)
throw new Exception("Forbidden value on failure = " + failure + ", it doesn't respect the following condition : failure < 0");
}
示例3: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
base.Deserialize(reader);
sourceSpellId = reader.ReadVarUhInt();
if (sourceSpellId < 0)
throw new Exception("Forbidden value on sourceSpellId = " + sourceSpellId + ", it doesn't respect the following condition : sourceSpellId < 0");
}
示例4: Deserialize
public virtual void Deserialize(ICustomDataInput reader)
{
spellId = reader.ReadInt();
cooldown = reader.ReadSByte();
if (cooldown < 0)
throw new Exception("Forbidden value on cooldown = " + cooldown + ", it doesn't respect the following condition : cooldown < 0");
}
示例5: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
base.Deserialize(reader);
rank = reader.ReadVarUhShort();
if ((rank < 0) || (rank > 2300))
throw new Exception("Forbidden value on rank = " + rank + ", it doesn't respect the following condition : (rank < 0) || (rank > 2300)");
}
示例6: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
var limit = reader.ReadUShort();
finishedQuestsIds = new ushort[limit];
for (int i = 0; i < limit; i++)
{
(finishedQuestsIds as ushort[])[i] = reader.ReadVarUhShort();
}
limit = reader.ReadUShort();
finishedQuestsCounts = new ushort[limit];
for (int i = 0; i < limit; i++)
{
(finishedQuestsCounts as ushort[])[i] = reader.ReadVarUhShort();
}
limit = reader.ReadUShort();
activeQuests = new Types.QuestActiveInformations[limit];
for (int i = 0; i < limit; i++)
{
(activeQuests as Types.QuestActiveInformations[])[i] = Types.ProtocolTypeManager.GetInstance<Types.QuestActiveInformations>(reader.ReadShort());
(activeQuests as Types.QuestActiveInformations[])[i].Deserialize(reader);
}
limit = reader.ReadUShort();
reinitDoneQuestsIds = new ushort[limit];
for (int i = 0; i < limit; i++)
{
(reinitDoneQuestsIds as ushort[])[i] = reader.ReadVarUhShort();
}
}
示例7: Deserialize
public virtual void Deserialize(ICustomDataInput reader)
{
bonesId = reader.ReadVarUhShort();
if (bonesId < 0)
throw new Exception("Forbidden value on bonesId = " + bonesId + ", it doesn't respect the following condition : bonesId < 0");
var limit = reader.ReadUShort();
skins = new List<ushort>();
for (int i = 0; i < limit; i++)
{
skins.Add(reader.ReadVarUhShort());
}
limit = reader.ReadUShort();
indexedColors = new List<int>();
for (int i = 0; i < limit; i++)
{
indexedColors.Add(reader.ReadInt());
}
limit = reader.ReadUShort();
scales = new List<short>();
for (int i = 0; i < limit; i++)
{
scales.Add(reader.ReadVarShort());
}
limit = reader.ReadUShort();
subentities = new List<SubEntity>();
for (int i = 0; i < limit; i++)
{
var subentity = new Types.SubEntity();
subentity.Deserialize(reader);
subentities.Add(subentity);
}
}
示例8: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
subAreaId = reader.ReadVarUhShort();
if (subAreaId < 0)
throw new Exception("Forbidden value on subAreaId = " + subAreaId + ", it doesn't respect the following condition : subAreaId < 0");
join = reader.ReadBoolean();
}
示例9: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
result = reader.ReadSByte();
nbCharacBoost = reader.ReadVarUhShort();
if (nbCharacBoost < 0)
throw new Exception("Forbidden value on nbCharacBoost = " + nbCharacBoost + ", it doesn't respect the following condition : nbCharacBoost < 0");
}
示例10: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
base.Deserialize(reader);
reason = reader.ReadSByte();
if (reason < 0)
throw new Exception("Forbidden value on reason = " + reason + ", it doesn't respect the following condition : reason < 0");
}
示例11: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
base.Deserialize(reader);
presetId = reader.ReadSByte();
if (presetId < 0)
throw new Exception("Forbidden value on presetId = " + presetId + ", it doesn't respect the following condition : presetId < 0");
}
示例12: Deserialize
public virtual void Deserialize(ICustomDataInput reader)
{
fightId = reader.ReadInt();
fightType = reader.ReadSByte();
if (fightType < 0)
throw new Exception("Forbidden value on fightType = " + fightType + ", it doesn't respect the following condition : fightType < 0");
fightStart = reader.ReadInt();
if (fightStart < 0)
throw new Exception("Forbidden value on fightStart = " + fightStart + ", it doesn't respect the following condition : fightStart < 0");
fightSpectatorLocked = reader.ReadBoolean();
var limit = reader.ReadUShort();
fightTeams = new Types.FightTeamLightInformations[limit];
for (int i = 0; i < limit; i++)
{
(fightTeams as Types.FightTeamLightInformations[])[i] = new Types.FightTeamLightInformations();
(fightTeams as Types.FightTeamLightInformations[])[i].Deserialize(reader);
}
limit = reader.ReadUShort();
fightTeamsOptions = new Types.FightOptionsInformations[limit];
for (int i = 0; i < limit; i++)
{
(fightTeamsOptions as Types.FightOptionsInformations[])[i] = new Types.FightOptionsInformations();
(fightTeamsOptions as Types.FightOptionsInformations[])[i].Deserialize(reader);
}
}
示例13: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
var limit = reader.ReadUShort();
effects = new Types.FightDispellableEffectExtendedInformations[limit];
for (int i = 0; i < limit; i++)
{
(effects as Types.FightDispellableEffectExtendedInformations[])[i] = new Types.FightDispellableEffectExtendedInformations();
(effects as Types.FightDispellableEffectExtendedInformations[])[i].Deserialize(reader);
}
limit = reader.ReadUShort();
marks = new Types.GameActionMark[limit];
for (int i = 0; i < limit; i++)
{
(marks as Types.GameActionMark[])[i] = new Types.GameActionMark();
(marks as Types.GameActionMark[])[i].Deserialize(reader);
}
gameTurn = reader.ReadVarUhShort();
if (gameTurn < 0)
throw new Exception("Forbidden value on gameTurn = " + gameTurn + ", it doesn't respect the following condition : gameTurn < 0");
fightStart = reader.ReadInt();
if (fightStart < 0)
throw new Exception("Forbidden value on fightStart = " + fightStart + ", it doesn't respect the following condition : fightStart < 0");
limit = reader.ReadUShort();
idols = new Types.Idol[limit];
for (int i = 0; i < limit; i++)
{
(idols as Types.Idol[])[i] = new Types.Idol();
(idols as Types.Idol[])[i].Deserialize(reader);
}
}
示例14: Deserialize
public virtual void Deserialize(ICustomDataInput reader)
{
id = reader.ReadUTF();
state = reader.ReadSByte();
if (state < 0)
throw new Exception("Forbidden value on state = " + state + ", it doesn't respect the following condition : state < 0");
}
示例15: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
base.Deserialize(reader);
boostUID = reader.ReadInt();
if (boostUID < 0)
throw new Exception("Forbidden value on boostUID = " + boostUID + ", it doesn't respect the following condition : boostUID < 0");
}