예제 #1
0
        static public bool checkType(IntPtr l, int p, out Rect v)
        {
            float x, y, width, height;

            if (LuaDLL.luaS_checkRect(l, p, out x, out y, out width, out height) != 0)
            {
                throw new Exception(string.Format("Invalid Rect argument at {0}", p));
            }
            v = new Rect(x, y, width, height);
            return(true);
        }