Beispiel #1
0
        public byte[] GetBitmapData()
        {
            IntPtr pBitmapData = LandControlMap_t.GetBitmapData(Pointer);

            if (pBitmapData == IntPtr.Zero)
            {
                return(Array.Empty <byte>());
            }

            int length = (MemStruct.NumTilesX * MemStruct.NumTilesZ) / 8;

            byte[] bitmapDataBytes = new byte[length];
            Marshal.Copy(pBitmapData, bitmapDataBytes, 0, length);

            return(bitmapDataBytes);
        }
Beispiel #2
0
 public bool CanPlaceInTileAt(Vector3 pos)
 {
     return(LandControlMap_t.CanPlaceInTileAt(Pointer, ref pos));
 }
Beispiel #3
0
 public bool IsTilePlaceAble(int x, int z)
 {
     return(LandControlMap_t.IsTilePlaceAble(Pointer, x, z));
 }