当前位置: 首页>>代码示例>>C#>>正文


C# GenericReader.ReadGuild方法代码示例

本文整理汇总了C#中Server.GenericReader.ReadGuild方法的典型用法代码示例。如果您正苦于以下问题:C# GenericReader.ReadGuild方法的具体用法?C# GenericReader.ReadGuild怎么用?C# GenericReader.ReadGuild使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Server.GenericReader的用法示例。


在下文中一共展示了GenericReader.ReadGuild方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Deserialize

		public override void Deserialize(GenericReader reader)
		{
			base.Deserialize(reader);

			int version = reader.ReadInt();

			this.m_GuildAbbr = reader.ReadString();
			this.m_Guild = (Server.Guilds.Guild)reader.ReadGuild();
		}
开发者ID:zerodowned,项目名称:angelisland,代码行数:9,代码来源:TownshipNPCDeed.cs

示例2: AllianceInfo

        public AllianceInfo( GenericReader reader )
        {
            int version = reader.ReadInt();

            switch( version )
            {
                case 0:
                {
                    m_Name = reader.ReadString();
                    m_Leader = reader.ReadGuild() as Guild;

                    m_Members = reader.ReadStrongGuildList<Guild>();
                    m_PendingMembers = reader.ReadStrongGuildList<Guild>();

                    break;
                }
            }
        }
开发者ID:Leodinas,项目名称:uolite,代码行数:18,代码来源:Guild.cs

示例3: Deserialize

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
			int version = reader.ReadInt();

			switch ( version )
			{
				case 1:
				{
					m_Guild = reader.ReadGuild() as Guild;
					goto case 0;
				}
				case 0:
				{
					break;
				}
			}

			if ( m_Guild == null )
				this.Delete();
		}
开发者ID:kamronbatman,项目名称:DefianceUO-Pre1.10,代码行数:21,代码来源:ChaosStone.cs

示例4: WarDeclaration

        public WarDeclaration( GenericReader reader )
        {
            int version = reader.ReadInt();

            switch ( version )
            {
                case 0:
                {
                    m_Kills = reader.ReadInt();
                    m_MaxKills = reader.ReadInt();

                    m_WarLength = reader.ReadTimeSpan();
                    m_WarBeginning = reader.ReadDateTime();

                    m_Guild = reader.ReadGuild() as Guild;
                    m_Opponent = reader.ReadGuild() as Guild;

                    m_WarRequester = reader.ReadBool();

                    break;
                }
            }
        }
开发者ID:Leodinas,项目名称:uolite,代码行数:23,代码来源:Guild.cs

示例5: Deserialize

        public override void Deserialize( GenericReader reader )
        {
            int version = reader.ReadInt();

            switch ( version )
            {
                case 5:
                {
                    int count = reader.ReadInt();

                    m_PendingWars = new List<WarDeclaration>();
                    for( int i = 0; i < count; i++ )
                    {
                        m_PendingWars.Add( new WarDeclaration( reader ) );
                    }

                    count = reader.ReadInt();
                    m_AcceptedWars = new List<WarDeclaration>();
                    for( int i = 0; i < count; i++ )
                    {
                        m_AcceptedWars.Add( new WarDeclaration( reader ) );
                    }

                    bool 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();

                    m_Guildstone = reader.ReadItem();
                    m_Teleporter = reader.ReadItem();

                    m_Charter = reader.ReadString();
                    m_Website = reader.ReadString();

                    break;
                }
            }

            if ( m_AllyDeclarations == null )
                m_AllyDeclarations = new List<Guild>();

            if ( m_AllyInvitations == null )
                m_AllyInvitations = new List<Guild>();

            if ( m_AcceptedWars == null )
                m_AcceptedWars = new List<WarDeclaration>();

            if ( m_PendingWars == null )
                m_PendingWars = new List<WarDeclaration>();

            /*
            if ( ( !NewGuildSystem && m_Guildstone == null )|| m_Members.Count == 0 )
//.........这里部分代码省略.........
开发者ID:Leodinas,项目名称:uolite,代码行数:101,代码来源:Guild.cs

示例6: Deserialize

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();

			switch (version)
			{
                case 2:
                    m_Serial = reader.ReadInt();
                    goto case 1;
				case 1:
					m_Guild = reader.ReadGuild() as Guild;
					goto case 0;
				case 0:
					break;
			}
		}
开发者ID:zerodowned,项目名称:angelisland,代码行数:18,代码来源:GuildRestorationDeed.cs

示例7: Deserialize

        public virtual void Deserialize( GenericReader reader )
        {
            int version = reader.ReadInt();

            switch ( version )
            {
                case 28:
                {
                    m_LastStatGain = reader.ReadDeltaTime();

                    goto case 27;
                }
                case 27:
                {
                    m_TithingPoints = reader.ReadInt();

                    goto case 26;
                }
                case 26:
                case 25:
                case 24:
                {
                    m_Corpse = reader.ReadItem() as Container;

                    goto case 23;
                }
                case 23:
                {
                    m_CreationTime = reader.ReadDateTime();

                    goto case 22;
                }
                case 22: // Just removed followers
                case 21:
                {
                    m_Stabled = reader.ReadMobileListOrNull();

                    goto case 20;
                }
                case 20:
                {
                    m_CantWalk = reader.ReadBool();

                    goto case 19;
                }
                case 19: // Just removed variables
                case 18:
                {
                    m_Virtues = VirtueInfo.Deserialize( reader );

                    goto case 17;
                }
                case 17:
                {
                    m_Thirst = reader.ReadInt();
                    m_BAC = reader.ReadInt();

                    goto case 16;
                }
                case 16:
                {
                    m_ShortTermMurders = reader.ReadInt();

                    if ( version <= 24 )
                    {
                        reader.ReadDateTime();
                        reader.ReadDateTime();
                    }

                    goto case 15;
                }
                case 15:
                {
                    if ( version < 22 )
                        reader.ReadInt(); // followers

                    m_FollowersMax = reader.ReadInt();

                    goto case 14;
                }
                case 14:
                {
                    m_MagicDamageAbsorb = reader.ReadInt();

                    goto case 13;
                }
                case 13:
                {
                    m_GuildFealty = reader.ReadMobile();

                    goto case 12;
                }
                case 12:
                {
                    m_Guild = reader.ReadGuild();

                    goto case 11;
                }
                case 11:
                {
//.........这里部分代码省略.........
开发者ID:BackupTheBerlios,项目名称:sunuo-svn,代码行数:101,代码来源:Mobile.cs

示例8: Deserialize

        public virtual void Deserialize( GenericReader reader )
        {
            int version = reader.ReadInt();

            switch ( version )
            {
                case 36:
                case 35:
                case 34:
                    {
                        byte hairflag = reader.ReadByte();

                        if ( ( hairflag & 0x01 ) != 0 )
                            m_Hair = new HairInfo( reader );

                        if ( ( hairflag & 0x02 ) != 0 )
                            m_FacialHair = new FacialHairInfo( reader );

                        m_InstanceID = reader.ReadInt();

                        m_Race = reader.ReadRace();

                        if ( version < 36 )
                            reader.ReadDeltaTime();

                        m_TithingPoints = reader.ReadInt();

                        m_Corpse = reader.ReadItem() as Container;

                        m_CreationTime = reader.ReadDateTime();

                        m_Stabled = reader.ReadStrongMobileList();

                        m_CantWalk = reader.ReadBool();

                        m_Virtues = new VirtueInfo( reader );

                        m_Thirst = reader.ReadInt();
                        m_BAC = reader.ReadInt();

                        m_ShortTermMurders = reader.ReadInt();

                        if ( version < 35 )
                            reader.ReadInt();

                        m_MagicDamageAbsorb = reader.ReadInt();

                        m_GuildFealty = reader.ReadMobile();
                        m_Guild = reader.ReadGuild();
                        m_DisplayGuildTitle = reader.ReadBool();

                        m_CanSwim = reader.ReadBool();

                        m_Squelched = reader.ReadBool();

                        m_Holding = reader.ReadItem();

                        m_BaseSoundID = reader.ReadInt();

                        m_DisarmReady = reader.ReadBool();
                        m_StunReady = reader.ReadBool();

                        m_StatCap = reader.ReadInt();

                        m_NameHue = reader.ReadInt();

                        m_Hunger = reader.ReadInt();

                        m_Location = reader.ReadPoint3D();
                        m_Body = new Body( reader.ReadInt() );
                        m_Name = reader.ReadString();
                        if ( m_Name != null )
                            m_Name = string.Intern( m_Name );
                        m_GuildTitle = reader.ReadString();
                        m_Criminal = reader.ReadBool();
                        m_Kills = reader.ReadInt();
                        m_SpeechHue = reader.ReadInt();
                        m_EmoteHue = reader.ReadInt();
                        m_WhisperHue = reader.ReadInt();
                        m_YellHue = reader.ReadInt();
                        m_Language = reader.ReadString();
                        if ( m_Language != null )
                            m_Language = string.Intern( m_Language );
                        m_Female = reader.ReadBool();
                        m_Warmode = reader.ReadBool();
                        m_Hidden = reader.ReadBool();
                        m_Direction = (Direction) reader.ReadByte();
                        m_Hue = reader.ReadInt();
                        m_Str = reader.ReadInt();
                        m_Dex = reader.ReadInt();
                        m_Int = reader.ReadInt();
                        m_Hits = reader.ReadInt();
                        m_Stam = reader.ReadInt();
                        m_Mana = reader.ReadInt();
                        m_Map = reader.ReadMap();
                        m_Blessed = reader.ReadBool();
                        m_Fame = reader.ReadInt();
                        m_Karma = reader.ReadInt();
                        m_AccessLevel = (AccessLevel) reader.ReadByte();

//.........这里部分代码省略.........
开发者ID:Ravenwolfe,项目名称:xrunuo,代码行数:101,代码来源:Mobile.cs

示例9: Deserialize

        /// <summary>
        /// Loads the settings of the specific instances of this item
        /// </summary>
        /// <param name="reader"></param>
        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );

            int version = reader.ReadEncodedInt();

            m_Charges = reader.ReadEncodedInt();
            m_Desecrated = (Desecration)reader.ReadInt();
            m_Difficulty = (Difficulty)reader.ReadInt();
            m_DischargeRate = reader.ReadEncodedInt();
            m_ControllingGuild = (Guild)reader.ReadGuild();
            m_Locked = reader.ReadBool();
            m_Mobiles = reader.ReadMobileList();
            MinorCrystals = reader.ReadItemList();
            CitySpawners = reader.ReadItemList();

            m_GuardedRegion = (GuardedRegion)Region.Find(this.Location, this.Map).GetRegion(typeof(GuardedRegion));
            m_Spawner = new CitySpawner(this);
            m_DischargeTimer = new DischargeTimer(this);
            m_RelockTimer = new RelockTimer(this);
            m_LeaderDeathTimer = new LeaderDeathTimer(this);
            Leaders = new Dictionary<MinorBarrierCrystal, Mobile>();
            CheckTimers();
        }
开发者ID:greeduomacro,项目名称:RunUO-1,代码行数:28,代码来源:BarrierCrystals.cs

示例10: Deserialize


//.........这里部分代码省略.........
						m_ShortTermMurders = reader.ReadInt32();

						if (version <= 24)
						{
							reader.ReadDateTime();
							reader.ReadDateTime();
						}

						goto case 15;
					}
				case 15:
					{
						if (version < 22)
							reader.ReadInt(); // followers

						m_FollowersMax = reader.ReadInt32();

						goto case 14;
					}
				case 14:
					{
						m_MagicDamageAbsorb = reader.ReadInt32();

						goto case 13;
					}
				case 13:
					{
						m_GuildFealty = reader.ReadMobile();

						goto case 12;
					}
				case 12:
					{
						m_Guild = reader.ReadGuild();

						goto case 11;
					}
				case 11:
					{
						m_DisplayGuildTitle = reader.ReadBool();

						goto case 10;
					}
				case 10:
					{
						m_CanSwim = reader.ReadBool();

						goto case 9;
					}
				case 9:
					{
						m_Squelched = reader.ReadBool();

						goto case 8;
					}
				case 8:
					{
						m_Holding = reader.ReadItem();

						goto case 7;
					}
				case 7:
					{
						m_VirtualArmor = reader.ReadInt32();

						goto case 6;
开发者ID:zerodowned,项目名称:angelisland,代码行数:67,代码来源:Mobile.cs


注:本文中的Server.GenericReader.ReadGuild方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。