本文整理汇总了C#中Server.GenericReader.ReadBool方法的典型用法代码示例。如果您正苦于以下问题:C# GenericReader.ReadBool方法的具体用法?C# GenericReader.ReadBool怎么用?C# GenericReader.ReadBool使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Server.GenericReader
的用法示例。
在下文中一共展示了GenericReader.ReadBool方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 0:
{
m_Boat = reader.ReadItem() as BaseBoat;
m_Side = (PlankSide) reader.ReadInt();
m_Locked = reader.ReadBool();
m_KeyValue = reader.ReadUInt();
if ( m_Boat == null )
Delete();
break;
}
}
if ( IsOpen )
{
m_CloseTimer = new CloseTimer( this );
m_CloseTimer.Start();
}
}
示例2: DistillationContext
public DistillationContext(GenericReader reader)
{
int version = reader.ReadInt();
m_LastGroup = (Group)reader.ReadInt();
m_LastLiquor = (Liquor)reader.ReadInt();
m_MakeStrong = reader.ReadBool();
m_Mark = reader.ReadBool();
m_Label = reader.ReadString();
}
示例3: Load
public void Load(GenericReader reader)
{
int version = reader.ReadInt();
c_Text = reader.ReadString();
c_Name = reader.ReadString();
c_Gump = reader.ReadBool();
c_AntiMacro = reader.ReadBool();
c_Recur = reader.ReadTimeSpan();
StartNotify();
}
示例4: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
m_TurnOn = reader.ReadInt();
m_TurnOff = reader.ReadInt();
m_LocMessageA = reader.ReadInt();
m_LocMessageB = reader.ReadInt();
m_Working = reader.ReadBool();
m_Used = reader.ReadBool();
this.m_Used = false;
this.ItemID = this.m_TurnOff;
}
示例5: 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;
}
}
示例6: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
m_IsDigging = reader.ReadBool();
}
示例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();
m_Charged = reader.ReadBool();
m_LastRecharged = reader.ReadDateTime();
}
示例9: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize (reader);
int version = reader.ReadInt();
switch (version)
{
case 1:
{
m_GaveUp = reader.ReadBool();
goto case 0;
}
case 0:
{
m_Winner = reader.ReadString();
m_Looser = reader.ReadString();
m_GameEnd = reader.ReadDateTime();
m_GameTime = reader.ReadTimeSpan();
m_WinnerTime = reader.ReadTimeSpan();
m_LooserTime = reader.ReadTimeSpan();
m_WinnerScore = reader.ReadInt();
m_LooserScore = reader.ReadInt();
break;
}
}
}
示例10: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadEncodedInt();
mActive = reader.ReadBool();
}
示例11: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 2:
{
m_ShowUsesRemaining = reader.ReadBool();
goto case 1;
}
case 1:
{
m_UsesRemaining = reader.ReadInt();
goto case 0;
}
case 0:
{
if ( m_UsesRemaining < 1 )
m_UsesRemaining = 150;
break;
}
}
}
示例12: 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;
}
}
}
示例13: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 0:
{
BeginDecay( m_DefaultDecayTime );
break;
}
case 1:
{
if ( reader.ReadBool() )
{
BeginDecay( reader.ReadDeltaTime() - DateTime.Now );
}
break;
}
}
}
示例14: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadEncodedInt();
m_IsRewardItem = reader.ReadBool();
}
示例15: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
/*int version = */reader.ReadInt();
m_Active = reader.ReadBool();
}