SFML.Game.Framework.ContentBuilder 1.0.0

dotnet add package SFML.Game.Framework.ContentBuilder --version 1.0.0
                    
NuGet\Install-Package SFML.Game.Framework.ContentBuilder -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SFML.Game.Framework.ContentBuilder" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SFML.Game.Framework.ContentBuilder" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="SFML.Game.Framework.ContentBuilder" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SFML.Game.Framework.ContentBuilder --version 1.0.0
                    
#r "nuget: SFML.Game.Framework.ContentBuilder, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SFML.Game.Framework.ContentBuilder@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SFML.Game.Framework.ContentBuilder&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=SFML.Game.Framework.ContentBuilder&version=1.0.0
                    
Install as a Cake Tool

πŸ“¦ SFML.Game.Framework.ContentBuilder

SFML.Game.Framework.ContentBuilder is a lightweight asset packaging and loading system
designed to work seamlessly with SFML.Game.Framework.

It allows developers to bundle, compress, and efficiently load game assets using a single .as (ASSETBIN) file format β€” making your game’s content pipeline faster, cleaner, and easier to manage.


πŸš€ Overview

This tool is part of the SFML.Game.Framework ecosystem and provides two core components:

  1. Asset Builder (ContentBuilder) β€” Combines multiple assets (textures, sounds, fonts, etc.) into a single .as binary file.
  2. Runtime Reader (ContentPipelineReader) β€” Efficiently reads and retrieves individual assets from the packaged file at runtime.

πŸ“ The ASSETBIN Format (.as)

The .as (ASSETBIN) file is a custom binary format that stores multiple game assets in a compact structure.

🧱 File Structure

Each .as file contains: | Section | Description | |----------|--------------| | Header | "ASSETBIN" identifier and version byte | | File Table | Asset names, lengths, and data offsets | | Asset Data | The raw binary data for each asset |

This ensures fast lookup times and minimal I/O overhead when loading content at runtime.


βš™οΈ Features

πŸ“¦ ContentBuilder

  • Combines multiple files (textures, sounds, shaders, etc.) into a single .as file.
  • Generates a compact binary table of contents for instant asset lookup.
  • Reduces file I/O operations and loading time.
  • Ideal for shipping games β€” prevents direct access to loose asset files.
  • Cross-platform compatible (Windows / Linux / macOS).

🧠 ContentPipelineReader

  • Provides an API for reading assets from the .as archive.
  • Can load individual assets directly into memory as byte arrays.
  • Includes validation and version checking.
  • Integrates seamlessly with SFML.Game.Framework.ContentManager.
// Load a .as content package
var content = new ContentPipelineReader("Assets/game_content.as");

// Retrieve a texture by name
byte[] textureBytes = content.GetByName("player");

// Convert to SFML texture
var texture = new Texture(textureBytes);
Product Compatible and additional computed target framework versions.
.NET net10.0-windows7.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 146 10/25/2025