Improved docs n stuff

This commit is contained in:
abux 2026-08-03 16:54:23 +01:00
parent f72cae1765
commit a99d45e2c4
5 changed files with 18 additions and 15 deletions

View file

@ -1,4 +1,6 @@
// --- LIBS --- //! ----------------------------------------------------
//! ----------------------------------------------------
const std = @import("std"); const std = @import("std");
const Event = @import("event.zig"); const Event = @import("event.zig");
const TypeID = @import("../template/type_id.zig").of; const TypeID = @import("../template/type_id.zig").of;

View file

@ -1,4 +1,6 @@
// --- LIBS --- //! ----------------------------------------------------
//! ----------------------------------------------------
const std = @import("std"); const std = @import("std");
const App = @import("../app.zig"); const App = @import("../app.zig");
const Plugin = @import("plugin.zig"); const Plugin = @import("plugin.zig");

View file

@ -1,4 +1,6 @@
// --- LIBS --- //! ----------------------------------------------------
//! ----------------------------------------------------
const std = @import("std"); const std = @import("std");
const Resource = @import("resource.zig"); const Resource = @import("resource.zig");
const TypeID = @import("../template/type_id.zig").of; const TypeID = @import("../template/type_id.zig").of;
@ -117,13 +119,16 @@ pub fn require(
} }
/// ---------------------------------------------------- /// ----------------------------------------------------
/// Example /// # Example
/// ``` ///
/// ```zig
/// const res = try app.resources.getMany(struct { /// const res = try app.resources.getMany(struct {
/// state: *GameState,
/// server: ?*const Server, /// server: ?*const Server,
/// client: ?*const Client, /// client: ?*const Client,
/// player: *Entity,
/// }); /// });
///
/// res.state.score += 1;
/// ``` /// ```
/// ---------------------------------------------------- /// ----------------------------------------------------
pub fn getMany( pub fn getMany(

View file

@ -1,4 +1,6 @@
// --- LIBS --- //! ----------------------------------------------------
//! ----------------------------------------------------
const std = @import("std"); const std = @import("std");
const App = @import("../app.zig"); const App = @import("../app.zig");
const System = @import("system.zig"); const System = @import("system.zig");

View file

@ -1,8 +0,0 @@
pub fn Handle(comptime T: type) type {
return struct {
pub const Type: type = T;
idx: u32 = 0,
gen: u32 = 0,
};
}