JBrosDevelopment
released this
12 May 02:18
·
47 commits
to main
since this release
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 consoleclear
: Clears the consoleinput
Returns the user input from the consoleistype object, type
: Returns@bool
if the object is the correct typeregexmatch @str:input, @str:pattern
: returns@bool
if the regex match input matches the patternenvironment @str:property, ? param1, param2
: Access to Environment properties from C# library
- The math Methods:
add @int:num1, @int:num2
: add numberssubtract @int:num1, @int:num2
: subtract numbersmultiply @int:num1, @int:num2
: multiply numbersdivide @int:num1, @int:num2
: divide numberspi
: pi constantclamp @int:num, @int:min, @int:max
: clamp number between 2 numbersavg ! @int:num_params
: average of numbersoperate @str:function, ! @float:parameters
: everything in MathF from C# class.
- The basic classes:
bool
: The bool class and the methods in itstr
: The string class and the methods in it. It contains the explicit watch for anything inside''
. Also the Aliasstring
in the class.int
: The int class and the methods in itfloat
: The float class and the methods in itchar
: The charclass and the methods in itexpressions
: The expressions class is used to solve anything inside the explicit watch()
.var
: An intermediate variable class that can hold any value type.