Ejemplo n.º 1
0
            internal static unsafe bool Invoke(IntPtr obj, PaperSprite NewSprite)
            {
                long *p = stackalloc long[] { 0L, 0L, 0L };
                byte *b = (byte *)p;

                *((IntPtr *)(b + 0)) = NewSprite;
                Main.GetProcessEvent(obj, SetSprite_ptr, new IntPtr(p));;
                return(*((bool *)(b + 8)));
            }
        }
            internal static unsafe SlateBrush Invoke(PaperSprite Sprite, int Width, int Height)
            {
                long *p = stackalloc long[] { 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L };
                byte *b = (byte *)p;

                *((IntPtr *)(b + 0)) = Sprite;
                *((int *)(b + 8))    = Width;
                *((int *)(b + 12))   = Height;
                Main.GetProcessEvent(PaperSpriteBlueprintLibrary.DefaultObject, MakeBrushFromSprite_ptr, new IntPtr(p));;
                return(*((SlateBrush *)(b + 16)));
            }
        }
            internal static unsafe int Invoke(IntPtr obj, Transform Transform, PaperSprite Sprite, bool bWorldSpace, LinearColor Color)
            {
                long *p = stackalloc long[] { 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L };
                byte *b = (byte *)p;

                *((Transform *)(b + 0))    = Transform;
                *((IntPtr *)(b + 48))      = Sprite;
                *((bool *)(b + 56))        = bWorldSpace;
                *((LinearColor *)(b + 60)) = Color;
                Main.GetProcessEvent(obj, AddInstance_ptr, new IntPtr(p));;
                return(*((int *)(b + 76)));
            }
        }