예제 #1
0
        public Object Get(GLua GLua, Int32 stackPos = -1)
        {
            if (stackPos != -1)
            {
                throw new Exception("stackpos not implemented on array marshal");
            }

            return(GLua.GetArray <T>());
        }
예제 #2
0
        public object Get(GLua GLua, int stackPos = -1)
        {
            if (stackPos != -1)
            {
                throw new System.Exception("stackpos not implemented on array marshal");
            }

            GLua.GetArray <T>();
            return(null);
        }
예제 #3
0
        public object Get(GLua GLua, int stackPos = -1)
        {
            if (stackPos != -1)
            {
                throw new Exception("stackpos not implemented on array marshal");
            }

            if (GLua.IsType(stackPos, LuaType.Table))
            {
                return(GLua.GetArray <T>());
            }
            return(null);
        }
예제 #4
0
 public T[] GetT(GLua GLua) => GLua.GetArray <T>();