Пример #1
0
        public override void Parse(string line)
        {
            string[] parts = line.Split(' ');

            float x = parts[0].ParseInvariantFloat();
            float y = parts[1].ParseInvariantFloat();

            var texture = new Texture(x, y);
            _textureDataStore.AddTexture(texture);
        }
Пример #2
0
 public void AddTexture(Texture texture)
 {
     _textures.Add(texture);
 }