Пример #1
0
        public TiledTextureIndex(String name)
        {
            if(String.IsNullOrWhiteSpace(name))
                throw new ArgumentOutOfRangeException();

            Type = TiledTextureIndexType.Named;

            _Column = 0;
            _Row = 0;
            _Name = name;
        }
Пример #2
0
        public TiledTextureIndex(Int32 column)
        {
            if(column < 0)
                throw new ArgumentOutOfRangeException();

            Type = TiledTextureIndexType.Column;

            _Column = column;
            _Row = 0;
            _Name = null;
        }
Пример #3
0
        public TiledTextureIndex(Int32 column, Int32 row)
        {
            if(column < 0)
                throw new ArgumentOutOfRangeException();

            if(row < 0)
                throw new ArgumentOutOfRangeException();

            Type = TiledTextureIndexType.Grid;

            _Column = column;
            _Row = row;
            _Name = null;
        }