Пример #1
0
        internal GameHandle(RegistrationTargetBase target, LinkedListNode <UpdateContainer> updateableNode, RenderContainer renderableItem)
        {
            this.target            = target;
            target.ChangesApplied += ChangesAppliedHandler;

            this.updateableNode = updateableNode;
            this.renderableItem = renderableItem;
        }
Пример #2
0
 public void Dispose()
 {
     if (!disposed)
     {
         disposed = true;
         target.Updateables.Remove(updateableNode);
         if (renderableItem != null)
         {
             target.Renderables.Remove(renderableItem);
             renderableItem = null;
         }
     }
 }