public PlayercastStatue(Mobile owner) { BaseStatue.AddStatue(this); Blessed = true; Body = 0x190; Hue = 0; Name = "a statue"; m_Material = MaterialType.GrayMarble; m_Owner = owner; m_Pose = Poses.Ready; BeginUpdate(); }
public override void OnDelete() { base.OnDelete(); if (m_Plinth != null) { m_Plinth.Delete(); } if (this.Mount != null && this.Mount is BaseMount && !((BaseMount)this.Mount).Deleted) { ((BaseMount)this.Mount).Delete(); } BaseStatue.RemoveStatue(this); }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); #region v0 m_Plinth = reader.ReadItem() as Plinth; m_HasPlinth = (m_Plinth != null); m_Material = (MaterialType)reader.ReadInt(); m_Owner = reader.ReadMobile(); m_Pose = (Poses)reader.ReadInt(); #endregion if (!BaseStatue.AllStatues.Contains(this)) { BaseStatue.AddStatue(this); } BeginUpdate(); }