@rbxts/covenant 1.5.1 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/covenant.d.ts +1 -1
- package/src/covenant.luau +6 -3
package/package.json
CHANGED
package/src/covenant.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Entity, Id } from "@rbxts/jecs";
|
|
2
2
|
import { CovenantHooks, Discriminator } from "./hooks";
|
|
3
3
|
import { Remove, Delete } from "./stringEnums";
|
|
4
|
+
export * from "@rbxts/jecs";
|
|
4
5
|
export type WorldChangesForReplication = Map<string, Delete | Map<string, defined | Remove>>;
|
|
5
6
|
export type WorldChangesForPrediction = Map<string, Map<string, defined | Remove>>;
|
|
6
7
|
export interface CovenantProps {
|
|
@@ -78,4 +79,3 @@ export declare class Covenant {
|
|
|
78
79
|
worldGet<T extends [Id] | [Id, Id] | [Id, Id, Id] | [Id, Id, Id, Id]>(entity: Entity, ...components: T): import("@rbxts/jecs").FlattenTuple<[...import("@rbxts/jecs").Nullable<import("@rbxts/jecs").InferComponents<T>>]>;
|
|
79
80
|
worldContains(entity: Entity): boolean;
|
|
80
81
|
}
|
|
81
|
-
export {};
|
package/src/covenant.luau
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
-- Compiled with roblox-ts v3.0.0
|
|
2
2
|
local TS = _G[script]
|
|
3
|
+
local exports = {}
|
|
3
4
|
local _jecs = TS.import(script, TS.getModule(script, "@rbxts", "jecs").jecs)
|
|
4
5
|
local ChildOf = _jecs.ChildOf
|
|
5
6
|
local pair = _jecs.pair
|
|
@@ -15,6 +16,9 @@ local _helpers = TS.import(script, script.Parent, "helpers")
|
|
|
15
16
|
local compareMaps = _helpers.compareMaps
|
|
16
17
|
local turnSetWithIdentifierToMap = _helpers.turnSetWithIdentifierToMap
|
|
17
18
|
local EventMap = TS.import(script, script.Parent, "dataStructureWithEvents").EventMap
|
|
19
|
+
for _k, _v in TS.import(script, TS.getModule(script, "@rbxts", "jecs").jecs) or {} do
|
|
20
|
+
exports[_k] = _v
|
|
21
|
+
end
|
|
18
22
|
-- Map<Entity, Delete | Map<Component, state | Remove>>
|
|
19
23
|
-- Map<Component, Map<Entity, state | Remove>>
|
|
20
24
|
local function createWorldWithRange(minClientEntity, maxClientEntity)
|
|
@@ -865,6 +869,5 @@ do
|
|
|
865
869
|
return self._world:contains(entity)
|
|
866
870
|
end
|
|
867
871
|
end
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
}
|
|
872
|
+
exports.Covenant = Covenant
|
|
873
|
+
return exports
|