Clean up and fix double-starting music #2

Merged
nikita merged 15 commits from ratijas/muzika-gromche:work/r/double-trigger into master 2025-07-11 20:06:25 +00:00

15 Commits

Author SHA1 Message Date
ivan tkachenko aba0f6bab5 Move NuGet.Config to the root
Otherwise it doesn't work in IntelliJ Rider
2025-07-11 22:39:14 +03:00
ivan tkachenko 9176e35344 Fix double triggering start of music
State transitions are only handled by changes to previousState on
per-frame basis, so only compare before/after of previousState.
2025-07-11 22:39:14 +03:00
ivan tkachenko 2284636576 Rename State member to make it less confusing
JesterAI::previousState updates on the next frame after
currentBehaviourStateIndex changes, while current- & previous-
BehaviourStateIndex only change when SwitchToBehaviourState() is
requested.
2025-07-11 22:39:14 +03:00
ivan tkachenko 38d4ddd7c6 Quick Fix: Object initialization can be simplified (IDE0017) 2025-07-11 22:39:14 +03:00
ivan tkachenko e82f2c5924 Consistently use equality operator for state indexes 2025-07-11 22:39:14 +03:00
ivan tkachenko 45bde29240 Auto format code 2025-07-11 22:39:14 +03:00
ivan tkachenko 066304a9fe Implement zip bundle as an after-build msbuild target, keep versions in sync 2025-07-11 22:39:11 +03:00
ivan tkachenko af45b958fd Make build config more portable with user-specified git-ignored paths 2025-07-10 19:06:14 +03:00
ivan tkachenko 4144069b41 New gitignore from template
$ dotnet new gitignore
2025-07-10 18:55:34 +03:00
ivan tkachenko 2bd17424cd Speed up cranking timer in debug builds
The code does not appear to be in `dotnet build --configuration Release`
2025-07-10 18:55:34 +03:00
ivan tkachenko cb1002d339 Add support for WAV and OGG/VORBIS audio files 2025-07-10 18:55:34 +03:00
ivan tkachenko 68b4e120db Organize code into functions, add some comments, add a null check 2025-07-10 18:55:34 +03:00
ivan tkachenko a65dd56bc3 Convert mixed indentation to spaces 2025-07-10 18:55:34 +03:00
ivan tkachenko ef1e2fd70b Add README, icon and manifest from Thunderstore bundle 2025-07-10 18:55:34 +03:00
ivan tkachenko 9100bbe8a3 add more things to gitignore 2025-07-10 18:55:34 +03:00