本文整理汇总了C#中GenericReader.ReadMobileList方法的典型用法代码示例。如果您正苦于以下问题:C# GenericReader.ReadMobileList方法的具体用法?C# GenericReader.ReadMobileList怎么用?C# GenericReader.ReadMobileList使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GenericReader
的用法示例。
在下文中一共展示了GenericReader.ReadMobileList方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public void Deserialize( GenericReader reader )
{
int version = reader.ReadInt();
switch ( version )
{
case 1:
{
m_Flag = reader.ReadItem() as IGameFlag;
goto case 0;
}
case 0:
{
m_Members = reader.ReadMobileList();
m_Home = reader.ReadPoint3D();
m_FlagHome = reader.ReadPoint3D();
m_Map = reader.ReadMap();
m_Points = reader.ReadInt();
m_Name = reader.ReadString();
m_Hue = reader.ReadInt();
m_UId = reader.ReadInt();
m_Game = reader.ReadItem() as CTFGame;
break;
}
}
}
示例2: Deserialize
public void Deserialize( GenericReader reader )
{
int version = reader.ReadInt();
switch( version )
{
case 0:
{
m_ThreadCreator = reader.ReadMobile();
m_LastPostTime = reader.ReadDateTime();
m_CreationTime = reader.ReadDateTime();
m_ThreadType = ( ThreadType )reader.ReadInt();
m_Posts = ReadPostList( reader );
m_Viewers = reader.ReadMobileList();
m_ViewersSinceUpdate = reader.ReadMobileList();
m_Posters = reader.ReadMobileList();
m_PostersSinceUpdate = reader.ReadMobileList();
m_FileInUse = reader.ReadBool();
m_StaffMessage = reader.ReadBool();
m_Deleted = reader.ReadBool();
m_Locked = reader.ReadBool();
m_Subject = reader.ReadString();
m_ThreadID = reader.ReadInt();
break;
}
}
}
示例3: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
switch (version)
{
case 0:
{
QtRespawnMobileRare1 = reader.ReadInt();
QtRespawnMobileRare2 = reader.ReadInt();
QtRespawnMobileRare3 = reader.ReadInt();
QtRespawnMobileRare4 = reader.ReadInt();
QtRespawnMobileRare5 = reader.ReadInt();
MobileListRare1 = reader.ReadMobileList();
MobileListRare2 = reader.ReadMobileList();
MobileListRare3 = reader.ReadMobileList();
MobileListRare4 = reader.ReadMobileList();
MobileListRare5 = reader.ReadMobileList();
break;
}
}
this.InitializeRespawnController();
}
示例4: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
int count;
switch ( version )
{
case 15:
{
goto case 14;
}
case 14:
{
m_RelativeBanLocation = reader.ReadPoint3D();
goto case 13;
}
case 13: // removed ban location serialization
case 12:
{
m_InternalizedVendors = reader.ReadMobileList();
int inventoryCount = reader.ReadEncodedInt();
for ( int i = 0; i < inventoryCount; i++ )
{
VendorInventory inventory = new VendorInventory( this, reader );
m_VendorInventories.Add( inventory );
}
goto case 11;
}
case 11:
{
m_LastRefreshed = reader.ReadDateTime();
m_RestrictDecay = reader.ReadBool();
goto case 10;
}
case 10: // just a signal for updates
case 9:
{
m_Visits = reader.ReadInt();
goto case 8;
}
case 8:
{
m_Price = reader.ReadInt();
goto case 7;
}
case 7:
{
m_Access = reader.ReadMobileList();
goto case 6;
}
case 6:
{
m_BuiltOn = reader.ReadDateTime();
goto case 5;
}
case 5: // just removed fields
case 4:
{
m_Addons = reader.ReadItemList();
goto case 3;
}
case 3:
case 2:
{
m_Public = reader.ReadBool();
goto case 1;
}
case 1:
{
if ( version < 13 )
reader.ReadPoint3D(); // house ban location
goto case 0;
}
case 0:
{
if ( version < 14 )
m_RelativeBanLocation = this.BaseBanLocation;
if ( version < 12 )
{
m_InternalizedVendors = new ArrayList();
}
if ( version < 4 )
m_Addons = new ArrayList();
if ( version < 7 )
m_Access = new ArrayList();
if ( version < 8 )
m_Price = DefaultPrice;
m_Owner = reader.ReadMobile();
if ( version < 5 )
{
//.........这里部分代码省略.........
示例5: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 8:
{
m_Identified = reader.ReadMobileList();
goto case 7;
}
case 7:
case 6:
case 5:
{
SaveFlag flags = (SaveFlag)reader.ReadEncodedInt();
if ( GetSaveFlag( flags, SaveFlag.Attributes ) )
m_AosAttributes = new AosAttributes( this, reader );
else
m_AosAttributes = new AosAttributes( this );
if ( GetSaveFlag( flags, SaveFlag.ArmorAttributes ) )
m_AosArmorAttributes = new AosArmorAttributes( this, reader );
else
m_AosArmorAttributes = new AosArmorAttributes( this );
if ( GetSaveFlag( flags, SaveFlag.PhysicalBonus ) )
m_PhysicalBonus = reader.ReadEncodedInt();
if ( GetSaveFlag( flags, SaveFlag.FireBonus ) )
m_FireBonus = reader.ReadEncodedInt();
if ( GetSaveFlag( flags, SaveFlag.ColdBonus ) )
m_ColdBonus = reader.ReadEncodedInt();
if ( GetSaveFlag( flags, SaveFlag.PoisonBonus ) )
m_PoisonBonus = reader.ReadEncodedInt();
if ( GetSaveFlag( flags, SaveFlag.EnergyBonus ) )
m_EnergyBonus = reader.ReadEncodedInt();
if ( GetSaveFlag( flags, SaveFlag.Identified ) && version < 7 )
reader.ReadBool();
//m_Identified = ( version >= 7 || reader.ReadBool() );
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 = (CraftQuality)reader.ReadEncodedInt();
else
m_Quality = CraftQuality.Regular;
if ( version == 5 && m_Quality == CraftQuality.Low )
m_Quality = CraftQuality.Regular;
if ( GetSaveFlag( flags, SaveFlag.Durability ) )
m_Durability = (DurabilityLevel)reader.ReadEncodedInt();
if ( GetSaveFlag( flags, SaveFlag.Protection ) )
m_Protection = (ArmorProtectionLevel)reader.ReadEncodedInt();
if ( GetSaveFlag( flags, SaveFlag.BaseArmor ) )
m_ArmorBase = reader.ReadEncodedInt();
else
m_ArmorBase = -1;
if ( GetSaveFlag( flags, SaveFlag.StrBonus ) )
m_StrBonus = reader.ReadEncodedInt();
else
m_StrBonus = -1;
if ( GetSaveFlag( flags, SaveFlag.DexBonus ) )
m_DexBonus = reader.ReadEncodedInt();
else
m_DexBonus = -1;
if ( GetSaveFlag( flags, SaveFlag.IntBonus ) )
m_IntBonus = reader.ReadEncodedInt();
else
m_IntBonus = -1;
if ( GetSaveFlag( flags, SaveFlag.StrReq ) )
m_StrReq = reader.ReadEncodedInt();
else
m_StrReq = -1;
if ( GetSaveFlag( flags, SaveFlag.DexReq ) )
m_DexReq = reader.ReadEncodedInt();
else
//.........这里部分代码省略.........
示例6: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 1:
{
m_VilleRace = (VilleRaciale)reader.ReadByte();
goto case 0;
}
case 0:
{
m_Citoyens = reader.ReadMobileList();
m_Candidats = reader.ReadMobileList();
m_HLL = reader.ReadMobileList();
m_Gardes = reader.ReadMobileList();
m_gardes_pnj = reader.ReadItemList();
m_Maire = (PlayerMobile)reader.ReadMobile();
m_Conseiller = (PlayerMobile)reader.ReadMobile();
m_Ambassadeur = (PlayerMobile)reader.ReadMobile();
m_Capitaine = (PlayerMobile)reader.ReadMobile();
m_Pomi = (POMI)reader.ReadItem();
m_MaireCloak = (PomiCloak)reader.ReadItem();
m_ConseillerCloak = (PomiCloak)reader.ReadItem();
m_AmbassadeurCloak = (PomiCloak)reader.ReadItem();
m_CapitaineCloak = (PomiCloak)reader.ReadItem();
m_CapitaineBook = (CapitaineBook)reader.ReadItem();
m_GardeCloak = reader.ReadItemList();
m_Nom = reader.ReadString();
m_Charte0 = reader.ReadString();
m_Charte1 = reader.ReadString();
m_Charte2 = reader.ReadString();
m_Charte3 = reader.ReadString();
m_Charte4 = reader.ReadString();
m_Charte5 = reader.ReadString();
m_Charte6 = reader.ReadString();
m_Charte7 = reader.ReadString();
m_Votants = reader.ReadMobileList();
m_Elections = reader.ReadMobileList();
m_Resultats = reader.ReadMobileList();
m_EndDate = reader.ReadDateTime();
m_ElecTimer = new ElectionTimer(this, m_EndDate - DateTime.Now);
m_ElecTimer.Start();
m_ElecDelay = reader.ReadTimeSpan();
m_MaxDistance = reader.ReadInt();
m_Allies = reader.ReadItemList();
m_Paix = reader.ReadItemList();
m_Guerre = reader.ReadItemList();
m_Neutre = reader.ReadItemList();
m_Box = (TownBox)reader.ReadItem();
break;
}
}
}
示例7: Deserialize
public override void Deserialize( GenericReader reader )
{
int version = reader.ReadInt();
if ( version < 5 )
{
FixGuilds();
}
switch ( version )
{
case 5:
{
m_WarInitializations = reader.ReadGuildList();
m_WarKills = new WarKillsItem[reader.ReadInt()];
for ( int i = 0; i < m_WarKills.Length; ++i )
{
m_WarKills[i].w_Guild = reader.ReadGuild() as Guild;
m_WarKills[i].Kills = reader.ReadInt();
m_WarKills[i].MaxKills = reader.ReadInt();
m_WarKills[i].WarTime = (uint) reader.ReadInt();
m_WarKills[i].ExpTime = (uint) reader.ReadInt();
}
m_AllianceLeader = reader.ReadBool();
m_AllianceName = reader.ReadString();
goto case 4;
}
case 4:
{
m_AllyDeclarations = reader.ReadGuildList();
m_AllyInvitations = reader.ReadGuildList();
goto case 3;
}
case 3:
{
m_TypeLastChange = reader.ReadDateTime();
goto case 2;
}
case 2:
{
m_Type = (GuildType) reader.ReadInt();
goto case 1;
}
case 1:
{
m_LastFealty = reader.ReadDateTime();
goto case 0;
}
case 0:
{
m_Leader = reader.ReadMobile();
m_Name = reader.ReadString();
m_Abbreviation = reader.ReadString();
m_Allies = reader.ReadGuildList();
m_Enemies = reader.ReadGuildList();
m_WarDeclarations = reader.ReadGuildList();
m_WarInvitations = reader.ReadGuildList();
m_Members = reader.ReadMobileList();
m_Candidates = reader.ReadMobileList();
m_Accepted = reader.ReadMobileList();
m_Guildstone = reader.ReadItem();
m_Teleporter = reader.ReadItem();
m_Charter = reader.ReadString();
m_Website = reader.ReadString();
break;
}
}
if ( m_AllyDeclarations == null )
{
m_AllyDeclarations = new ArrayList();
}
if ( m_AllyInvitations == null )
{
m_AllyInvitations = new ArrayList();
}
if ( m_WarInitializations == null )
{
m_WarInitializations = new ArrayList();
}
if ( WarTimer1 == null )
{
WarTimer1 = new WarTimer();
WarTimer1.Start();
}
if ( m_Guildstone == null || m_Members.Count == 0 )
{
//.........这里部分代码省略.........
示例8: Deserialize
public override void Deserialize( GenericReader reader )
{
var version = reader.ReadInt();
switch ( version )
{
case 7:
{
if (m_AllianceListeners != null)
m_AllianceListeners = reader.ReadMobileList();
else
{
m_AllianceListeners = new ArrayList();
m_AllianceListeners = reader.ReadMobileList();
}
goto case 6;
}
case 6:
{
if (m_Listeners != null)
m_Listeners = reader.ReadMobileList();
else
{
m_Listeners = new ArrayList();
m_Listeners = reader.ReadMobileList();
}
goto case 5;
}
case 5:
{
var count = reader.ReadInt();
m_PendingWars = new List<WarDeclaration>();
for( var i = 0; i < count; i++ )
{
m_PendingWars.Add( new WarDeclaration( reader ) );
}
count = reader.ReadInt();
m_AcceptedWars = new List<WarDeclaration>();
for( var i = 0; i < count; i++ )
{
m_AcceptedWars.Add( new WarDeclaration( reader ) );
}
var isAllianceLeader = reader.ReadBool();
if( isAllianceLeader )
m_AllianceInfo = new AllianceInfo( reader );
else
m_AllianceLeader = reader.ReadGuild() as Guild;
goto case 4;
}
case 4:
{
m_AllyDeclarations = reader.ReadStrongGuildList<Guild>();
m_AllyInvitations = reader.ReadStrongGuildList<Guild>();
goto case 3;
}
case 3:
{
m_TypeLastChange = reader.ReadDateTime();
goto case 2;
}
case 2:
{
m_Type = (GuildType)reader.ReadInt();
goto case 1;
}
case 1:
{
m_LastFealty = reader.ReadDateTime();
goto case 0;
}
case 0:
{
m_Leader = reader.ReadMobile();
if( m_Leader is PlayerMobile )
((PlayerMobile)m_Leader).GuildRank = RankDefinition.Leader;
m_Name = reader.ReadString();
m_Abbreviation = reader.ReadString();
m_Allies = reader.ReadStrongGuildList<Guild>();
m_Enemies = reader.ReadStrongGuildList<Guild>();
m_WarDeclarations = reader.ReadStrongGuildList<Guild>();
m_WarInvitations = reader.ReadStrongGuildList<Guild>();
m_Members = reader.ReadStrongMobileList();
m_Candidates = reader.ReadStrongMobileList();
m_Accepted = reader.ReadStrongMobileList();
//.........这里部分代码省略.........
示例9: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 0:
{
m_Exit2Dest = reader.ReadPoint3D();
m_Exit3Dest = reader.ReadPoint3D();
m_Exit4Dest = reader.ReadPoint3D();
m_Players = new ArrayList();
m_WinnersPrizes = new ArrayList();
m_Players = reader.ReadMobileList();
m_Active = reader.ReadBool();
m_Team1 = reader.ReadInt();
m_Team2 = reader.ReadInt();
m_Team3 = reader.ReadInt();
m_Team4 = reader.ReadInt();
m_MapDest = reader.ReadMap();
m_Team1Dest = reader.ReadPoint3D();
m_Team2Dest = reader.ReadPoint3D();
m_Team3Dest = reader.ReadPoint3D();
m_Team4Dest = reader.ReadPoint3D();
m_Exit1Dest = reader.ReadPoint3D();
m_Teams = reader.ReadInt();
m_PBScoreBoard = reader.ReadItem() as PBScoreBoard;
int count = reader.ReadInt();
for( int i = 0; i < count; i++ )
m_WinnersPrizes.Add( reader.ReadItem() );
m_Active = false;
m_Timer = new PBTimer( this );
break;
}
}
}
示例10: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
switch (version)
{
case 0:
{
m_Title = reader.ReadString();
if (reader.ReadBool())
m_Greeting = new BulletinBoardMessage(reader);
int count = reader.ReadEncodedInt();
m_Messages = new List<BulletinBoardMessage>(count);
for (int i = 0; i < count; ++i)
m_Messages.Add(new BulletinBoardMessage(reader));
if (m_BannedPlayers != null)
m_BannedPlayers = reader.ReadMobileList();
else
{
m_BannedPlayers = new ArrayList();
m_BannedPlayers = reader.ReadMobileList();
}
break;
}
}
}
示例11: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
eventItems = reader.ReadItemList();
eventMobiles = reader.ReadMobileList();
}
示例12: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
m_Town = (TownStone)reader.ReadItem();
m_Payeurs = reader.ReadMobileList();
m_HistoPayeurs = reader.ReadMobileList();
m_Retard_1 = reader.ReadMobileList();
m_Retard_2 = reader.ReadMobileList();
m_Taxe = reader.ReadInt();
m_CaisseVille = reader.ReadInt();
m_CaisseGarde = reader.ReadInt();
m_EndDate = reader.ReadDateTime();
m_TaxeTimer = new TaxeTimer(m_Town, m_EndDate - DateTime.Now);
m_TaxeTimer.Start();
m_Delay = reader.ReadTimeSpan();
}
示例13: Arena
public Arena( GenericReader reader )
{
int version = reader.ReadEncodedInt();
switch ( version )
{
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.ReadMobileList();
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 ArrayList();
}
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 );
if ( IsOccupied )
Timer.DelayCall( TimeSpan.FromSeconds( 2.0 ), new TimerCallback( Evict ) );
if ( m_Tournament != null )
Timer.DelayCall( TimeSpan.Zero, new TimerCallback( AttachToTournament_Sandbox ) );
}
示例14: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
m_Owner = reader.ReadMobile();
m_Friends = reader.ReadMobileList();
if( version >= 2 )
m_Tent = reader.ReadItem() as TravelTent;
}
示例15: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
m_Teams = reader.ReadInt();
Players = reader.ReadMobileList();
NpcPlayers = reader.ReadMobileList();
m_Announcers = reader.ReadMobileList();
m_WinnersPrizes = reader.ReadItemList();
m_Team1Dest = reader.ReadPoint3D();
m_Team2Dest = reader.ReadPoint3D();
m_Team3Dest = reader.ReadPoint3D();
m_Team4Dest = reader.ReadPoint3D();
m_Exit1Dest = reader.ReadPoint3D();
m_Exit2Dest = reader.ReadPoint3D();
m_Exit3Dest = reader.ReadPoint3D();
m_Exit4Dest = reader.ReadPoint3D();
m_MapDest = reader.ReadMap();
m_Mod = (Mod)reader.ReadInt();
m_Active = reader.ReadBool();
m_Team1 = reader.ReadInt();
m_Team2 = reader.ReadInt();
m_Team3 = reader.ReadInt();
m_Team4 = reader.ReadInt();
m_Team1Hue = reader.ReadInt();
m_Team2Hue = reader.ReadInt();
m_Team3Hue = reader.ReadInt();
m_Team4Hue = reader.ReadInt();
m_Team1Name = reader.ReadString();
m_Team2Name = reader.ReadString();
m_Team3Name = reader.ReadString();
m_Team4Name = reader.ReadString();
m_NadeDamage = reader.ReadInt();
m_NumNades = reader.ReadInt();
m_PBScoreBoard = reader.ReadItem() as PBScoreBoard;
m_Active = false;
Reset();
//m_Timer = new PBTimer( this );
}