|
|
@ -61,11 +61,11 @@ pub fn Pair(comptime ctx: anytype) type { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
pub fn getRelation(self: Self) Entity(ctx) { |
|
|
|
pub fn getRelation(self: Self) Entity(ctx) { |
|
|
|
return Entity(ctx).fromRaw(self.world.raw, c.ECS_PAIR_FIRST(self.raw)); |
|
|
|
return Entity(ctx).fromRaw(self.world, c.ECS_PAIR_FIRST(self.raw)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
pub fn getTarget(self: Self) Entity(ctx) { |
|
|
|
pub fn getTarget(self: Self) Entity(ctx) { |
|
|
|
return Entity(ctx).fromRaw(self.world.raw, c.ECS_PAIR_SECOND(self.raw)); |
|
|
|
return Entity(ctx).fromRaw(self.world, c.ECS_PAIR_SECOND(self.raw)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// TODO: Decide whether to copy `Id` functions over? |
|
|
|
// TODO: Decide whether to copy `Id` functions over? |
|
|
|