mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
update doc/*/scripting/ecs.md
This commit is contained in:
parent
5f8919de5b
commit
639531b352
2 changed files with 6 additions and 0 deletions
|
|
@ -29,6 +29,9 @@ entity:has_component(name: str) -> bool
|
|||
|
||||
-- Enables/disables the component
|
||||
entity:set_enabled(name: str, enable: bool)
|
||||
|
||||
-- Returns id of player the entity is bound
|
||||
entity:get_player() -> int or nil
|
||||
```
|
||||
|
||||
## Built-in components
|
||||
|
|
|
|||
|
|
@ -29,6 +29,9 @@ entity:has_component(name: str) -> bool
|
|||
|
||||
-- Включает/выключает компонент по имени
|
||||
entity:set_enabled(name: str, enable: bool)
|
||||
|
||||
-- Возвращает id игрока, к которому привязана сущность
|
||||
entity:get_player() -> int или nil
|
||||
```
|
||||
|
||||
## Встроенные компоненты
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue