本文整理汇总了C#中Server.GenericReader.GetVersion方法的典型用法代码示例。如果您正苦于以下问题:C# GenericReader.GetVersion方法的具体用法?C# GenericReader.GetVersion怎么用?C# GenericReader.GetVersion使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Server.GenericReader
的用法示例。
在下文中一共展示了GenericReader.GetVersion方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.GetVersion();
}
示例2: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.GetVersion();
switch (version)
{
case 1:
reader.ReadBlock(r => Misc = r.ReadTypeCreate<AutoPvPMiscOptions>(r) ?? new AutoPvPMiscOptions(r));
goto case 0;
case 0:
{
if (version == 0)
{
Misc = new AutoPvPMiscOptions();
}
reader.ReadBlock(r => Commands = r.ReadTypeCreate<AutoPvPCommandOptions>(r) ?? new AutoPvPCommandOptions(r));
reader.ReadBlock(r => Profiles = r.ReadTypeCreate<AutoPvPProfileOptions>(r) ?? new AutoPvPProfileOptions(r));
reader.ReadBlock(r => Seasons = r.ReadTypeCreate<AutoPvPSeasonOptions>(r) ?? new AutoPvPSeasonOptions(r));
}
break;
}
}
示例3: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.GetVersion();
switch (version)
{
case 1:
Desc = reader.ReadString();
goto case 0;
case 0:
{
Type = reader.ReadType();
Name = reader.ReadString();
CanIgnore = reader.ReadBool();
States = reader.ReadBlockDictionary(
() =>
{
var state = new NotifySettingsState(this, reader);
return new KeyValuePair<PlayerMobile, NotifySettingsState>(state.Owner, state);
});
}
break;
}
}
示例4: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
reader.GetVersion();
_URL = reader.ReadString();
}
示例5: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
reader.GetVersion();
AccessPrefixes = new WorldChatAccessPrefixOptions(reader);
ChatPrefix = reader.ReadChar();
HistoryBuffer = reader.ReadByte();
}
示例6: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
var version = reader.GetVersion();
switch (version)
{
case 0:
break;
}
}
示例7: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.GetVersion();
switch (version)
{
case 0:
Hue = reader.ReadInt();
break;
}
}
示例8: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
var version = reader.GetVersion();
switch (version)
{
case 0:
UseCategories = reader.ReadBool();
break;
}
}
示例9: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
var version = reader.GetVersion();
if (version > 0)
{
return;
}
IgnoreBlessed = true;
IgnoreInsured = true;
}
示例10: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.GetVersion();
switch (version)
{
case 0:
{
IndexOnStart = reader.ReadBool();
}
break;
}
}
示例11: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
var version = reader.GetVersion();
switch (version)
{
case 0:
{
Port = reader.ReadInt();
MaxConnections = reader.ReadInt();
}
break;
}
}
示例12: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
var version = reader.GetVersion();
switch (version)
{
case 0:
{
reader.ReadBlock(r => Loser = r.ReadTypeCreate<PvPReward>(r) ?? new PvPReward());
reader.ReadBlock(r => Winner = r.ReadTypeCreate<PvPReward>(r) ?? new PvPReward());
}
break;
}
}
示例13: Deserialize
private static bool Deserialize(GenericReader reader)
{
reader.GetVersion();
reader.ReadBlockDictionary(
r =>
{
var k = r.ReadAccount();
var v = new TimeBoostProfile(r);
return new KeyValuePair<IAccount, TimeBoostProfile>(k, v);
},
Profiles);
return true;
}
示例14: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.GetVersion();
switch (version)
{
case 1:
NameSharing = reader.ReadBool();
goto case 0;
case 0:
IndexOnStart = reader.ReadBool();
break;
}
}
示例15: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
var version = reader.GetVersion();
switch (version)
{
case 1:
Persistence = new MySQLConnectionInfo(reader);
goto case 0;
case 0:
MaxConnections = reader.ReadInt();
break;
}
}