public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadEncodedInt(); m_Type = (StatueType)reader.ReadInt(); m_Pose = (StatuePose)reader.ReadInt(); m_Material = (StatueMaterial)reader.ReadInt(); m_SculptedBy = reader.ReadMobile(); m_SculptedOn = reader.ReadDateTime(); m_Plinth = reader.ReadItem() as CharacterStatuePlinth; m_IsRewardItem = reader.ReadBool(); InvalidatePose(); Frozen = true; if (m_SculptedBy == null || Map == Map.Internal) { Timer.DelayCall(TimeSpan.Zero, new TimerCallback(Delete)); } }
public void Restore(CharacterStatue from) { m_Material = from.Material; m_Pose = from.Pose; Direction = from.Direction; CloneBody(from); CloneClothes(from); InvalidateHues(); InvalidatePose(); }
public void Restore(CharacterStatue from) { this.m_Material = from.Material; this.m_Pose = from.Pose; this.Direction = from.Direction; this.CloneBody(from); this.CloneClothes(from); this.InvalidateHues(); this.InvalidatePose(); }
public CharacterStatue(Mobile from, StatueType type) : base() { m_Type = type; m_Pose = StatuePose.Ready; m_Material = StatueMaterial.Antique; Direction = Direction.South; AccessLevel = AccessLevel.Counselor; Hits = HitsMax; Blessed = true; Frozen = true; CloneBody(from); CloneClothes(from); InvalidateHues(); }
public CharacterStatue( Mobile from, StatueType type ) : base() { m_Type = type; m_Pose = StatuePose.Ready; m_Material = StatueMaterial.Antique; Direction = Direction.South; AccessLevel = AccessLevel.Counselor; Hits = HitsMax; Blessed = true; Frozen = true; CloneBody( from ); CloneClothes( from ); InvalidateHues(); }
public CharacterStatue(Mobile from, StatueType type) : base() { this.m_Type = type; this.m_Pose = StatuePose.Ready; this.m_Material = StatueMaterial.Antique; this.Direction = Direction.South; this.AccessLevel = AccessLevel.Counselor; this.Hits = this.HitsMax; this.Blessed = true; this.Frozen = true; this.CloneBody(from); this.CloneClothes(from); this.InvalidateHues(); }
public CharacterStatue(Mobile from, StatueType type) : base() { this.m_Type = type; this.m_Pose = StatuePose.Ready; this.m_Material = StatueMaterial.Antique; this.Direction = Direction.South; this.AccessLevel = AccessLevel.Counselor; this.Hits = this.HitsMax; this.Blessed = true; this.Frozen = true; this.CloneBody(from); this.CloneClothes(from); this.InvalidateHues(); }
public void Restore(CharacterStatue m) { if (m == null || m.Deleted) { return; } m_Pose = m.Pose; Direction = m.Direction; CloneBody(m); CloneClothes(m); InvalidateHues(); InvalidatePose(); }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadEncodedInt(); m_Type = (StatueType)reader.ReadInt(); m_Pose = (StatuePose)reader.ReadInt(); m_Material = (StatueMaterial)reader.ReadInt(); m_SculptedBy = reader.ReadMobile(); m_SculptedOn = reader.ReadDateTime(); m_Plinth = reader.ReadItem() as CharacterStatuePlinth; InvalidatePose(); Frozen = true; }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); reader.ReadEncodedInt(); m_Type = (StatueType)reader.ReadInt(); m_Pose = (StatuePose)reader.ReadInt(); m_SculptedBy = reader.ReadMobile(); SculptedOn = reader.ReadDateTime(); Plinth = reader.ReadItem <CharacterStatuePlinth>(); IsRewardItem = reader.ReadBool(); InvalidatePose(); Frozen = true; if (m_SculptedBy == null || Map == Map.Internal) // Remove preview statues { Timer.DelayCall(TimeSpan.Zero, Delete); } }
public void Restore( CharacterStatue from ) { m_Material = from.Material; m_Pose = from.Pose; Direction = from.Direction; CloneBody( from ); CloneClothes( from ); InvalidateHues(); InvalidatePose(); }
public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); int version = reader.ReadEncodedInt(); m_Type = (StatueType) reader.ReadInt(); m_Pose = (StatuePose) reader.ReadInt(); m_Material = (StatueMaterial) reader.ReadInt(); m_SculptedBy = reader.ReadMobile(); m_SculptedOn = reader.ReadDateTime(); m_Plinth = reader.ReadItem() as CharacterStatuePlinth; m_IsRewardItem = reader.ReadBool(); InvalidatePose(); Frozen = true; if( m_SculptedBy == null || Map == Map.Internal ) { Timer.DelayCall( TimeSpan.Zero, new TimerCallback( Delete ) ); } }
public void Restore(CharacterStatue from) { this.m_Material = from.Material; this.m_Pose = from.Pose; this.Direction = from.Direction; this.CloneBody(from); this.CloneClothes(from); this.InvalidateHues(); this.InvalidatePose(); }
public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); int version = reader.ReadEncodedInt(); m_Type = (StatueType) reader.ReadInt(); m_Pose = (StatuePose) reader.ReadInt(); m_Material = (StatueMaterial) reader.ReadInt(); m_SculptedBy = reader.ReadMobile(); m_SculptedOn = reader.ReadDateTime(); m_Plinth = reader.ReadItem() as CharacterStatuePlinth; m_IsRewardItem = reader.ReadBool(); InvalidatePose(); Frozen = true; }
public void Restore(CharacterStatue m) { if (m == null || m.Deleted) { return; } m_Pose = m.Pose; Direction = m.Direction; CloneBody(m); CloneClothes(m); InvalidateHues(); InvalidatePose(); }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); reader.ReadEncodedInt(); m_Type = (StatueType) reader.ReadInt(); m_Pose = (StatuePose) reader.ReadInt(); m_SculptedBy = reader.ReadMobile(); SculptedOn = reader.ReadDateTime(); Plinth = reader.ReadItem<CharacterStatuePlinth>(); IsRewardItem = reader.ReadBool(); InvalidatePose(); Frozen = true; if (m_SculptedBy == null || Map == Map.Internal) // Remove preview statues { Timer.DelayCall(TimeSpan.Zero, Delete); } }