mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31:51 +00:00
add entity on_save event and SAVED_DATA variable
This commit is contained in:
parent
e301dbe164
commit
08cc78289d
6 changed files with 36 additions and 4 deletions
|
|
@ -12,6 +12,11 @@ local rotation = mat4.rotate({
|
|||
math.random(), math.random(), math.random()
|
||||
}, 360)
|
||||
|
||||
function on_save()
|
||||
SAVED_DATA.test = 5
|
||||
print("SAVE ENTITY")
|
||||
end
|
||||
|
||||
do -- setup visuals
|
||||
local matrix = mat4.idt()
|
||||
local icon = item.icon(dropitem.id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue