當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。