コード例 #1
0
ファイル: NavreysPillar.cs プロジェクト: Tauriella/ServUO-1
 public override void OnDoubleClick(Mobile from)
 {
     if (from.InRange(this, 3) && m_State == NavreysPillarState.On)
     {
         State = NavreysPillarState.Hot;
         m_Controller.CheckPillars();
     }
 }
コード例 #2
0
ファイル: NavreysController.cs プロジェクト: UODOC/MyShard
 private void SetAllPillars(NavreysPillarState state)
 {
     for (int i = 0; i < m_Pillars.Length; i++)
     {
         NavreysPillar pillar = m_Pillars[i];
         pillar.State = state;
     }
 }
コード例 #3
0
ファイル: NavreysPillar.cs プロジェクト: Tauriella/ServUO-1
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            State        = (NavreysPillarState)reader.ReadInt();
            m_Controller = (NavreysController)reader.ReadItem();
            m_Type       = (PillarType)reader.ReadInt();
        }
コード例 #4
0
 private void SetAllPillars( NavreysPillarState state )
 {
     for ( int i = 0; i < m_Pillars.Length; i++ )
     {
         NavreysPillar pillar = m_Pillars[i];
         pillar.State = state;
     }
 }
コード例 #5
0
ファイル: NavreysPillar.cs プロジェクト: Ravenwolfe/xrunuo
 public override void OnDoubleClick( Mobile from )
 {
     if ( from.InRange( this, 3 ) && m_State == NavreysPillarState.On )
     {
         State = NavreysPillarState.Hot;
         m_Controller.CheckPillars();
     }
 }
コード例 #6
0
ファイル: NavreysPillar.cs プロジェクト: Ravenwolfe/xrunuo
        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );

            /*int version = */
            reader.ReadInt();

            m_State = (NavreysPillarState) reader.ReadInt();
            m_Controller = (NavreysController) reader.ReadItem();
        }