public HouseRaffleStone() : base(0xEDD) { m_Region = null; m_Bounds = new Rectangle2D(); m_Facet = null; m_Winner = null; m_Deed = null; m_Active = false; m_Started = DateTime.MinValue; m_Duration = TimeSpan.Zero; m_TicketPrice = DefaultTicketPrice; m_Entries = new List<RaffleEntry>(); Movable = false; m_AllStones.Add( this ); }
public override void OnDelete() { if ( m_Region != null ) { m_Region.Unregister(); m_Region = null; } m_AllStones.Remove( this ); base.OnDelete(); }
private void InvalidateRegion() { if ( m_Region != null ) { m_Region.Unregister(); m_Region = null; } if ( ValidLocation() ) { m_Region = new HouseRaffleRegion( this ); m_Region.Register(); } }
public HouseRaffleStone() : base(0xEDD) { this.m_Region = null; this.m_Bounds = new Rectangle2D(); this.m_Facet = null; this.m_Winner = null; this.m_Deed = null; this.m_State = HouseRaffleState.Inactive; this.m_Started = DateTime.MinValue; this.m_Duration = DefaultDuration; this.m_ExpireAction = HouseRaffleExpireAction.None; this.m_TicketPrice = DefaultTicketPrice; this.m_Entries = new List<RaffleEntry>(); this.Movable = false; m_AllStones.Add(this); }