예제 #1
0
 static int readDouble(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         KBEngine.MemoryStream obj = (KBEngine.MemoryStream)ToLua.CheckObject <KBEngine.MemoryStream>(L, 1);
         double o = obj.readDouble();
         LuaDLL.lua_pushnumber(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #2
0
 public override object createFromStream(MemoryStream stream)
 {
     return(stream.readDouble());
 }
예제 #3
0
		public override object createFromStream(MemoryStream stream)
		{
			return stream.readDouble();
		}