update doc/**/libentities.md
This commit is contained in:
parent
5a3f28f2b5
commit
8082048d39
@ -10,6 +10,11 @@ entities.get(uid: int) -> table
|
|||||||
-- Creates the specified entity.
|
-- Creates the specified entity.
|
||||||
-- args - table of component parameter tables (ARGS variable)
|
-- args - table of component parameter tables (ARGS variable)
|
||||||
-- args is optional
|
-- args is optional
|
||||||
|
-- args structure:
|
||||||
|
-- {prefix__name={...}, ...}
|
||||||
|
-- prefix - component pack id
|
||||||
|
-- name - component name
|
||||||
|
-- component prefix and name are separated with two underscores
|
||||||
entities.spawn(name: str, pos: vec3, [optional] args: table)
|
entities.spawn(name: str, pos: vec3, [optional] args: table)
|
||||||
|
|
||||||
-- Checks the existence of an entity by a unique identifier.
|
-- Checks the existence of an entity by a unique identifier.
|
||||||
|
|||||||
@ -10,6 +10,11 @@ entities.get(uid: int) -> table
|
|||||||
-- Создает указанную сущность.
|
-- Создает указанную сущность.
|
||||||
-- args - таблица таблиц параметров компонентов (переменная ARGS)
|
-- args - таблица таблиц параметров компонентов (переменная ARGS)
|
||||||
-- args не является обязательным
|
-- args не является обязательным
|
||||||
|
-- структура args:
|
||||||
|
-- {префикс__имя={...}, ...}
|
||||||
|
-- префикс - id пака
|
||||||
|
-- имя - название компонента
|
||||||
|
-- префикс и имя компонента разделяются двумя подчеркиваниями
|
||||||
entities.spawn(name: str, pos: vec3, [optional] args: table)
|
entities.spawn(name: str, pos: vec3, [optional] args: table)
|
||||||
|
|
||||||
-- Проверяет наличие сущности по уникальному идентификатору.
|
-- Проверяет наличие сущности по уникальному идентификатору.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user