mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-07-13 09:41:57 -04:00
Restarted Zig project with the new build architecture
- Renamed old src directory as backup-src
This commit is contained in:
parent
5fa931b44e
commit
e9d7d736eb
17 changed files with 316 additions and 267 deletions
27
backup-src/io/filehandler.zig
Normal file
27
backup-src/io/filehandler.zig
Normal file
|
@ -0,0 +1,27 @@
|
|||
pub const Asset = struct {
|
||||
Group: u32,
|
||||
File: u32,
|
||||
Type: u32,
|
||||
};
|
||||
|
||||
pub const FileError = enum {
|
||||
FERR_NOT_FOUND,
|
||||
FERR_OPEN,
|
||||
FERR_BLANK,
|
||||
FERR_MEMORY,
|
||||
FERR_READ,
|
||||
FERR_UNRECOGNIZED,
|
||||
FERR_INVALIDDATA,
|
||||
};
|
||||
|
||||
pub const ImageFormat = enum {
|
||||
FIMG_BGR24,
|
||||
FIMG_BGRA32,
|
||||
};
|
||||
|
||||
pub const Image = struct {
|
||||
Width: u8,
|
||||
Height: u8,
|
||||
Format: ImageFormat,
|
||||
Data: u8,
|
||||
};
|
50
backup-src/io/oiff.zig
Normal file
50
backup-src/io/oiff.zig
Normal file
|
@ -0,0 +1,50 @@
|
|||
const std = @import("std");
|
||||
const rl = @import("raylib");
|
||||
|
||||
pub const Texture = struct {
|
||||
texture: []const u8,
|
||||
buffer: []const u8,
|
||||
};
|
||||
|
||||
pub const View = struct {
|
||||
north: *Texture,
|
||||
south: *Texture,
|
||||
};
|
||||
|
||||
pub const Motives = struct {
|
||||
room: i64, // Environment in later games
|
||||
hunger: i64,
|
||||
social: i64,
|
||||
comfort: i64,
|
||||
hygiene: i64,
|
||||
fun: i64,
|
||||
energy: i64,
|
||||
bladder: i64,
|
||||
};
|
||||
|
||||
pub const Skills = struct {
|
||||
cooking: i64,
|
||||
mechanical: i64,
|
||||
charisma: i64,
|
||||
body: i64,
|
||||
logic: i64,
|
||||
creativity: i64,
|
||||
};
|
||||
|
||||
/// Open object format with similar
|
||||
pub const OpenIff = struct {
|
||||
name: []const u8,
|
||||
description: []const u8,
|
||||
version: i64,
|
||||
catagory: []const u8,
|
||||
/// Item to derive all logic from.
|
||||
/// By defualt, this comes from the base game.
|
||||
base: []const u8,
|
||||
motives: *Motives,
|
||||
skills: Skills,
|
||||
views: *View,
|
||||
|
||||
// pub fn init(file: []const u8) OpenIff {
|
||||
|
||||
// }
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue