Change casing of exports

This commit is contained in:
Ukendio 2024-05-12 19:26:10 +02:00
parent 5b0709dc6d
commit 47812350d2
2 changed files with 13 additions and 11 deletions

View file

@ -776,19 +776,22 @@ end
return table.freeze({ return table.freeze({
World = World; World = World;
ON_ADD = ON_ADD;
ON_REMOVE = ON_REMOVE; OnAdd = ON_ADD;
ON_SET = ON_SET; OnRemove = ON_REMOVE;
OnSet = ON_SET;
Wildcard = WILDCARD,
w = WILDCARD,
Rest = REST,
ECS_ID = ECS_ID, ECS_ID = ECS_ID,
IS_PAIR = ECS_IS_PAIR, IS_PAIR = ECS_IS_PAIR,
ECS_PAIR = ECS_PAIR, ECS_PAIR = ECS_PAIR,
pair = ECS_PAIR,
ECS_GENERATION = ECS_GENERATION,
ECS_GENERATION_INC = ECS_GENERATION_INC, ECS_GENERATION_INC = ECS_GENERATION_INC,
getAlive = getAlive, ECS_GENERATION = ECS_GENERATION,
ecs_get_target = ecs_get_target, ecs_get_target = ecs_get_target,
ecs_get_source = ecs_get_source, ecs_get_source = ecs_get_source,
Wildcard = WILDCARD,
w = WILDCARD, pair = ECS_PAIR,
REST = REST getAlive = getAlive,
}) })

View file

@ -7,7 +7,6 @@ local ECS_PAIR = jecs.ECS_PAIR
local getAlive = jecs.getAlive local getAlive = jecs.getAlive
local ecs_get_source = jecs.ecs_get_source local ecs_get_source = jecs.ecs_get_source
local ecs_get_target = jecs.ecs_get_target local ecs_get_target = jecs.ecs_get_target
local REST = 256 + 4
local TEST, CASE, CHECK, FINISH, SKIP = testkit.test() local TEST, CASE, CHECK, FINISH, SKIP = testkit.test()
@ -173,7 +172,7 @@ TEST("world", function()
do CASE "should increment generation" do CASE "should increment generation"
local world = jecs.World.new() local world = jecs.World.new()
local e = world:entity() local e = world:entity()
CHECK(ECS_ID(e) == 1 + jecs.REST) CHECK(ECS_ID(e) == 1 + jecs.Rest)
CHECK(getAlive(world.entityIndex, ECS_ID(e)) == e) CHECK(getAlive(world.entityIndex, ECS_ID(e)) == e)
CHECK(ECS_GENERATION(e) == 0) -- 0 CHECK(ECS_GENERATION(e) == 0) -- 0
e = ECS_GENERATION_INC(e) e = ECS_GENERATION_INC(e)