本文整理匯總了C#中Server.GenericReader.ReadULong方法的典型用法代碼示例。如果您正苦於以下問題:C# GenericReader.ReadULong方法的具體用法?C# GenericReader.ReadULong怎麽用?C# GenericReader.ReadULong使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Server.GenericReader
的用法示例。
在下文中一共展示了GenericReader.ReadULong方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
m_Active = reader.ReadBool();
m_Casino = (Casino)reader.ReadInt();
m_CasinoName = reader.ReadString();
m_TotalPlays = reader.ReadULong();
m_TotalCollected = reader.ReadULong();
m_TotalWon = reader.ReadULong();
m_ErrorCode = reader.ReadInt();
m_OrigHue = reader.ReadInt();
m_InUseBy = reader.ReadMobile();
m_OnCredit = reader.ReadInt();
m_Escrow = reader.ReadInt();
m_SecurityCamMobile = reader.ReadMobile();
m_SecurityChatter = (VerboseType)reader.ReadInt();
m_Bet = reader.ReadInt();
m_TestMode = reader.ReadBool();
m_DealerDelay = reader.ReadBool();
m_DoubleAfterSplit = reader.ReadBool();
m_DealerHitsSoft17 = reader.ReadBool();
m_DealerTakesPush = reader.ReadBool();
m_Resplits = reader.ReadBool();
m_SplitAces = (SplitAces)reader.ReadInt();
m_BJSplitAces21 = reader.ReadBool();
m_BJSplitAcesPaysEven = reader.ReadBool();
m_DoubleDown = (DoubleDown)reader.ReadInt();
m_PlayerCardsFaceUp = reader.ReadBool();
m_DealerCardsFaceUp = reader.ReadBool();
m_NumberOfDecks = reader.ReadShort();
m_ContinuousShuffle = reader.ReadBool();
m_MinBet = (BetValues)reader.ReadInt();
m_MaxBet = (BetValues)reader.ReadInt();
m_BlackJackPays = (BlackJackPays)reader.ReadInt();
m_CardSounds = reader.ReadBool();
carddeck = new CardDeck(m_NumberOfDecks,0);
m_BJInfo.HandInfo = new HandStruct[5];
for (int h = 0; h < 5; h++)
{
m_BJInfo.HandInfo[h].bet = 0;
m_BJInfo.HandInfo[h].totalcards = 0;
m_BJInfo.HandInfo[h].card = new short[12];
for (int c = 0; c < 12; c++)
m_BJInfo.HandInfo[h].card[c] = -1;
m_BJInfo.HandInfo[h].bestscore = 0;
m_BJInfo.HandInfo[h].altscore = 0;
}
}
示例2: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 5:
{
#region Mondain's Legacy
m_Quality = (BookQuality) reader.ReadByte();
#endregion
goto case 4;
}
case 4:
{
#region Mondain's Legacy
m_EngravedText = reader.ReadString();
#endregion
goto case 3;
}
case 3:
{
m_Crafter = reader.ReadMobile();
goto case 2;
}
case 2:
{
m_Slayer = (SlayerName)reader.ReadInt();
m_Slayer2 = (SlayerName)reader.ReadInt();
goto case 1;
}
case 1:
{
m_AosAttributes = new AosAttributes( this, reader );
m_AosSkillBonuses = new AosSkillBonuses( this, reader );
goto case 0;
}
case 0:
{
m_Content = reader.ReadULong();
m_Count = reader.ReadInt();
break;
}
}
if ( m_AosAttributes == null )
m_AosAttributes = new AosAttributes( this );
if ( m_AosSkillBonuses == null )
m_AosSkillBonuses = new AosSkillBonuses( this );
if ( Core.AOS && Parent is Mobile )
m_AosSkillBonuses.AddTo( (Mobile) Parent );
int strBonus = m_AosAttributes.BonusStr;
int dexBonus = m_AosAttributes.BonusDex;
int intBonus = m_AosAttributes.BonusInt;
if ( Parent is Mobile && (strBonus != 0 || dexBonus != 0 || intBonus != 0) )
{
Mobile m = (Mobile)Parent;
string modName = Serial.ToString();
if ( strBonus != 0 )
m.AddStatMod( new StatMod( StatType.Str, modName + "Str", strBonus, TimeSpan.Zero ) );
if ( dexBonus != 0 )
m.AddStatMod( new StatMod( StatType.Dex, modName + "Dex", dexBonus, TimeSpan.Zero ) );
if ( intBonus != 0 )
m.AddStatMod( new StatMod( StatType.Int, modName + "Int", intBonus, TimeSpan.Zero ) );
}
if ( Parent is Mobile )
((Mobile)Parent).CheckStatTimers();
}
示例3: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
m_Active = reader.ReadBool();
m_Theme = (ThemeType)reader.ReadInt();
m_TotalSpins = reader.ReadULong();
m_TotalCollected = reader.ReadULong();
m_TotalWon = reader.ReadULong();
m_ErrorCode = reader.ReadInt();
m_OrigHue = reader.ReadInt();
m_Throttle = reader.ReadBool();
m_ThrottleSeconds = reader.ReadDouble();
m_CardClubOnly = reader.ReadBool();
m_MembershipCard = reader.ReadBool();
m_LastWonBy = reader.ReadMobile();
m_LastWonByDate = reader.ReadDateTime();
m_LastWonAmount = reader.ReadInt();
m_SecurityCamMobile = reader.ReadMobile();
m_SecurityChatter = (VerboseType)reader.ReadInt();
m_TotalPlayers = reader.ReadInt();
InvalidateProperties();
if (m_TotalPlayers > 0)
{
for (int i = 0; i < m_TotalPlayers; i++)
{
PlayerInfo player = new PlayerInfo();
player.mobile = reader.ReadMobile();
player.LastPlayed = reader.ReadDateTime();
player.OnCredit = reader.ReadInt();
player.Cost = reader.ReadInt();
PlayerList.Add(player);
}
}
for (int i = 0; i < m_HitStats.Length; i++)
m_HitStats[i] = reader.ReadULong();
if (m_OrigHue != -1 && m_Active)
{
this.Hue = m_OrigHue;
m_OrigHue = -1;
}
SetupTheme(m_Theme);
ActivateIdleTimer(TimeSpan.FromMinutes(5));
m_GameSpeed = Utility.RandomList(5, 6, 7, 8, 9, 10, 11, 12);
}
示例4: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
LootType = LootType.Blessed;
int version = reader.ReadInt();
switch ( version )
{
case 0:
{
m_Content = reader.ReadULong();
m_Count = reader.ReadInt();
break;
}
}
}
示例5: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
if ( !( this is TomeOfEnlightenment || this is TomeOfLostKnowledge || this is FactionTomeOfLostKnowledge ) )
LootType = LootType.Blessed;
int version = reader.ReadInt();
switch ( version )
{
case 7:
{
m_Exceptional = reader.ReadBool();
m_Crafter = reader.ReadMobile();
goto case 6;
}
case 6:
case 5:
{
m_Slayer2 = (SlayerName) reader.ReadEncodedInt();
goto case 4;
}
case 4:
{
m_EngraveString = reader.ReadString();
goto case 3;
}
case 3:
case 2:
{
m_Slayer = (SlayerName) reader.ReadEncodedInt();
goto case 1;
}
case 1:
{
m_MagicalAttributes = new MagicalAttributes( this, reader );
m_SkillBonuses = new SkillBonuses( this, reader );
if ( this is ScrappersCompendium )
{
Attributes.SpellDamage = 25;
Attributes.LowerManaCost = 10;
}
else if ( this is ClaininsSpellbook )
{
Attributes.LowerRegCost = 15;
Attributes.RegenMana = 3;
}
else if ( this is TomeOfEnlightenment )
{
Attributes.BonusInt = 5;
Attributes.SpellDamage = 10;
Attributes.CastSpeed = 1;
}
else if ( this is TomeOfLostKnowledge )
{
SkillBonuses.SetValues( 0, SkillName.Magery, 15.0 );
Attributes.BonusInt = 8;
Attributes.SpellDamage = 15;
Attributes.LowerManaCost = 15;
}
else if ( this is FactionTomeOfLostKnowledge )
{
SkillBonuses.SetValues( 0, SkillName.Magery, 15.0 );
Attributes.BonusInt = 8;
Attributes.SpellDamage = 15;
Attributes.LowerManaCost = 15;
Attributes.RegenMana = 3;
}
else if ( this is ConjurersGrimoire )
{
SkillBonuses.SetValues( 0, SkillName.Magery, 15.0 );
Attributes.BonusInt = 8;
Attributes.SpellDamage = 15;
Attributes.LowerManaCost = 10;
}
else if ( this is FallenMysticsSpellbook )
{
Attributes.SpellDamage = 10;
}
else
{
FixAttributes();
}
goto case 0;
}
case 0:
{
m_Content = reader.ReadULong();
m_Count = reader.ReadInt();
break;
}
}
if ( m_MagicalAttributes == null )
//.........這裏部分代碼省略.........
示例6: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
if ( version >= 4 )
{
activeListA = reader.ReadBool();
DeserializeList( reader, true );
DeserializeList( reader, false );
}
else
{
activeListA = false;
RestoreDefaultList();
activeListA = true;
DeserializeList( reader, true );
}
GoldLedger = reader.ReadBool();
TokenLedger = reader.ReadBool();
if ( version >= 3 )
{
try { lootSettings = (LootSettingsEnum)reader.ReadInt(); }
catch { lootSettings = LootSettingsEnum.From_List; }
}
else
lootSettings = reader.ReadBool()?LootSettingsEnum.Currency_Only:LootSettingsEnum.From_List;
GoldAmount = reader.ReadULong();
TokensAmount = reader.ReadULong();
Owner = reader.ReadInt();
if ( version > 1 )
DeleteAllCorpses = reader.ReadBool();
}
示例7: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch( version )
{
// version 0 reads second integer, version 1 no longer
// needs it. No going to case 0 or serialization error
// will occur!!
case 2:
m_Charges = reader.ReadInt();
goto case 1;
case 1:
m_Content = reader.ReadULong();
break;
case 0:
m_Content = reader.ReadULong();
int m_Count = reader.ReadInt();
break;
}
}