Remove reference to main.zig where possible

main
copygirl 9 months ago
parent 7f3e79781e
commit c9bf64a34c
  1. 8
      src/entity.zig
  2. 3
      src/id.zig
  3. 2
      src/iter.zig
  4. 3
      src/pair.zig
  5. 8
      src/world.zig

@ -1,11 +1,10 @@
const std = @import("std"); const std = @import("std");
const Allocator = std.mem.Allocator; const Allocator = std.mem.Allocator;
const meta = @import("./meta.zig"); const c = @import("./c.zig");
const errors = @import("./errors.zig"); const errors = @import("./errors.zig");
const flecszigble = @import("./main.zig"); const meta = @import("./meta.zig");
const Path = flecszigble.Path; const Path = @import("./path.zig");
const c = flecszigble.c;
pub const EntityError = error{ pub const EntityError = error{
/// Id is `0`. /// Id is `0`.
@ -345,6 +344,7 @@ pub fn Entity(comptime ctx: anytype) type {
} }
const expect = @import("./test/expect.zig"); const expect = @import("./test/expect.zig");
const flecszigble = @import("./main.zig");
test "Entity get and set" { test "Entity get and set" {
flecszigble.init(std.testing.allocator); flecszigble.init(std.testing.allocator);

@ -1,5 +1,4 @@
const flecszigble = @import("./main.zig"); const c = @import("./c.zig");
const c = flecszigble.c;
pub const IdError = error{ pub const IdError = error{
/// Id is `0`. /// Id is `0`.

@ -1,5 +1,5 @@
const c = @import("./c.zig");
const flecszigble = @import("./main.zig"); const flecszigble = @import("./main.zig");
const c = flecszigble.c;
pub fn Iter(comptime ctx: anytype) type { pub fn Iter(comptime ctx: anytype) type {
return struct { return struct {

@ -1,5 +1,4 @@
const flecszigble = @import("./main.zig"); const c = @import("./c.zig");
const c = flecszigble.c;
pub const PairError = error{ pub const PairError = error{
/// Id is `0`. /// Id is `0`.

@ -1,11 +1,11 @@
const std = @import("std"); const std = @import("std");
const Allocator = std.mem.Allocator; const Allocator = std.mem.Allocator;
const meta = @import("./meta.zig");
const errors = @import("./errors.zig");
const flecszigble = @import("./main.zig"); const flecszigble = @import("./main.zig");
const Path = flecszigble.Path; const c = @import("./c.zig");
const c = flecszigble.c; const errors = @import("./errors.zig");
const meta = @import("./meta.zig");
const Path = @import("./path.zig");
pub fn World(comptime ctx: anytype) type { pub fn World(comptime ctx: anytype) type {
return struct { return struct {

Loading…
Cancel
Save