Exemplo n.º 1
0
        public CommandList(IWorldObserver worldObserver, CommandContext context)
        {
            worldObserver.ThrowIfNull("worldObserver");
            context.ThrowIfNull("context");

            _worldObserver = worldObserver;
            _context = context;
        }
        public CommandQueue(IWorldObserver worldObserver, WorldInstance worldInstance)
        {
            _worldObserver = worldObserver;
            _worldInstance = worldInstance;
            worldObserver.ThrowIfNull("worldObserver");
            worldInstance.ThrowIfNull("worldInstance");

            _context = new CommandContext(_worldInstance, this);
            _commandList = new CommandList(worldObserver, _context);
        }