Example #1
0
 protected virtual void SerializeChildren(PersistanceWriter op)
 {
     foreach (PersistableObject slot in this.slots)
     {
         slot.Serialize(op);
     }
 }
Example #2
0
 protected virtual void SerializeChildren(PersistanceWriter op)
 {
     for (int index = 0; index < this.m_Gumps.Count; ++index)
     {
         this.m_Gumps[index].Serialize(op);
     }
 }
Example #3
0
 public override void SerializeChildren(PersistanceWriter op)
 {
     for (int i = 0; i < m_Items.Count; ++i)
     {
         m_Items[i].Serialize(op);
     }
 }
Example #4
0
 protected override void SerializeChildren(PersistanceWriter op)
 {
     for (int index = 0; index < this.m_Runebooks.Count; ++index)
     {
         this.m_Runebooks[index].Serialize(op);
     }
 }
Example #5
0
 protected virtual void SerializeAttributes(PersistanceWriter op)
 {
     op.SetInt32("regular", this.Regular);
     op.SetInt32("yell", this.Yell);
     op.SetInt32("emote", this.Emote);
     op.SetInt32("whisper", this.Whisper);
 }
Example #6
0
 protected virtual void SerializeChildren(PersistanceWriter op)
 {
     foreach (PersistableObject mCharacter in this.m_Characters)
     {
         mCharacter.Serialize(op);
     }
 }
Example #7
0
        protected virtual void SerializeAttributes(PersistanceWriter op)
        {
            OptionFlag optionFlag = this.m_Flags | OptionFlag.HotkeysEnabled;

            op.SetInt32("flags", (int)optionFlag);
            op.SetInt32("notoQuery", (int)this.m_NotoQuery);
            op.SetInt32("houseLevel", this.m_HouseLevel);
        }
Example #8
0
		public override void SerializeChildren( PersistanceWriter op )
		{
			for ( int i = 0; i < m_Columns.Count; ++i )
				m_Columns[i].Serialize( op );

			for ( int i = 0; i < m_Items.Count; ++i )
				m_Items[i].Serialize( op );
		}
Example #9
0
 protected virtual void SerializeChildren(PersistanceWriter op)
 {
     this.m_Friends.Serialize(op);
     this.m_UseOnceAgent.Serialize(op);
     this.equipAgent.Serialize(op);
     this.RestockAgent.Serialize(op);
     this.OrganizeAgent.Serialize(op);
 }
Example #10
0
 protected virtual void SerializeAttributes(PersistanceWriter op)
 {
     op.SetRectangle("game", this.m_GameBounds);
     op.SetRectangle("screen", this.m_ScreenBounds);
     op.SetBoolean("maximized", this.m_Maximized);
     op.SetSize("full", this.m_FullSize);
     op.SetBoolean("fullscreen", this.m_Fullscreen);
 }
Example #11
0
 protected virtual void SerializeAttributes(PersistanceWriter op)
 {
     op.SetInt32("terrain-quality", this._terrainQuality);
     op.SetInt32("smoothing-mode", this._smoothingMode);
     op.SetBoolean("smooth-characters", this._smoothCharacters);
     op.SetBoolean("animated-characters", this._animatedCharacters);
     op.SetBoolean("item-shadows", this._itemShadows);
     op.SetBoolean("character-shadows", this._characterShadows);
 }
Example #12
0
 protected virtual void SerializeChildren(PersistanceWriter op)
 {
     this.m_IgnoreList.Serialize(op);
     this.m_TravelAgent.Serialize(op);
     foreach (PersistableObject mPlayer in this.m_Players)
     {
         mPlayer.Serialize(op);
     }
 }
Example #13
0
 protected virtual void SerializeAttributes(PersistanceWriter op)
 {
     op.SetString("command", this.command);
     if (this.param == null || this.param.Length <= 0)
     {
         return;
     }
     op.SetString("param", this.param);
 }
Example #14
0
 protected virtual void SerializeAttributes(PersistanceWriter op)
 {
     if (this.IsNull)
     {
         return;
     }
     op.SetString("name", this.m_Name);
     op.SetInt32("serial", this.m_Serial);
 }
		public void Serialize( PersistanceWriter op )
		{
			op.BeginObject( TypeID );
			SerializeAttributes( op );
			op.BeginChildren();
			SerializeChildren( op );
			op.FinishChildren();
			op.FinishObject();
		}
Example #16
0
 public void Serialize(PersistanceWriter op)
 {
     op.BeginObject(this.TypeID);
     SerializeAttributes(op);
     op.BeginChildren();
     SerializeChildren(op);
     op.FinishChildren();
     op.FinishObject();
 }
Example #17
0
 protected virtual void SerializeAttributes(PersistanceWriter op)
 {
     op.SetInt32("reagent-count", this.ReagentCount);
     op.SetInt32("heal-potion-count", this.HealPotionCount);
     op.SetInt32("cure-potion-count", this.CurePotionCount);
     op.SetInt32("refresh-potion-count", this.RefreshPotionCount);
     op.SetInt32("strength-potion-count", this.StrengthPotionCount);
     op.SetInt32("agility-potion-count", this.AgilityPotionCount);
     op.SetInt32("explosion-potion-count", this.ExplosionPotionCount);
 }
Example #18
0
 protected override void SerializeAttributes(PersistanceWriter op)
 {
     op.SetInt32("innocent", this.Innocent);
     op.SetInt32("ally", this.Ally);
     op.SetInt32("attackable", this.Attackable);
     op.SetInt32("criminal", this.Criminal);
     op.SetInt32("enemy", this.Enemy);
     op.SetInt32("murderer", this.Murderer);
     op.SetInt32("vendor", this.Vendor);
 }
Example #19
0
 protected virtual void SerializeChildren(PersistanceWriter op)
 {
     for (int index = 0; index < this.slots.Length; ++index)
     {
         if (this.slots[index] != null)
         {
             this.slots[index].Serialize(op);
         }
     }
 }
Example #20
0
 protected virtual void SerializeChildren(PersistanceWriter op)
 {
     this.arms.Serialize(op);
     this.dress.Serialize(op);
     if (this.mount.IsNull)
     {
         return;
     }
     this.mount.Serialize(op);
 }
Example #21
0
 protected virtual void SerializeAttributes(PersistanceWriter op)
 {
     op.SetString("name", this.m_Name);
     op.SetInt32("point-x", this.m_Point.X);
     op.SetInt32("point-y", this.m_Point.Y);
     if (this.m_Point.Z != 0)
     {
         op.SetInt32("point-z", this.m_Point.Z);
     }
     if (this.m_Facet == 0)
     {
         return;
     }
     op.SetInt32("point-f", this.m_Facet);
 }
Example #22
0
 protected virtual void SerializeAttributes(PersistanceWriter op)
 {
     if (this.IsNull)
     {
         return;
     }
     if (this.serial != 0)
     {
         op.SetInt32("serial", this.serial);
     }
     if (this.itemId == 0)
     {
         return;
     }
     op.SetInt32("itemID", this.itemId);
 }
Example #23
0
 protected virtual void SerializeChildren(PersistanceWriter op)
 {
     this._renderSettings.Serialize(op);
     if (this.m_Footsteps == null)
     {
         this.m_Footsteps = new FootstepData();
     }
     this.m_Footsteps.Serialize(op);
     this.m_Sound.Serialize(op);
     this.m_Music.Serialize(op);
     this.m_SpeechHues.Serialize(op);
     this.m_NotorietyHues.Serialize(op);
     this.m_Options.Serialize(op);
     this.m_Scavenger.Serialize(op);
     this.m_Layout.Serialize(op);
 }
Example #24
0
 protected virtual void SerializeAttributes(PersistanceWriter op)
 {
     op.SetBoolean("template-set", this.TemplateSet);
     op.SetPoint("black-pearl", (System.Drawing.Point) this.BlackPearlPos);
     op.SetPoint("blood-moss", (System.Drawing.Point) this.BloodMossPos);
     op.SetPoint("garlic", (System.Drawing.Point) this.GarlicPos);
     op.SetPoint("ginseng", (System.Drawing.Point) this.GinsengPos);
     op.SetPoint("mandrake-root", (System.Drawing.Point) this.MandrakeRootPos);
     op.SetPoint("nightshade", (System.Drawing.Point) this.NightshadePos);
     op.SetPoint("spiders-silk", (System.Drawing.Point) this.SpidersSilkPos);
     op.SetPoint("sulfurous-ash", (System.Drawing.Point) this.SulfurousAshPos);
     op.SetPoint("heal-potion", (System.Drawing.Point) this.HealPotionPos);
     op.SetPoint("cure-potion", (System.Drawing.Point) this.CurePotionPos);
     op.SetPoint("refresh-potion", (System.Drawing.Point) this.RefreshPotionPos);
     op.SetPoint("strength-potion", (System.Drawing.Point) this.StrengthPotionPos);
     op.SetPoint("agility-potion", (System.Drawing.Point) this.AgilityPotionPos);
     op.SetPoint("explosion-potion", (System.Drawing.Point) this.ExplosionPotionPos);
 }
Example #25
0
        protected virtual void SerializeAttributes(PersistanceWriter op)
        {
            int num = 0;

            if (this.Control)
            {
                num |= 1;
            }
            if (this.Alt)
            {
                num |= 2;
            }
            if (this.Shift)
            {
                num |= 4;
            }
            op.SetInt32("key", (int)this.key);
            op.SetInt32("modBits", num);
        }
Example #26
0
		public override void SerializeChildren( PersistanceWriter op )
		{
			for ( int i = 0; i < m_Values.Count; ++i )
				m_Values[i].Serialize( op );
		}
Example #27
0
 protected override void SerializeAttributes(PersistanceWriter op)
 {
     base.SerializeAttributes(op);
     op.SetString("profile", this.m_Profile);
 }
Example #28
0
 public override void SerializeAttributes(PersistanceWriter op)
 {
     op.SetString("v", m_Value);
     op.SetString("f", m_Format);
 }
Example #29
0
 public override void SerializeAttributes(PersistanceWriter op)
 {
     op.SetString("n", m_Name);
     op.SetString("f", m_FileName);
 }
Example #30
0
 protected virtual void SerializeChildren(PersistanceWriter op)
 {
     this.TargetContainer.Serialize(op);
     this.SourceContainer.Serialize(op);
 }
Example #31
0
		public override void SerializeAttributes( PersistanceWriter op )
		{
			op.SetString( "n", m_Name );
			op.SetInt32( "v", m_Value );
		}
		public virtual void SerializeAttributes( PersistanceWriter op )
		{
		}
Example #33
0
 protected override void SerializeAttributes(PersistanceWriter op)
 {
     base.SerializeAttributes(op);
     op.SetInt32("id", this.m_SkillID);
 }
Example #34
0
 protected virtual void SerializeAttributes(PersistanceWriter op)
 {
     op.SetString("name", this.m_Name);
 }
Example #35
0
 protected virtual void SerializeChildren(PersistanceWriter op)
 {
     this.m_Preferences.Serialize(op);
 }
Example #36
0
		public override void SerializeAttributes( PersistanceWriter op )
		{
			op.SetString( "v", m_Value );
			op.SetString( "f", m_Format );
		}
Example #37
0
		public override void SerializeAttributes( PersistanceWriter op )
		{
			op.SetString( "n", m_Name );
			op.SetString( "f", m_FileName );
		}
Example #38
0
		public override void SerializeAttributes( PersistanceWriter op )
		{
			op.SetString( "w", m_Width );
			op.SetString( "a", m_Align );
			op.SetString( "n", m_Name );
		}
Example #39
0
		public override void SerializeAttributes( PersistanceWriter op )
		{
			base.SerializeAttributes( op );

			op.SetBoolean( "p", m_ShowPercents );
		}
		public virtual void SerializeChildren( PersistanceWriter op )
		{
		}