From 92aa3d6c203aef82a57efbe8216830a016db6d5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 27 Jun 2019 21:16:49 +0800 Subject: =?UTF-8?q?=E5=81=B7=E5=81=B7=E6=94=AF=E6=8C=81=E6=96=B0=E7=9A=84?= =?UTF-8?q?=20EmmyEnum?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/emmy/manager.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'server/src/emmy/manager.lua') diff --git a/server/src/emmy/manager.lua b/server/src/emmy/manager.lua index 1be0be94..931c9449 100644 --- a/server/src/emmy/manager.lua +++ b/server/src/emmy/manager.lua @@ -136,7 +136,7 @@ function mt:addAlias(source, typeObj) local list = self:getClass(aliasName) list[source.id] = aliasObj for i = 3, #source do - aliasObj:addEnum(source[i][1]) + aliasObj:addEnum(source[i][1][1], source[i].option) end return aliasObj end @@ -149,14 +149,14 @@ function mt:addParam(source, bind) paramObj:bindType(bind) self:eachClass(bind:getName(), function (class) if class.type == 'emmy.alias' then - class:eachEnum(function (enum) - paramObj:addEnum(enum) + class:eachEnum(function (enum, option) + paramObj:addEnum(enum, option) end) end end) end for i = 3, #source do - paramObj:addEnum(source[i][1]) + paramObj:addEnum(source[i][1][1], source[i].option) end paramObj:setOption(source.option) return paramObj -- cgit v1.2.3