From 373b8a70698b12a8d0ba6d119ea6a86ec77a150c Mon Sep 17 00:00:00 2001 From: Lynix Date: Fri, 21 Oct 2016 02:29:09 +0200 Subject: [PATCH] SDKServer: Fix compilation --- SDK/include/NDK/LuaAPI.inl | 57 +++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 29 deletions(-) diff --git a/SDK/include/NDK/LuaAPI.inl b/SDK/include/NDK/LuaAPI.inl index 88fdb3a1f..1987bf7c1 100644 --- a/SDK/include/NDK/LuaAPI.inl +++ b/SDK/include/NDK/LuaAPI.inl @@ -835,20 +835,6 @@ namespace Nz return 1; } - /*! - * \brief Replies by value for Lua - * \return 1 in case of success - * - * \param instance Lua instance to interact with - * \param handle Resulting texture - */ - - inline int LuaImplReplyVal(const LuaInstance& instance, TextureRef&& handle, TypeTag) - { - instance.PushInstance("Texture", handle); - return 1; - } - /*! * \brief Replies by value for Lua * \return 1 in case of success @@ -1033,6 +1019,34 @@ namespace Nz #ifndef NDK_SERVER + /*! + * \brief Replies by value for Lua + * \return 1 in case of success + * + * \param instance Lua instance to interact with + * \param val Resulting sound buffer + */ + + inline int LuaImplReplyVal(const LuaInstance& instance, const SoundBuffer* val, TypeTag) + { + instance.PushInstance("SoundBuffer", val); + return 1; + } + + /*! + * \brief Replies by value for Lua + * \return 1 in case of success + * + * \param instance Lua instance to interact with + * \param handle Resulting texture + */ + + inline int LuaImplReplyVal(const LuaInstance& instance, TextureRef&& handle, TypeTag) + { + instance.PushInstance("Texture", handle); + return 1; + } + /*! * \brief Replies by value for Lua * \return 1 in case of success @@ -1060,21 +1074,6 @@ namespace Nz instance.PushInstance("GraphicsComponent", handle); return 1; } - - /*! - * \brief Replies by value for Lua - * \return 1 in case of success - * - * \param instance Lua instance to interact with - * \param val Resulting sound buffer - */ - - inline int LuaImplReplyVal(const LuaInstance& instance, const SoundBuffer* val, TypeTag) - { - instance.PushInstance("SoundBuffer", val); - return 1; - } - #endif }