Parsing Parameter Lists in C# | Thundershock Engine Devlog

Опубликовано: 26 Октябрь 2024
на канале: acidic light
38
0

Join the Discord:
https://aklnthndr.dev/discord

Two videos in one day! Hopefully this makes up for the lack of videos recently. In this video I want to show you guys something I'm doing with Thundershock's Dev Console to make it more robust.

I want to make it easier for you to register cheat codes/dev commands to the console and just have them work. I'm doing that by having the engine take in your console command argument list that you type into the console and automatically parse it into a C# parameter list.

Effectively this will let you simply add a method to your game, mark it as a cheat code (or submit it to the cheat manager class somehow), and the engine will automatically handle processing the command-line arguments behind the scenes and your cheat will get called as if it were a normal C# function.

------------------------------------

Find me on...
Twitter:   / aklnthndr  
GitHub: https://github.com/alkalinethunder
PSN: aklnthndr
The web: https://aklnthndr.dev/

Music provided by Monstercat.
https://monstercat.com/
   / monstercat