Пример #1
0
            internal static unsafe Name Invoke(PaperTileInfo Tile)
            {
                long *p = stackalloc long[] { 0L, 0L, 0L, 0L, 0L };
                byte *b = (byte *)p;

                *((PaperTileInfo *)(b + 0)) = Tile;
                Main.GetProcessEvent(TileMapBlueprintLibrary.DefaultObject, GetTileUserData_ptr, new IntPtr(p));;
                return(*((Name *)(b + 16)));
            }
        }
Пример #2
0
            internal static unsafe (int, PaperTileSet, bool, bool, bool) Invoke(PaperTileInfo Tile)
            {
                long *p = stackalloc long[] { 0L, 0L, 0L, 0L, 0L, 0L };
                byte *b = (byte *)p;

                *((PaperTileInfo *)(b + 0)) = Tile;
                Main.GetProcessEvent(TileMapBlueprintLibrary.DefaultObject, BreakTile_ptr, new IntPtr(p));;
                return(*((int *)(b + 16)), *((IntPtr *)(b + 24)), *((bool *)(b + 32)), *((bool *)(b + 33)), *((bool *)(b + 34)));
            }
        }
Пример #3
0
            internal static unsafe void Invoke(IntPtr obj, int X, int Y, int Layer, PaperTileInfo NewValue)
            {
                long *p = stackalloc long[] { 0L, 0L, 0L, 0L, 0L };
                byte *b = (byte *)p;

                *((int *)(b + 0))            = X;
                *((int *)(b + 4))            = Y;
                *((int *)(b + 8))            = Layer;
                *((PaperTileInfo *)(b + 16)) = NewValue;
                Main.GetProcessEvent(obj, SetTile_ptr, new IntPtr(p));;
            }
        }