26 lines
493 B
Odin
26 lines
493 B
Odin
/*
|
|
* Copyright (C) 2026 Riyyi
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
package core
|
|
|
|
import "sindri:base"
|
|
|
|
// -----------------------------------------
|
|
// Types
|
|
|
|
Game_API :: struct {
|
|
settings: proc() -> base.Settings,
|
|
register_memory: proc(),
|
|
init_once: proc(),
|
|
init: proc(),
|
|
update: proc(dt: f32),
|
|
render: proc(),
|
|
destroy: proc(),
|
|
should_close: proc() -> bool,
|
|
force_reload: proc() -> bool,
|
|
force_restart: proc() -> bool,
|
|
}
|