mirror of
https://github.com/BlackMATov/evolved.lua.git
synced 2026-01-06 03:21:18 +07:00
hide evolved.id implementation details from types
This commit is contained in:
@@ -4957,9 +4957,14 @@ end
|
||||
|
||||
do
|
||||
local id = evo.pack(7, 3)
|
||||
assert(id == 0x300007)
|
||||
local index, version = evo.unpack(0x500004)
|
||||
assert(index == 4 and version == 5)
|
||||
local index, version = evo.unpack(id)
|
||||
assert(index == 7 and version == 3)
|
||||
end
|
||||
|
||||
do
|
||||
local id = evo.pack(0xFFFFF, 0x7FF)
|
||||
local index, version = evo.unpack(id)
|
||||
assert(index == 0xFFFFF and version == 0x7FF)
|
||||
end
|
||||
|
||||
do
|
||||
|
||||
Reference in New Issue
Block a user