You are viewing a potentially older version of this package. View all versions.
danielstegink-DanielSteginkUtils-4.1.0 icon

DanielSteginkUtils

Library of various helpers and utilities

Date uploaded a week ago
Version 4.1.0
Download link danielstegink-DanielSteginkUtils-4.1.0.zip
Downloads 1105
Dependency string danielstegink-DanielSteginkUtils-4.1.0

This mod requires the following mods to function

BepInEx-BepInExPack_Silksong-5.4.2304 icon
BepInEx-BepInExPack_Silksong

BepInEx modloader. Preconfigured and ready to use.

Preferred version: 5.4.2304
SFGrenade-WavLib-1.1.1 icon
SFGrenade-WavLib

Lightweight RIFF WAVE library for .NET Framework, .NET Standard and .NET Core.

Preferred version: 1.1.1

README

DanielSteginkUtils

A code library containing various helper classes and logic I've accumulated in my modding journey.

General structure

  • ExternalFiles - Utilities for interacting with external files such as AssetBundles
    • GetAssetBundle - Loads asset bundles
    • GetAudioClip - Converts audio files in embedded resources to AudioClips
    • GetSprite - Loads image files in embedded resources to Sprites
  • Helpers - Utilities for implementing common gameplay mechanics
    • DamageEnemy - Deals damage to an enemy
    • GetEnemy - Gets nearby enemies
    • GetTools - Gets a list of equipped tools
    • Needolin - Handles changes to the Needolin's sound clip
  • Loggers - Utilities specifically for logging information
    • EnemyDamagerLogger - Logs when an enemy takes damage. Has to be manually enabled via EnemyDamageLogger.Toggle
  • Utilities - Various libraries for logic and calculations
    • Calculations - Performs numeric calculations and conversions
    • ClassIntegrations - Accesses properties, fields and methods from other classes
    • Components - Deals with Unity components
    • NotchCosts - Calculates the value of different bonuses in terms of charm notches from Hollow Knight

Special Thanks

Logo by cristina233_

CHANGELOG

Changelog

4.1.1

  • Added Obsolete tags to old methods

4.1.0

  • Added alternate versions of GetAudioClip and GetSprite that take the Assembly as input

4.0.0

  • Split code in GetAudioClip to create GetAudioClipFromStream
  • Added new helper class: Needolin

3.1.1

  • Adjusted internal code to hopefully stop triggering Thunderstore's security filter

3.1.0

  • Bug fix for EnemyDamageLogger

3.0.0

  • Logging fix for GetAudioClip
  • Added GetSprite
  • Changed ClassIntegrations to explicitly allow null inputs

2.0.2

  • Fixed TOML to include dependency

2.0.1

  • Fixed manifest to include dependency

2.0.0

  • Added GetAssetBundle, GetAudioClip, DamageEnemy, GetEnemy, GetTools, EnemyDamageLogger, Components
  • Improved documentation
  • Modified deployment to include XML documentation

1.2.0

  • Added NotchCosts and Calculations

1.1.4

  • Modified ClassIntegrations to support static classes (null input)

1.1.3

  • Fixed namespace bug