本文整理汇总了C#中Server.GenericReader.ReadStrongMobileList方法的典型用法代码示例。如果您正苦于以下问题:C# GenericReader.ReadStrongMobileList方法的具体用法?C# GenericReader.ReadStrongMobileList怎么用?C# GenericReader.ReadStrongMobileList使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Server.GenericReader
的用法示例。
在下文中一共展示了GenericReader.ReadStrongMobileList方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadEncodedInt();
m_Spawned = reader.ReadStrongMobileList<Mobile>();
}
示例2: Deserialize
private static bool Deserialize(GenericReader reader)
{
reader.ReadBlockDictionary(
() =>
{
string name = reader.ReadString();
var players = reader.ReadStrongMobileList<PlayerMobile>();
return new KeyValuePair<string, List<PlayerMobile>>(name, players);
});
return true;
}
示例3: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadEncodedInt();
m_Topic = new string[reader.ReadEncodedInt()];
for ( int i = 0; i < m_Topic.Length; i++ )
m_Topic[i] = reader.ReadString();
m_Yes = reader.ReadStrongMobileList();
m_No = reader.ReadStrongMobileList();
}
示例4: Deserialize
//.........这里部分代码省略.........
m_HearAll = reader.ReadInt();
goto case 75;
}
case 75:
{
m_Friendship = new Friendship( reader );
goto case 74;
}
case 74:
{
m_CPCapOffset = reader.ReadInt();
m_CPSpent = reader.ReadInt();
goto case 73;
}
case 73:
{
m_Description2 = reader.ReadString();
m_Description3 = reader.ReadString();
goto case 72;
}
case 72:
{
m_NextBirthday = reader.ReadDateTime();
m_MaxAge = reader.ReadInt();
goto case 71;
}
case 71:
{
m_Age = reader.ReadInt();
goto case 70;
}
case 70:
{
m_LoggedOutPets = reader.ReadStrongMobileList();
goto case 69;
}
case 69:
{
m_RecreateXP = reader.ReadInt();
m_RecreateCP = reader.ReadInt();
goto case 68;
}
case 68:
{
m_LastOffenseToNature = reader.ReadDateTime();
goto case 66;
}
case 66:
{
Mobile mob = null;
if( version < 92 )
mob = reader.ReadMobile();
goto case 65;
}
case 65:
{
m_LastDonationLife = reader.ReadDateTime();
goto case 64;
}
case 64:
{
示例5: Deserialize
//.........这里部分代码省略.........
//Console.Write(n + ": Reason-" + Reason + "\n");
this.ListaPD.Add(new Object[3] {Amount, GM_name, Reason} );
}
////////////////
goto case 28;
}
case 28:
{
//Timer od umierania i wskrzeszania
DateTime DeathTime = reader.ReadDateTime();
DateTime ResTime = DeathTime;
ResTime = ResTime.AddMinutes(PlayerMobile.c_DeathTime);
if(ResTime.CompareTo(DateTime.Now) > 0){
TimeSpan Minutes = ResTime.Subtract(DateTime.Now);
this.m_DeathTimer = new DeathTimer(this, Minutes.TotalMinutes);
this.m_DeathTimer.Start();
this.m_DeathTime = DeathTime;
}
//////////
m_PeacedUntil = reader.ReadDateTime();
goto case 27;
}
case 27:
{
m_AnkhNextUse = reader.ReadDateTime();
goto case 26;
}
case 26:
{
m_AutoStabled = reader.ReadStrongMobileList();
goto case 25;
}
case 25:
{
int recipeCount = reader.ReadInt();
if( recipeCount > 0 )
{
m_AcquiredRecipes = new Dictionary<int, bool>();
for( int i = 0; i < recipeCount; i++ )
{
int r = reader.ReadInt();
if( reader.ReadBool() ) //Don't add in recipies which we haven't gotten or have been removed
m_AcquiredRecipes.Add( r, true );
}
}
goto case 24;
}
case 24:
{
m_LastHonorLoss = reader.ReadDeltaTime();
goto case 23;
}
case 23:
{
m_ChampionTitles = new ChampionTitleInfo( reader );
goto case 22;
}
case 22:
{
示例6: Deserialize
//.........这里部分代码省略.........
m_CurrentWayPoint = reader.ReadItem() as WayPoint;
if ( version >= 5 )
m_SummonMaster = reader.ReadMobile();
if ( version >= 6 )
{
m_HitsMax = reader.ReadInt();
m_StamMax = reader.ReadInt();
m_ManaMax = reader.ReadInt();
m_DamageMin = reader.ReadInt();
m_DamageMax = reader.ReadInt();
}
if ( version >= 7 )
{
m_PhysicalResistance = reader.ReadInt();
m_PhysicalDamage = reader.ReadInt();
m_FireResistance = reader.ReadInt();
m_FireDamage = reader.ReadInt();
m_ColdResistance = reader.ReadInt();
m_ColdDamage = reader.ReadInt();
m_PoisonResistance = reader.ReadInt();
m_PoisonDamage = reader.ReadInt();
m_EnergyResistance = reader.ReadInt();
m_EnergyDamage = reader.ReadInt();
}
if ( version >= 8 )
m_Owners = reader.ReadStrongMobileList();
else
m_Owners = new List<Mobile>();
if ( version >= 10 )
{
m_IsDeadPet = reader.ReadBool();
m_IsBonded = reader.ReadBool();
m_BondingBegin = reader.ReadDateTime();
m_OwnerAbandonTime = reader.ReadDateTime();
}
if ( version >= 11 )
m_HasGeneratedLoot = reader.ReadBool();
else
m_HasGeneratedLoot = true;
if ( version >= 12 )
m_Paragon = reader.ReadBool();
else
m_Paragon = false;
if ( version >= 13 && reader.ReadBool() )
m_Friends = reader.ReadStrongMobileList();
else if ( version < 13 && m_ControlOrder >= OrderType.Unfriend )
++m_ControlOrder;
if ( version < 16 && Loyalty != MaxLoyalty )
Loyalty *= 10;
double activeSpeed = m_dActiveSpeed;
double passiveSpeed = m_dPassiveSpeed;
示例7: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 1:
{
m_RegionBounds = reader.ReadRect2D();
m_Traps = reader.ReadStrongItemList<BaseTrap>();
goto case 0;
}
case 0:
{
if ( version < 1 )
{
m_Traps = new List<BaseTrap>();
m_RegionBounds = new Rectangle2D( X - 40, Y - 40, 80, 80 );
}
m_Creatures = reader.ReadStrongMobileList();
m_TypeName = reader.ReadString();
m_Door = reader.ReadItem<BaseDoor>(); ;
m_Addon = reader.ReadItem<BaseAddon>(); ;
m_Sequence = reader.ReadItem<GauntletSpawner>();
State = (GauntletSpawnerState)reader.ReadInt();
break;
}
}
}
示例8: Arena
public Arena( GenericReader reader )
{
int version = reader.ReadEncodedInt();
switch ( version )
{
case 7:
{
m_IsGuarded = reader.ReadBool();
goto case 6;
}
case 6:
{
m_Ladder = reader.ReadItem() as LadderController;
goto case 5;
}
case 5:
{
m_Tournament = reader.ReadItem() as TournamentController;
m_Announcer = reader.ReadMobile();
goto case 4;
}
case 4:
{
m_Name = reader.ReadString();
goto case 3;
}
case 3:
{
m_Zone = reader.ReadRect2D();
goto case 2;
}
case 2:
{
m_GateIn = reader.ReadPoint3D();
m_GateOut = reader.ReadPoint3D();
m_Teleporter = reader.ReadItem();
goto case 1;
}
case 1:
{
m_Players = reader.ReadStrongMobileList();
goto case 0;
}
case 0:
{
m_Facet = reader.ReadMap();
m_Bounds = reader.ReadRect2D();
m_Outside = reader.ReadPoint3D();
m_Wall = reader.ReadPoint3D();
if ( version == 0 )
{
reader.ReadBool();
m_Players = new List<Mobile>();
}
m_Active = reader.ReadBool();
m_Points = new ArenaStartPoints( reader );
if ( m_Active )
{
m_Arenas.Add( this );
m_Arenas.Sort();
}
break;
}
}
if ( m_Zone.Start != Point2D.Zero && m_Zone.End != Point2D.Zero && m_Facet != null )
m_Region = new SafeZone( m_Zone, m_Outside, m_Facet, m_IsGuarded );
if ( IsOccupied )
Timer.DelayCall( TimeSpan.FromSeconds( 2.0 ), new TimerCallback( Evict ) );
if ( m_Tournament != null )
Timer.DelayCall( TimeSpan.Zero, new TimerCallback( AttachToTournament_Sandbox ) );
}
示例9: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 2:
{
m_Guardians = reader.ReadStrongMobileList();
m_Temporary = reader.ReadBool();
goto case 1;
}
case 1:
{
m_Owner = reader.ReadMobile();
goto case 0;
}
case 0:
{
m_Level = reader.ReadInt();
m_DeleteTime = reader.ReadDeltaTime();
m_Lifted = reader.ReadStrongItemList();
if ( version < 2 )
m_Guardians = new List<Mobile>();
break;
}
}
if ( !m_Temporary )
{
m_Timer = new DeleteTimer( this, m_DeleteTime );
m_Timer.Start();
}
else
{
Delete();
}
}
示例10: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 6:
{
m_IDList = reader.ReadStrongMobileList();
goto case 5;
}
case 5:
{
m_Identified = reader.ReadBool();
m_Charges = reader.ReadInt();
m_ClothEffect = (ClothEffect)reader.ReadEncodedInt();
SaveFlag flags = (SaveFlag)reader.ReadEncodedInt();
if ( GetSaveFlag( flags, SaveFlag.Resource ) )
m_Resource = (CraftResource)reader.ReadEncodedInt();
else
m_Resource = DefaultResource;
if ( GetSaveFlag( flags, SaveFlag.Attributes ) )
m_AosAttributes = new AosAttributes( this, reader );
else
m_AosAttributes = new AosAttributes( this );
if ( GetSaveFlag( flags, SaveFlag.ClothingAttributes ) )
m_AosClothingAttributes = new AosArmorAttributes( this, reader );
else
m_AosClothingAttributes = new AosArmorAttributes( this );
if ( GetSaveFlag( flags, SaveFlag.SkillBonuses ) )
m_AosSkillBonuses = new AosSkillBonuses( this, reader );
else
m_AosSkillBonuses = new AosSkillBonuses( this );
if ( GetSaveFlag( flags, SaveFlag.Resistances ) )
m_AosResistances = new AosElementAttributes( this, reader );
else
m_AosResistances = new AosElementAttributes( this );
if ( GetSaveFlag( flags, SaveFlag.MaxHitPoints ) )
m_MaxHitPoints = reader.ReadEncodedInt();
if ( GetSaveFlag( flags, SaveFlag.HitPoints ) )
m_HitPoints = reader.ReadEncodedInt();
if ( GetSaveFlag( flags, SaveFlag.Crafter ) )
m_Crafter = reader.ReadMobile();
if ( GetSaveFlag( flags, SaveFlag.Quality ) )
m_Quality = (ClothingQuality)reader.ReadEncodedInt();
else
m_Quality = ClothingQuality.Regular;
if ( GetSaveFlag( flags, SaveFlag.StrReq ) )
m_StrReq = reader.ReadEncodedInt();
else
m_StrReq = -1;
if ( GetSaveFlag( flags, SaveFlag.PlayerConstructed ) )
m_PlayerConstructed = true;
break;
}
case 4:
{
m_Resource = (CraftResource)reader.ReadInt();
goto case 3;
}
case 3:
{
m_AosAttributes = new AosAttributes( this, reader );
m_AosClothingAttributes = new AosArmorAttributes( this, reader );
m_AosSkillBonuses = new AosSkillBonuses( this, reader );
m_AosResistances = new AosElementAttributes( this, reader );
goto case 2;
}
case 2:
{
m_PlayerConstructed = reader.ReadBool();
goto case 1;
}
case 1:
{
m_Crafter = reader.ReadMobile();
m_Quality = (ClothingQuality)reader.ReadInt();
break;
}
case 0:
{
m_Crafter = null;
m_Quality = ClothingQuality.Regular;
//.........这里部分代码省略.........
示例11: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 0:
{
m_Items = reader.ReadStrongItemList();
m_Mobiles = reader.ReadStrongMobileList();
m_DecayTime = reader.ReadDeltaTime();
RefreshDecay( false );
break;
}
}
}
示例12: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
m_Effect = (StationaryEffect)reader.ReadInt();
m_Charges = reader.ReadInt();
m_IDList = reader.ReadStrongMobileList();
}
示例13: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
m_Peerless = reader.ReadMobile() as BasePeerless;
m_BossLocation = reader.ReadPoint3D();
m_TeleportDest = reader.ReadPoint3D();
m_ExitDest = reader.ReadPoint3D();
m_Deadline = reader.ReadDateTime();
// deserialize master keys
m_MasterKeys = reader.ReadStrongItemList();
// deserialize fightes
m_Fighters = reader.ReadStrongMobileList();
// deserialize pets
m_Pets = new Dictionary<Mobile,List<Mobile>>();
int count = reader.ReadInt();
for ( int i = 0; i < count; i ++ )
m_Pets.Add( reader.ReadMobile(), reader.ReadStrongMobileList() );
m_Spawned = reader.ReadBool();
FinishSequence();
}
示例14: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch( version )
{
case 0:
{
m_Stage1Type = (eStage1Type)reader.ReadInt();
m_Stage2Type = (eStage2Type)reader.ReadInt();
m_Stage3Type = (eStage3Type)reader.ReadInt();
m_Stage4Type = (eStage4Type)reader.ReadInt();
m_ChampionType = (eChampionType)reader.ReadInt();
m_Stage1Count = reader.ReadEncodedInt();
m_Stage2Count = reader.ReadEncodedInt();
m_Stage3Count = reader.ReadEncodedInt();
m_Stage4Count = reader.ReadEncodedInt();
m_CurrentStage = reader.ReadEncodedInt();
m_RewardsEnabled = reader.ReadBool();
m_ArtifactChance = reader.ReadEncodedInt();
m_BlessDeedChance = reader.ReadEncodedInt();
m_MinSpawnZ = reader.ReadEncodedInt();
m_MaxSpawnZ = reader.ReadEncodedInt();
m_Enabled = reader.ReadBool();
m_Broadcast = reader.ReadBool();
m_Top = reader.ReadPoint3D();
m_Bottom = reader.ReadPoint3D();
m_RegionName = reader.ReadString();
m_Spawned = reader.ReadStrongMobileList<BaseCreature>();
break;
}
}
}
示例15: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
m_vendorlist = reader.ReadStrongMobileList();
m_Sign = (CivicSign)reader.ReadItem();
m_Stone = (CityManagementStone)reader.ReadItem();
m_Area = Server.Items.CityManagementStone.ReadRect3DArray( reader );
Frozen = true;
foreach ( Mobile m in m_vendorlist )
{
m.Frozen = true;
}
UpdateMarketRegion();
}