mirror of
https://github.com/Jacobwasbeast/LegacyWeaveLoader.git
synced 2026-06-06 13:04:32 +00:00
SKSE-style external mod loader with zero game source modifications. - LegacyForge.Launcher: C# console app that injects runtime DLL into game process - LegacyForgeRuntime: C++ DLL with PDB symbol resolution, MinHook function hooking, and .NET CoreCLR hosting - LegacyForge.Core: C# mod discovery and lifecycle management - LegacyForge.API: Fabric-style mod API with namespaced string IDs, fluent property builders, and event system - ExampleMod: Sample mod demonstrating block/item registration
19 lines
601 B
C#
19 lines
601 B
C#
namespace LegacyForge.API.Item;
|
|
|
|
/// <summary>
|
|
/// Fluent builder for defining item properties.
|
|
/// </summary>
|
|
public class ItemProperties
|
|
{
|
|
internal int MaxStackSizeValue = 64;
|
|
internal int MaxDamageValue = 0;
|
|
|
|
public ItemProperties MaxStackSize(int size) { MaxStackSizeValue = size; return this; }
|
|
|
|
/// <summary>
|
|
/// Set max damage for a tool/armor item. Setting this to a positive value
|
|
/// makes the item damageable with a durability bar.
|
|
/// </summary>
|
|
public ItemProperties MaxDamage(int damage) { MaxDamageValue = damage; MaxStackSizeValue = 1; return this; }
|
|
}
|