Пример #1
0
        public virtual ObjectLink <T> Pop()
        {
            if (_next != null)
            {
                _next._prev = _prev;
            }
            else
            {
                _chain._top = _prev;
            }

            if (_prev != null)
            {
                _prev._next = _next;
            }
            else
            {
                _chain._bottom = _next;
            }

            var prev = _prev;

            _prev  = null;
            _next  = null;
            _chain = null;
            return(prev);
        }
Пример #2
0
 public LevelEnterEventArgs(Screen sender, ObjContainer player, ObjectChain <Game.LevelRenderStep, Game.RenderStep> renderChain)
     : base(sender)
 {
     _player      = player;
     _renderChain = renderChain;
 }
Пример #3
0
 internal protected ObjectLink(ObjectChain <T> chain, T value)
 {
     _chain = chain;
     Value  = value;
 }