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


C# GenericReader.ReadString方法代码示例

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


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

示例1: Deserialize

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

            int version = reader.ReadInt();

            int entryCount = reader.ReadInt();

            for (int i = 0; i < entryCount; i++)
                m_SystemEntries.Add(new SlayerSystemTracker(reader.ReadString(), reader.ReadInt(), reader.ReadString()));

            if (Owner is Mobile)
            {
                Mobile player = (Mobile)Owner;

                SlayerModule module = player.GetModule(typeof(SlayerModule)) as SlayerModule;

                if (module == null)
                    module = new SlayerModule(player);

                foreach (SlayerSystemTracker entry in m_SystemEntries)
                    module.SetSlayerCount(entry.SystemName, entry.SlayerCount);

                Delete();
            }
        }
开发者ID:kejel,项目名称:ForkUO,代码行数:26,代码来源:SlayerTitleAttachment_v1.0.cs

示例2: VendorInventory

        public VendorInventory( BaseHouse house, GenericReader reader )
        {
            m_House = house;

            int version = reader.ReadEncodedInt();

            m_Owner = reader.ReadMobile();
            m_VendorName = reader.ReadString();
            m_ShopName = reader.ReadString();

            m_Items = reader.ReadStrongItemList();
            m_Gold = reader.ReadInt();

            m_ExpireTime = reader.ReadDeltaTime();

            if ( m_Items.Count == 0 && m_Gold == 0 )
            {
                Timer.DelayCall( TimeSpan.Zero, new TimerCallback( Delete ) );
            }
            else
            {
                TimeSpan delay = m_ExpireTime - DateTime.UtcNow;
                m_ExpireTimer = new ExpireTimer( this, delay > TimeSpan.Zero ? delay : TimeSpan.Zero );
                m_ExpireTimer.Start();
            }
        }
开发者ID:nathanvy,项目名称:runuo,代码行数:26,代码来源:VendorInventory.cs

示例3: Deserialize

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

			int version = reader.ReadInt();

			switch ( version )
			{
				case 1:
				case 0:
				{
					m_MultiID = reader.ReadInt();
					m_Offset = reader.ReadPoint3D();
					m_ShipName = reader.ReadString();

					if ( version == 0 )
						reader.ReadUInt();

					break;
				}
			}

			if ( LootType == LootType.Newbied )
				LootType = LootType.Blessed;

			if ( Weight == 0.0 )
				Weight = 1.0;
		}
开发者ID:jsrn,项目名称:MidnightWatchServer,代码行数:28,代码来源:BaseDockedBoat.cs

示例4: Deserialize

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

            int version = reader.ReadInt();
            switch ( version )
            {
                case 1:
                {
                    string name = reader.ReadString();
                    if ( name != null && name.Length > 0 )
                    {
                        try
                        {
                            m_Contains = Type.GetType( name );
                        }
                        catch
                        {
                            m_Contains = null;
                        }
                    }
                    goto case 0;
                }
                case 0:
                {
                    break;
                }
            }
        }
开发者ID:FreeReign,项目名称:Rebirth-Repack,代码行数:29,代码来源:MortarPestle.cs

示例5: Deserialize

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

			int version = reader.ReadInt();
         
			switch ( version )
			{
				case 1:
				{
					reader.ReadInt();
					reader.ReadInt();
					reader.ReadInt();
					//this.m_TextColor = reader.ReadInt();
					//this.m_TitleColor = reader.ReadInt();
					//this.m_size = reader.ReadInt();
				}
					break;
				case 0:
				{
					reader.ReadString();
					reader.ReadString();
					reader.ReadInt();
					reader.ReadInt();
					reader.ReadInt();
					//this.NoteString = reader.ReadString();
					//this.TitleString = reader.ReadString();
					//this.m_TextColor = reader.ReadInt();
					//this.m_TitleColor = reader.ReadInt();
					//this.m_size = reader.ReadInt();
				}
					break;
			}
		}
开发者ID:Godkong,项目名称:RunUO,代码行数:34,代码来源:QuestNote.cs

示例6: Deserialize

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

			int version = reader.ReadInt();
			m_MapMarkerNameAddon = reader.ReadString();
			m_MapMarkerNote = reader.ReadString();
		}
开发者ID:greeduomacro,项目名称:dragonknights-uo,代码行数:8,代码来源:MapMarker.cs

示例7: VendorEntry

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

            m_TypeName = reader.ReadString();
            m_Price = reader.ReadInt();
            m_Remove = reader.ReadBool();

            if( version > 0 )
                m_ItemName = reader.ReadString();
        }
开发者ID:justdanofficial,项目名称:khaeros,代码行数:11,代码来源:VendorEntry.cs

示例8: Deserialize

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

            int version = reader.ReadInt();

            int entryCount = reader.ReadInt();

            for (int i = 0; i < entryCount; i++)
                SystemEntries.Add(new SlayerSystemTracker(reader.ReadString(), reader.ReadInt(), reader.ReadString()));
        }
开发者ID:greeduomacro,项目名称:cov-shard-svn-1,代码行数:11,代码来源:SlayerTitleAttachment.cs

示例9: Load

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

            c_Text = reader.ReadString();
            c_Name = reader.ReadString();
            c_Gump = reader.ReadBool();
            c_AntiMacro = reader.ReadBool();
            c_Recur = reader.ReadTimeSpan();

            StartNotify();
        }
开发者ID:Jascen,项目名称:UOSmart,代码行数:12,代码来源:Notification.cs

示例10: Load

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

            if ( version >= 1 )
            {
                c_Hue = reader.ReadInt();
                c_Name = reader.ReadString();
            }

            c_TypeString = reader.ReadString();
            c_ItemID = reader.ReadInt();
            c_Location = reader.ReadPoint3D();
            c_Map = reader.ReadMap();
        }
开发者ID:justdanofficial,项目名称:khaeros,代码行数:15,代码来源:DecoreItemInfo.cs

示例11: Deserialize

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

			int version = reader.ReadEncodedInt();

			m_Winner = reader.ReadString();
			m_Loser = reader.ReadString();
			m_GameEnd = reader.ReadDateTime();
			m_GameTime = reader.ReadTimeSpan();
			m_WinnerTime = reader.ReadTimeSpan();
			m_LoserTime = reader.ReadTimeSpan();
			m_WinnerScore = reader.ReadInt();
			m_LoserScore = reader.ReadInt();
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:15,代码来源:WinnerPaper.cs

示例12: Deserialize

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

			int version = reader.ReadInt();
			switch (version)
			{
				case 1:
					m_Condition = reader.ReadString();
					goto case 0;
				case 0:
					m_Action = reader.ReadString();
					break;
			}

		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:16,代码来源:XmlDeathAction.cs

示例13: Deserialize

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

            int numPropriedades = reader.ReadInt();

            //Console.WriteLine( "num propriedades: {0}", numpropriedades);

            //recuperas os objectivos
            propriedades = new Hashtable();
            for(int i = 0; i < numPropriedades; i++) {
                string chave = reader.ReadString();
                string valor = reader.ReadString();
                propriedades.Add(chave, valor);
            }
        }
开发者ID:evildude807,项目名称:kaltar,代码行数:16,代码来源:SistemaPropriedade.cs

示例14: Deserialize

        public void Deserialize( GenericReader reader )
        {
            int version = reader.ReadInt();
            switch( version )
            {
                case 1:
                {
                    m_SpellType = ScriptCompiler.FindTypeByName(reader.ReadString());
                    m_Icon      = reader.ReadInt();
                    m_Location      = reader.ReadPoint3D();
                    m_School    = (School)reader.ReadInt();

                    break;
                }
                case 0:
                {
                    int bad = reader.ReadInt();
                    m_Icon    = reader.ReadInt();
                    m_Location    = reader.ReadPoint3D();

                    m_SpellType = null;
                    m_School  = School.Invalid;
                    break;
                }
            }
        }
开发者ID:evildude807,项目名称:kaltar,代码行数:26,代码来源:IconInfo.cs

示例15: DeathEntry

        public DeathEntry( GenericReader reader )
        {
            int version = reader.ReadByte();

            m_Name = reader.ReadString();
            m_Deaths = reader.ReadInt();
        }
开发者ID:kamronbatman,项目名称:Defiance-AOS-Pre-2012,代码行数:7,代码来源:KillBook.cs


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