コード例 #1
0
ファイル: RTSFactionManager.cs プロジェクト: whztt07/SDK
        /// <summary>Overridden from <see cref="Engine.EntitySystem.Entity.OnDestroy()"/>.</summary>
        protected override void OnDestroy()
        {
            base.OnDestroy();

            if( instance == this )//for undo support
                instance = null;
        }
コード例 #2
0
 public RTSFactionManager()
 {
     if (instance != null)
     {
         Log.Fatal("RTSFactionManager: instance != null");
     }
     instance = this;
 }
コード例 #3
0
        /// <summary>Overridden from <see cref="Engine.EntitySystem.Entity.OnPostCreate(Boolean)"/>.</summary>
        protected override void OnPostCreate(bool loaded)
        {
            if (instance == this)             //for undo support
            {
                instance = this;
            }

            base.OnPostCreate(loaded);
        }
コード例 #4
0
        /// <summary>Overridden from <see cref="Engine.EntitySystem.Entity.OnDestroy()"/>.</summary>
        protected override void OnDestroy()
        {
            base.OnDestroy();

            if (instance == this)             //for undo support
            {
                instance = null;
            }
        }
コード例 #5
0
ファイル: RTSFactionManager.cs プロジェクト: whztt07/SDK
        /// <summary>Overridden from <see cref="Engine.EntitySystem.Entity.OnPostCreate(Boolean)"/>.</summary>
        protected override void OnPostCreate( bool loaded )
        {
            if( instance == this )//for undo support
                instance = this;

            base.OnPostCreate( loaded );
        }
コード例 #6
0
ファイル: RTSFactionManager.cs プロジェクト: whztt07/SDK
 public RTSFactionManager()
 {
     if( instance != null )
         Log.Fatal( "RTSFactionManager: instance != null" );
     instance = this;
 }