mirror of
https://github.com/cccb/servicepoint.git
synced 2025-01-18 10:00:14 +01:00
add singleton object for constants in c#
This commit is contained in:
parent
d5c4c61083
commit
e0249b61b8
|
@ -0,0 +1,14 @@
|
||||||
|
|
||||||
|
using ServicePoint;
|
||||||
|
|
||||||
|
public static class ServicePointConstants
|
||||||
|
{
|
||||||
|
private static readonly Constants _instance = ServicepointBindingUniffiMethods.GetConstants();
|
||||||
|
|
||||||
|
public static readonly ulong PixelWidth = _instance.pixelWidth;
|
||||||
|
public static readonly ulong PixelHeight = _instance.pixelHeight;
|
||||||
|
public static readonly ulong PixelCount = _instance.pixelCount;
|
||||||
|
public static readonly ulong TileWidth = _instance.tileWidth;
|
||||||
|
public static readonly ulong TileHeight = _instance.tileHeight;
|
||||||
|
public static readonly ulong TileSize = _instance.tileSize;
|
||||||
|
}
|
Loading…
Reference in a new issue