Basics

Basics

Commands in Jahro are snippets of your game logic you've specifically marked for runtime execution. They serve as a bridge between your game code and the Jahro console, enabling you to invoke these pieces of logic just by calling their name.

Naming Your Commands

Name - command name you'd like to see in Jahro. Please note, use spaces in command names could cause some misexecution in Text Mode.

Description - it's always useful to set few words about the command and what is does

Group Name - group name for this command. You could organize your commands in groups for easy access. Commands with empty group name, will be places in the group Default. See more about grouping here.

Types of Methods

Jahro commands can be both static and non-static methods. A static method is executed without needing an instance of the class, while a non-static method, tied to an instance, can manipulate the object state. Furthermore, these methods could be of private, internal, public, or default access modifier type.

Return Types

Commands in Jahro work with methods of return types void and string. While void methods don't give output, string methods return a value that gets logged in the Text Console. This could be useful for outputting relevant information, making your testing process even more insightful.