mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 22:41:49 +00:00
Merge branch 'main' into headless-mode
This commit is contained in:
commit
92f11dd373
2 changed files with 4 additions and 2 deletions
|
|
@ -15,7 +15,8 @@ entities.get(uid: int) -> table
|
||||||
-- prefix - component pack id
|
-- prefix - component pack id
|
||||||
-- name - component name
|
-- name - component name
|
||||||
-- component prefix and name are separated with two underscores
|
-- component prefix and name are separated with two underscores
|
||||||
entities.spawn(name: str, pos: vec3, [optional] args: table)
|
-- Returns an entity object
|
||||||
|
entities.spawn(name: str, pos: vec3, [optional] args: table) -> table
|
||||||
|
|
||||||
-- Checks the existence of an entity by a unique identifier.
|
-- Checks the existence of an entity by a unique identifier.
|
||||||
entities.exists(uid: int) -> bool
|
entities.exists(uid: int) -> bool
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,8 @@ entities.get(uid: int) -> table
|
||||||
-- префикс - id пака
|
-- префикс - id пака
|
||||||
-- имя - название компонента
|
-- имя - название компонента
|
||||||
-- префикс и имя компонента разделяются двумя подчеркиваниями
|
-- префикс и имя компонента разделяются двумя подчеркиваниями
|
||||||
entities.spawn(name: str, pos: vec3, [optional] args: table)
|
-- Возвращает обьект сущности
|
||||||
|
entities.spawn(name: str, pos: vec3, [optional] args: table) -> table
|
||||||
|
|
||||||
-- Проверяет наличие сущности по уникальному идентификатору.
|
-- Проверяет наличие сущности по уникальному идентификатору.
|
||||||
entities.exists(uid: int) -> bool
|
entities.exists(uid: int) -> bool
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue