static int GetFloatValue(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        Games.ConstConfig obj = (Games.ConstConfig)LuaScriptMgr.GetNetObjectSelf(L, 1, "Games.ConstConfig");
        float             o   = obj.GetFloatValue();

        LuaScriptMgr.Push(L, o);
        return(1);
    }
Example #2
0
        //-----------
        public static float GetFloat(ID id)
        {
            ConstConfig config = configSet [(int)id];

            return(config.GetFloatValue());
        }