Skip to content

Main

Latest
Compare
Choose a tag to compare
@JBrosDevelopment JBrosDevelopment released this 12 May 02:18
· 47 commits to main since this release
95a9660

Main Package

The Main Package contains all of the classes and methods to make EZCode usable. This package is automatically included in the scope. If this is not desired, use exclude main to remove it from the scope. This package includes the following:

  • The global methods:
    • print @str:text: Prints text to the console
    • clear: Clears the console
    • input Returns the user input from the console
    • istype object, type: Returns @bool if the object is the correct type
    • regexmatch @str:input, @str:pattern: returns @bool if the regex match input matches the pattern
    • environment @str:property, ? param1, param2: Access to Environment properties from C# library
  • The math Methods:
    • add @int:num1, @int:num2: add numbers
    • subtract @int:num1, @int:num2: subtract numbers
    • multiply @int:num1, @int:num2: multiply numbers
    • divide @int:num1, @int:num2: divide numbers
    • pi: pi constant
    • clamp @int:num, @int:min, @int:max: clamp number between 2 numbers
    • avg ! @int:num_params: average of numbers
    • operate @str:function, ! @float:parameters: everything in MathF from C# class.
  • The basic classes:
    • bool: The bool class and the methods in it
    • str: The string class and the methods in it. It contains the explicit watch for anything inside ''. Also the Alias string in the class.
    • int: The int class and the methods in it
    • float: The float class and the methods in it
    • char: The charclass and the methods in it
    • expressions: The expressions class is used to solve anything inside the explicit watch ().
    • var: An intermediate variable class that can hold any value type.