本文整理汇总了C#中Server.GenericReader.ReadDouble方法的典型用法代码示例。如果您正苦于以下问题:C# GenericReader.ReadDouble方法的具体用法?C# GenericReader.ReadDouble怎么用?C# GenericReader.ReadDouble使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Server.GenericReader
的用法示例。
在下文中一共展示了GenericReader.ReadDouble方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 0:
{
m_MinSkill = reader.ReadDouble();
m_MaxSkill = reader.ReadDouble();
if ( m_MinSkill == 0.0 && m_MaxSkill == 30.0 )
{
m_MinSkill = -25.0;
m_MaxSkill = +25.0;
}
break;
}
}
UpdateItemID();
}
示例2: ExtendedDeserialize
public void ExtendedDeserialize( GenericReader reader, int parentVerison )
{
int version = reader.ReadInt();
switch (version)
{
case 3:
{
m_PopUpToggle = reader.ReadBool();
goto case 2;
}
case 2:
{
Percent = reader.ReadDouble();
m_LevelTitle = reader.ReadString();
m_PlayerLevel = reader.ReadInt();
goto case 1;
}
case 1:
{
m_Settings = new MobileSettings(this);
m_Settings.Deserialize(reader);
goto case 0;
}
case 0:
{
m_TravelTickets = reader.ReadInt();
break;
}
}
}
示例3: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
// version 0
m_DataValue = reader.ReadDouble();
}
示例4: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
m_Duration = reader.ReadDouble();
m_Chance = reader.ReadInt();
}
示例5: SkillGainMod
public SkillGainMod( PlayerMobile owner, GenericReader reader )
{
int version = reader.ReadEncodedInt();
m_Owner = owner;
m_Name = reader.ReadString();
m_Skill = (SkillName)reader.ReadInt();
m_Bonus = reader.ReadDouble();
m_Duration = reader.ReadTimeSpan();
m_Added = reader.ReadDateTime();
}
示例6: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 0:
{
m_Value = reader.ReadDouble();
break;
}
}
}
示例7: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadEncodedInt();
m_HueDelay = reader.ReadDouble();
m_HueStart = reader.ReadInt();
m_HueStop = reader.ReadInt();
m_IsCycling = reader.ReadBool();
m_HasCost = reader.ReadBool();
if ( m_IsCycling )
{
DoHueTimer();
}
}
示例8: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
int count = reader.ReadEncodedInt();
m_Entries = new ArrayList( count );
for ( int i = 0; i < count; ++i )
{
SkillName skill = (SkillName)reader.ReadEncodedInt();
double amount = reader.ReadDouble();
ScrollofTranscendence scroll = new ScrollofTranscendence(skill,amount);
m_Entries.Add(scroll);
}
}
示例9: DeserializePlayerScores
private static bool DeserializePlayerScores(GenericReader reader)
{
reader.GetVersion();
reader.ReadBlockDictionary(
() =>
{
IEntity e = reader.ReadEntity();
Dictionary<Mobile, double> list = reader.ReadBlockDictionary(
() =>
{
Mobile k = reader.ReadMobile();
double v = reader.ReadDouble();
return new KeyValuePair<Mobile, double>(k, v);
});
return new KeyValuePair<IEntity, Dictionary<Mobile, double>>(e, list);
},
Registry);
return true;
}
示例10: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadEncodedInt();
switch( version )
{
case 1:
{
m_ActiveItemID = reader.ReadInt();
m_InactiveItemID = reader.ReadInt();
goto case 0;
}
case 0:
{
m_Account = reader.ReadString();
m_NextUse = reader.ReadDateTime();
m_Skill = (SkillName)reader.ReadEncodedInt();
m_SkillValue = reader.ReadDouble();
break;
}
}
if( version == 0 )
{
m_ActiveItemID = 0x2A94;
m_InactiveItemID = 0x2A93;
}
}
示例11: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
m_CurrentAI = (AIType)reader.ReadInt();
m_DefaultAI = (AIType)reader.ReadInt();
m_iRangePerception = reader.ReadInt();
m_iRangeFight = reader.ReadInt();
m_iTeam = reader.ReadInt();
m_dActiveSpeed = reader.ReadDouble();
m_dPassiveSpeed = reader.ReadDouble();
m_dCurrentSpeed = reader.ReadDouble();
double activeSpeed = m_dActiveSpeed;
double passiveSpeed = m_dPassiveSpeed;
SpeedInfo.GetSpeeds( this, ref activeSpeed, ref passiveSpeed );
bool isStandardActive = false;
for ( int i = 0; !isStandardActive && i < m_StandardActiveSpeeds.Length; ++i )
isStandardActive = ( m_dActiveSpeed == m_StandardActiveSpeeds[i] );
bool isStandardPassive = false;
for ( int i = 0; !isStandardPassive && i < m_StandardPassiveSpeeds.Length; ++i )
isStandardPassive = ( m_dPassiveSpeed == m_StandardPassiveSpeeds[i] );
if ( isStandardActive && m_dCurrentSpeed == m_dActiveSpeed )
m_dCurrentSpeed = activeSpeed;
else if ( isStandardPassive && m_dCurrentSpeed == m_dPassiveSpeed )
m_dCurrentSpeed = passiveSpeed;
if ( isStandardActive )
m_dActiveSpeed = activeSpeed;
if ( isStandardPassive )
m_dPassiveSpeed = passiveSpeed;
if ( m_iRangePerception == OldRangePerception )
m_iRangePerception = DefaultRangePerception;
m_pHome.X = reader.ReadInt();
m_pHome.Y = reader.ReadInt();
m_pHome.Z = reader.ReadInt();
if ( version >= 1 )
{
m_iRangeHome = reader.ReadInt();
int i, iCount;
iCount = reader.ReadInt();
for ( i=0; i< iCount; i++ )
{
string str = reader.ReadString();
Type type = Type.GetType( str );
if ( type != null )
{
m_arSpellAttack.Add( type );
}
}
iCount = reader.ReadInt();
for ( i=0; i< iCount; i++ )
{
string str = reader.ReadString();
Type type = Type.GetType( str );
if ( type != null )
{
m_arSpellDefense.Add( type );
}
}
}
else
{
m_iRangeHome = 0;
}
if ( version >= 2 )
{
m_FightMode = ( FightMode )reader.ReadInt();
m_bControled = reader.ReadBool();
m_ControlMaster = reader.ReadMobile();
m_ControlTarget = reader.ReadMobile();
m_ControlDest = reader.ReadPoint3D();
m_ControlOrder = (OrderType) reader.ReadInt();
m_dMinTameSkill = reader.ReadDouble();
if ( version < 9 )
reader.ReadDouble();
m_bTamable = reader.ReadBool();
//.........这里部分代码省略.........
示例12: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 2:
{
m_Level = (SecureLevel)reader.ReadInt();
m_Start = reader.ReadDateTime();
m_BottleDuration = reader.ReadDouble();
m_AllowBottling = reader.ReadBool();
goto case 1;
}
case 1:
{
SaveFlag flags = (SaveFlag)reader.ReadEncodedInt();
if ( GetSaveFlag( flags, SaveFlag.Held ) )
m_Held = reader.ReadInt();
if ( GetSaveFlag( flags, SaveFlag.Crafter ) )
m_Crafter = reader.ReadMobile();
if ( GetSaveFlag( flags, SaveFlag.Quality ) )
m_Quality = (WineQuality)reader.ReadEncodedInt();
else
m_Quality = WineQuality.Regular;
if ( m_Quality == WineQuality.Low )
m_Quality = WineQuality.Regular;
if ( GetSaveFlag( flags, SaveFlag.Variety ) )
m_Variety = (GrapeVariety)reader.ReadEncodedInt();
else
m_Variety = DefaultVariety;
if ( m_Variety == GrapeVariety.None )
m_Variety = DefaultVariety;
break;
}
}
}
示例13: Deserialize
public static Poison Deserialize( GenericReader reader )
{
switch ( reader.ReadByte() )
{
case 1: return GetPoison( reader.ReadByte() );
case 2:
//no longer used, safe to remove?
reader.ReadInt();
reader.ReadDouble();
reader.ReadInt();
reader.ReadTimeSpan();
break;
}
return null;
}
示例14: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch( version )
{
case 0:
{
m_Skill = (CraftSkillType)reader.ReadInt();
m_SkillLevel = reader.ReadDouble();
m_Crafter = reader.ReadMobile();
break;
}
}
}
示例15: Deserialize
public void Deserialize( GenericReader reader )
{
int version = reader.ReadEncodedInt();
m_Combination = reader.ReadString();
m_Area = reader.ReadString();
m_Design = DesignTypes.FindDesign( reader.ReadString() );
m_NormalHue = reader.ReadInt();
m_ActivateHue = reader.ReadInt();
m_DeactivateHue = reader.ReadInt();
m_StartingPos = reader.ReadUInt();
m_Reversed = reader.ReadBool();
m_DropChance = reader.ReadDouble();
m_GateHue = reader.ReadInt();
}