ThemModdingHerds.TFHRES
1.2.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package ThemModdingHerds.TFHRES --version 1.2.0
NuGet\Install-Package ThemModdingHerds.TFHRES -Version 1.2.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="ThemModdingHerds.TFHRES" Version="1.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ThemModdingHerds.TFHRES --version 1.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ThemModdingHerds.TFHRES, 1.2.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.
// Install ThemModdingHerds.TFHRES as a Cake Addin #addin nuget:?package=ThemModdingHerds.TFHRES&version=1.2.0 // Install ThemModdingHerds.TFHRES as a Cake Tool #tool nuget:?package=ThemModdingHerds.TFHRES&version=1.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Them's Fightin' Herds Resource reader/writer
A library for reading/writing .tfhres
files from Them's Fightin' Herds
Usage
Getting items
using ThemModdingHerds.Resource;
using ThemModdingHerds.Resource.Data;
Database database = new Database(pathToTfhresFile);
// required for any actions
database.Open();
// get all CachedImage records
List<CachedImage> images = database.ReadCachedImage();
// don't forget to close afterwards
database.Close();
Updating items
using ThemModdingHerds.Resource;
using ThemModdingHerds.Resource.Data;
Database database = new Database(pathToTfhresFile);
// required for any actions
database.Open();
// imagine we got this CachedImage "image" from "database.ReadCachedImage()"
image.Height = 100; // Change property
database.Update(image);
// don't forget to close afterwards
database.Close();
Adding new item(s)
using ThemModdingHerds.Resource;
using ThemModdingHerds.Resource.Data;
Database database = new Database(pathToTfhresFile);
// required for any actions
database.Open();
// the HiberliteId property isn't required
CachedTextfile textfile = new()
{
Shortname = "deez nuts",
SourceFile = "very/cool/path",
TextData = Encoding.UTF8.GetBytes("hah, gottem")
};
// add item to databse. this also be a list of the same item type
database.Insert(textfile);
// don't forget to close afterwards
database.Close();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Microsoft.Data.Sqlite (>= 8.0.1)
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.4.0 | 250 | 11/10/2024 | |
1.3.6 | 74 | 11/9/2024 | |
1.3.5 | 87 | 11/9/2024 | |
1.3.4 | 89 | 11/9/2024 | |
1.3.3 | 89 | 11/9/2024 | |
1.3.2 | 79 | 11/9/2024 | |
1.3.1 | 83 | 11/9/2024 | |
1.3.0 | 93 | 11/5/2024 | |
1.2.0 | 156 | 2/12/2024 | |
1.1.1 | 169 | 12/25/2023 | |
1.1.0 | 152 | 12/25/2023 | |
1.0.2 | 145 | 12/23/2023 | |
1.0.1 | 152 | 12/22/2023 | |
1.0.0 | 140 | 12/22/2023 |