本文整理汇总了C#中GenericReader.ReadType方法的典型用法代码示例。如果您正苦于以下问题:C# GenericReader.ReadType方法的具体用法?C# GenericReader.ReadType怎么用?C# GenericReader.ReadType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GenericReader
的用法示例。
在下文中一共展示了GenericReader.ReadType方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
LootType = LootType.Blessed;
reader.ReadInt();
EtherealType = reader.ReadType();
}
示例2: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.GetVersion();
switch (version)
{
case 0:
{
House = reader.ReadType();
}
break;
}
}
示例3: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.GetVersion();
switch (version)
{
case 0:
{
ItemType = reader.ReadType();
ItemChildren = reader.ReadBool();
ItemChangeReset = reader.ReadBool();
Resource = reader.ReadFlag<CraftResource>();
HarvestSystem = reader.ReadType();
}
break;
}
}
示例4: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.GetVersion();
switch (version)
{
case 0:
{
Object = reader.ReadType();
ObjectChildren = reader.ReadBool();
ObjectChangeReset = reader.ReadBool();
ObjectNameSearch = reader.ReadFlag<StringSearchFlags>();
ObjectNameIgnoreCaps = reader.ReadBool();
ObjectNameReq = reader.ReadString();
ObjectNameChangeReset = reader.ReadBool();
ObjectHueReq = reader.ReadInt();
ObjectHueChangeReset = reader.ReadBool();
}
break;
}
}
示例5: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.GetVersion();
switch (version)
{
case 0:
{
Spell = reader.ReadType();
ChangeSpellReset = reader.ReadBool();
}
break;
}
}
示例6: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.GetVersion();
switch (version)
{
case 3:
{
IsDuel = reader.ReadBool();
IsDungeon = reader.ReadBool();
}
goto case 2;
case 2:
{
Battle = reader.ReadType();
BattleChildren = reader.ReadBool();
ChangeBattleReset = reader.ReadBool();
RegionName = reader.ReadString();
Map = reader.ReadMap();
}
goto case 1;
case 1:
{
AccessPlayer = reader.ReadFlag<AccessLevel>();
AccessKiller = reader.ReadFlag<AccessLevel>();
}
goto case 0;
case 0:
{
NotoCompare = reader.ReadFlag<NotorietyType>();
NotoPlayer = reader.ReadFlag<NotorietyType>();
NotoKiller = reader.ReadFlag<NotorietyType>();
}
break;
}
}
示例7: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
Creatures = new List<Type>();
RewardItems = new List<Type>();
int version = reader.ReadInt();
UID = new LevelSerial(reader);
switch (version)
{
case 1:
{
Plat = reader.ReadInt();
}
goto case 0;
case 0:
{
InvaderTitles = reader.ReadString();
TimeLimit = reader.ReadTimeSpan();
SpawnAmount = reader.ReadInt();
KillAmount = reader.ReadInt();
int count = reader.ReadInt();
if (count > 0)
{
for (int i = 0; i < count; i++)
{
Type creature = reader.ReadType();
Creatures.Add(creature);
}
}
}
break;
}
}
示例8: Deserialize
public override void Deserialize(GenericReader reader)
{
Contains = new List<Type>();
base.Deserialize(reader);
int version = reader.ReadInt();
Completed = reader.ReadBool();
WrongStep = reader.ReadBool();
ContainsFlesh = reader.ReadBool();
ContainsTentacles = reader.ReadBool();
ContainsVitriol = reader.ReadBool();
ContainsWings = reader.ReadBool();
var count = reader.ReadInt();
if (count > 0)
{
for (int i = 0; i < count; i++)
{
var type = reader.ReadType();
Contains.Add(type);
}
}
}
示例9: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.GetVersion();
switch (version)
{
case 2:
{
KeywordSearch = reader.ReadFlag<StringSearchFlags>();
KeywordIgnoreCaps = reader.ReadBool();
KeywordReq = reader.ReadString();
KeywordChangeReset = reader.ReadBool();
}
goto case 1;
case 1:
{
CheckAmount = reader.ReadBool();
}
goto case 0;
case 0:
{
Item = reader.ReadType();
ItemChildren = reader.ReadBool();
ItemChangeReset = reader.ReadBool();
}
break;
}
}
示例10: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.GetVersion();
switch (version)
{
case 0:
{
Creature = reader.ReadType();
Children = reader.ReadBool();
ChangeCreatureReset = reader.ReadBool();
Item = reader.ReadType();
ItemChildren = reader.ReadBool();
ItemChangeReset = reader.ReadBool();
IsDungeon = reader.ReadBool();
PlayerTarget = reader.ReadBool();
}
break;
}
}
示例11: Deserialize
public override void Deserialize(GenericReader reader)
{
Contains = new List<Type>();
base.Deserialize(reader);
int version = reader.ReadInt();
Completed = reader.ReadBool();
WrongStep = reader.ReadBool();
ContainsSeed = reader.ReadBool();
ContainersClaw = reader.ReadBool();
ContainsCarapace = reader.ReadBool();
ContainsConcoction = reader.ReadBool();
var count = reader.ReadInt();
if (count > 0)
{
for (int i = 0; i < count; i++)
{
var type = reader.ReadType();
Contains.Add(type);
}
}
}
示例12: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.GetVersion();
switch (version)
{
case 0:
{
Battle = reader.ReadType();
BattleChildren = reader.ReadBool();
ChangeBattleReset = reader.ReadBool();
}
break;
}
}
示例13: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.GetVersion();
switch (version)
{
case 2:
IsCloth = reader.ReadBool();
goto case 1;
case 1:
{
CraftSystem = reader.ReadType();
Resource = (CraftResource)reader.ReadInt();
IsSlayer = reader.ReadBool();
}
goto case 0;
case 0:
{
ItemType = reader.ReadType();
ItemChildren = reader.ReadBool();
ItemChangeReset = reader.ReadBool();
IsExceptional = reader.ReadBool();
}
break;
}
}