コード例 #1
0
        public EntitiesView(ContentManager content, SpriteBatch spriteBatch,
                            EntityAnimations animations, ParticleFactory particleFactory, SoundEffects soundEffects)
        {
            _spriteBatch = spriteBatch;

            _animations      = animations;
            _particleFactory = particleFactory;
            _soundEffects    = soundEffects;
            _defaultTexture  = content.Load <Texture2D>("Textures/Torch");
        }
コード例 #2
0
        public EntityView(int entityID, EntityViewProfile profile, Texture2D texture,
                          EntityAnimations animations, ParticleFactory particleFactory, SoundEffects soundEffects)
        {
            _entityID = entityID;
            _profile  = profile;

            _sprite = new Sprite(texture);

            _animations      = animations;
            _particleFactory = particleFactory;
            _soundEffects    = soundEffects;
        }