本文整理汇总了C#中Server.GenericReader.ReadRace方法的典型用法代码示例。如果您正苦于以下问题:C# GenericReader.ReadRace方法的具体用法?C# GenericReader.ReadRace怎么用?C# GenericReader.ReadRace使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Server.GenericReader
的用法示例。
在下文中一共展示了GenericReader.ReadRace方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int versao = reader.ReadInt();
raca = reader.ReadRace();
//recuperas as habilidades
habilidades = new Dictionary<IdHabilidadeRacial, HabilidadeNode>();
int numHabilidade = reader.ReadInt();
for (int i = 0; i < numHabilidade; i++)
{
HabilidadeNode hn = new HabilidadeNode();
hn.Deserialize(reader);
habilidades.Add((IdHabilidadeRacial)hn.Id, hn);
}
}
示例2: Deserialize
public virtual void Deserialize( GenericReader reader )
{
int version = reader.ReadInt();
switch ( version )
{
case 36:
case 35:
case 34:
{
byte hairflag = reader.ReadByte();
if ( ( hairflag & 0x01 ) != 0 )
m_Hair = new HairInfo( reader );
if ( ( hairflag & 0x02 ) != 0 )
m_FacialHair = new FacialHairInfo( reader );
m_InstanceID = reader.ReadInt();
m_Race = reader.ReadRace();
if ( version < 36 )
reader.ReadDeltaTime();
m_TithingPoints = reader.ReadInt();
m_Corpse = reader.ReadItem() as Container;
m_CreationTime = reader.ReadDateTime();
m_Stabled = reader.ReadStrongMobileList();
m_CantWalk = reader.ReadBool();
m_Virtues = new VirtueInfo( reader );
m_Thirst = reader.ReadInt();
m_BAC = reader.ReadInt();
m_ShortTermMurders = reader.ReadInt();
if ( version < 35 )
reader.ReadInt();
m_MagicDamageAbsorb = reader.ReadInt();
m_GuildFealty = reader.ReadMobile();
m_Guild = reader.ReadGuild();
m_DisplayGuildTitle = reader.ReadBool();
m_CanSwim = reader.ReadBool();
m_Squelched = reader.ReadBool();
m_Holding = reader.ReadItem();
m_BaseSoundID = reader.ReadInt();
m_DisarmReady = reader.ReadBool();
m_StunReady = reader.ReadBool();
m_StatCap = reader.ReadInt();
m_NameHue = reader.ReadInt();
m_Hunger = reader.ReadInt();
m_Location = reader.ReadPoint3D();
m_Body = new Body( reader.ReadInt() );
m_Name = reader.ReadString();
if ( m_Name != null )
m_Name = string.Intern( m_Name );
m_GuildTitle = reader.ReadString();
m_Criminal = reader.ReadBool();
m_Kills = reader.ReadInt();
m_SpeechHue = reader.ReadInt();
m_EmoteHue = reader.ReadInt();
m_WhisperHue = reader.ReadInt();
m_YellHue = reader.ReadInt();
m_Language = reader.ReadString();
if ( m_Language != null )
m_Language = string.Intern( m_Language );
m_Female = reader.ReadBool();
m_Warmode = reader.ReadBool();
m_Hidden = reader.ReadBool();
m_Direction = (Direction) reader.ReadByte();
m_Hue = reader.ReadInt();
m_Str = reader.ReadInt();
m_Dex = reader.ReadInt();
m_Int = reader.ReadInt();
m_Hits = reader.ReadInt();
m_Stam = reader.ReadInt();
m_Mana = reader.ReadInt();
m_Map = reader.ReadMap();
m_Blessed = reader.ReadBool();
m_Fame = reader.ReadInt();
m_Karma = reader.ReadInt();
m_AccessLevel = (AccessLevel) reader.ReadByte();
//.........这里部分代码省略.........