예제 #1
0
 public ExtendedOpenTkClient(ClientConfiguration config,
                             OpenTKRsGraphicsContext graphicsObject,
                             IFactoryCreateable <OpenTKImageProducer, ImageProducerFactoryCreationContext>
                             imageProducerFactory, IBufferFactory bufferFactory)
     : base(config, graphicsObject, imageProducerFactory, bufferFactory)
 {
     LocalPlayerWalkingQueue = new Queue <Vector2 <int> >(10);
 }
예제 #2
0
        public OpenTKClient(ClientConfiguration config, OpenTKRsGraphicsContext graphicsObject, IFactoryCreateable <OpenTKImageProducer, ImageProducerFactoryCreationContext> imageProducerFactory, IBufferFactory bufferFactory)
            : base(config, bufferFactory)
        {
            if (config == null)
            {
                throw new ArgumentNullException(nameof(config));
            }

            GraphicsObject       = graphicsObject ?? throw new ArgumentNullException(nameof(graphicsObject));
            ImageProducerFactory = imageProducerFactory ?? throw new ArgumentNullException(nameof(imageProducerFactory));
        }