Exemplo n.º 1
0
 public HairRenderer(ICharacterRenderProperties renderProperties,
                     ISpriteSheet hairSheet)
     : base(renderProperties)
 {
     _hairSheet = hairSheet;
     _hairRenderLocationCalculator = new HairRenderLocationCalculator(_renderProperties);
 }
Exemplo n.º 2
0
        public HairRenderer(ICharacterRenderProperties renderProperties,
                            Texture2D hairTexture,
                            IPubFile <EIFRecord> itemFile)
        {
            _renderProperties = renderProperties;
            _hairTexture      = hairTexture;

            _hairRenderLocationCalculator = new HairRenderLocationCalculator(itemFile, _renderProperties);
        }
Exemplo n.º 3
0
        public HatRenderer(IShaderProvider shaderProvider,
                           ICharacterRenderProperties renderProperties,
                           ISpriteSheet hatSheet,
                           ISpriteSheet hairSheet)
            : base(renderProperties)
        {
            _shaderProvider = shaderProvider;
            _hatSheet       = hatSheet;
            _hairSheet      = hairSheet;

            _hairRenderLocationCalculator = new HairRenderLocationCalculator(_renderProperties);
        }