TMXGlueLib.TilesetExtensionMethods.CoordinateToLocalId C# (CSharp) Метод

CoordinateToLocalId() публичный статический Метод

public static CoordinateToLocalId ( this tileset, int xCoordinate, int yCoordinate ) : int
tileset this
xCoordinate int
yCoordinate int
Результат int
        public static int CoordinateToLocalId(this Tileset tileset, int xCoordinate, int yCoordinate)
        {
            int xIndex;
            int yIndex;

            tileset.CoordinateToIndex(xCoordinate, yCoordinate, out xIndex, out yIndex);

            return tileset.IndexToLocalId(xIndex, yIndex);

        }