From b735bbc94ce68bd1a7b66f2f2b195e4951508d42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 14 Oct 2019 20:31:55 +0800 Subject: =?UTF-8?q?=E6=95=B4=E7=90=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server-beta/src/core/tablefield.lua | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 server-beta/src/core/tablefield.lua (limited to 'server-beta/src/core/tablefield.lua') diff --git a/server-beta/src/core/tablefield.lua b/server-beta/src/core/tablefield.lua new file mode 100644 index 00000000..a5447e3f --- /dev/null +++ b/server-beta/src/core/tablefield.lua @@ -0,0 +1,9 @@ +local m = {} + +function m:field(source, key, callback) + if source.value then + self:eachField(source.value, key, callback) + end +end + +return m -- cgit v1.2.3