Esempio n. 1
0
        int SystemIOBinaryWriter_m_WriteDouble(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


            System.IO.BinaryWriter gen_to_be_invoked = (System.IO.BinaryWriter)translator.FastGetCSObj(L, 1);


            {
                double _value = LuaAPI.lua_tonumber(L, 2);

                gen_to_be_invoked.WriteDouble(_value);



                return(0);
            }
        }
Esempio n. 2
0
        static int _m_WriteDouble(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                System.IO.BinaryWriter gen_to_be_invoked = (System.IO.BinaryWriter)translator.FastGetCSObj(L, 1);



                {
                    double _value = LuaAPI.lua_tonumber(L, 2);

                    gen_to_be_invoked.WriteDouble(_value);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }