update doc/**/libentities.md

This commit is contained in:
MihailRis 2024-07-17 20:37:19 +03:00
parent 5a3f28f2b5
commit 8082048d39
2 changed files with 10 additions and 0 deletions

View File

@ -10,6 +10,11 @@ entities.get(uid: int) -> table
-- Creates the specified entity.
-- args - table of component parameter tables (ARGS variable)
-- 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)
-- Checks the existence of an entity by a unique identifier.

View File

@ -10,6 +10,11 @@ entities.get(uid: int) -> table
-- Создает указанную сущность.
-- args - таблица таблиц параметров компонентов (переменная ARGS)
-- args не является обязательным
-- структура args:
-- {префикс__имя={...}, ...}
-- префикс - id пака
-- имя - название компонента
-- префикс и имя компонента разделяются двумя подчеркиваниями
entities.spawn(name: str, pos: vec3, [optional] args: table)
-- Проверяет наличие сущности по уникальному идентификатору.