diff options
author | Gowa2017 <33367355+Gowa2017@users.noreply.github.com> | 2022-10-22 21:03:06 +0800 |
---|---|---|
committer | Gowa2017 <33367355+Gowa2017@users.noreply.github.com> | 2022-10-22 21:03:06 +0800 |
commit | 3f17721c88a2ac09742bb401e6bb8bef0f7b75d6 (patch) | |
tree | 25c7a7905081411683c55953134a5d558705d12c /meta/3rd/luaecs/library | |
parent | 51bd4160b9d012270cf6c02a426e1355336c8fa3 (diff) | |
download | lua-language-server-3f17721c88a2ac09742bb401e6bb8bef0f7b75d6.zip |
remove api sync, singleton
Diffstat (limited to 'meta/3rd/luaecs/library')
-rw-r--r-- | meta/3rd/luaecs/library/ecs.lua | 33 |
1 files changed, 4 insertions, 29 deletions
diff --git a/meta/3rd/luaecs/library/ecs.lua b/meta/3rd/luaecs/library/ecs.lua index cda82b87..2dea20b8 100644 --- a/meta/3rd/luaecs/library/ecs.lua +++ b/meta/3rd/luaecs/library/ecs.lua @@ -79,15 +79,6 @@ end function meta:select(pat) end ----Sync C memory data to the iter which contains the index id and component id by then pattern the entity meet. ----Read component with in, and write component to C which with out. ----This is a additional featur, we use select most times. ----@param pat string #pattern whcih the iter specified entity meet. ----@param iter ITER # {pool index, cid} ----@see ECSWorld#_sync -function meta:sync(pat, iter) -end - ---Sync all then component of the eneity represent by a iter ---@param iter number|ITER #ITER or entity id ---@return table @@ -121,15 +112,6 @@ end function meta:update(tagname) end ----Select a singleton component. Singleton component only hava a instance, the pool index is 1. ----`pattern` and `iter` must gived or not the same time. ----@param name string Component name ----@param pattern? string #key [opt inout] , opt is : or ?, inout is in, out, update, like t:in, b:out, id?update. **Used to select other component into the Singleton Component. ----@param iter? table # when give, is update and return it. ----@return table {1, cid, component...} -function meta:singleton(name, pattern, iter) -end - local M = { _MAXTYPE = 255, _METHODS = meta, @@ -342,22 +324,15 @@ end function meta:_object(ref, cv, index) end ----C API ----Sync data from iter to C memory. ----@param iter userdata #iter function ----@param t ITER ----@return table ----@see ECSWorld#sync -function meta:_sync(iter, t) -end - ---@param pattern string ---@param iter ITER function meta:_read(pattern, iter) end ----No use -function meta:submit(...) end +---C API +---Commit an mod of a group iter with out or new +---@param iter ITER +function meta:submit(iter) end ---@see ECSWorld:#first function meta:_first(...) end |