MW UNITY NAMESPACE








































public static class

I


Mouse Input and Keyboard Input.



public static bool

Click (EButton MouseButton, bool bHold, bool bUp)

Params:

MouseButton:

        The EButton press to listen for.

bHold:

        Whether or not to check if this button is held down.

bUp:

        Whether or not to check if this button is released.

Returns:

If MouseButton was clicked or held.



public static bool

Key (KeyCode KeyStroke, bool bHold, bool bUp)

Params:

KeyStroke:

        The KeyCode that was pressed on the keyboard.

bHold:

        Whether or not to check if this button is held down.

bUp:

        Whether or not to check if this button is released.

Returns:

If KeyStroke was pressed or Held.



public static bool

Any ()

Summary:

Identical to Input.anyKey.

Returns:

True if a key or a mouse button was pressed.


public static class

O




public static void

Out (Object[] args)

Summary:

Identical to Log.P(object[]).

Params:

args:

        The list of objects to log separated by a space.



public static async Task

AsyncWriteToFile (string Path, string NameOfFile, EWriteMode Mode, Encoding Encoding, String[] Lines)

Summary:

Writes string lines to a file asynchronously.

Params:

Path:

        The path of the file to write to.

NameOfFile:

        The name of the file to write to, including it's extension.

Mode:

         append to the file (if it exists), or overwrite the file regardless of it's existing contents.

Encoding:

        The type of

Lines:

        The lines to write.

Returns:

The asynchronous operation.



public static void

WriteToFile (string Path, string NameOfFile, EWriteMode Mode, Encoding Encoding, String[] Lines)

Summary:

Writes string lines to a file.

Params:

Path:

        The path of the file to write to.

NameOfFile:

        The name of the file to write to, including it's extension.

Mode:

         append to the file (if it exists), or overwrite the file regardless of it's existing contents.

Encoding:

        The type of

Lines:

        The lines to write.



public static bool

ReadFromFile (string Path, string NameOfFile, MArray<String>& ContentsInFile)

Summary:

Reads contents from a file into a

Params:

Path:

        The path of the file to read from.

NameOfFile:

        The name of the file to read from, including it's extension.

ContentsInFile:

        The out

Returns:

True if NameOfFile at Path was read with no errors. False if NameOfFile at Path does not exist, or is unable to be read.



public static bool

FileExists (string NameOfFile, string Path)

Summary:

Whether or not a file exists.

Params:

NameOfFile:

        Name of the file to check, including its extension.

Path:

        The path to check.

EWriteMode


The behaviour in which to write to a file.


Append

Append to the end of a file.


Overwrite

Make or write to a file, regardless of it's existing contents.