|
proto void | GetHourMinuteSecond (out int hour, out int minute, out int second) |
| Returns system time.
|
|
proto void | GetYearMonthDay (out int year, out int month, out int day) |
| Returns system date.
|
|
proto void | GetHourMinuteSecondUTC (out int hour, out int minute, out int second) |
| Returns UTC system time.
|
|
proto void | GetYearMonthDayUTC (out int year, out int month, out int day) |
| Returns UTC system date.
|
|
proto string | GetProfileName () |
|
proto string | GetMachineName () |
|
proto native int | TickCount (int prev) |
| performance counter. Returns number of CPU ticks between 'prev' and 'now'
|
|
proto native void | MemoryValidation (bool enable) |
| Switches memory validation (huge slowdown! Use with care only for certain section of code!)
|
|
proto bool | GetCLIParam (string param, out string val) |
| Returns command line argument.
|
|
proto native bool | IsCLIParam (string param) |
| Returns if command line argument is present.
|
|
proto native int | KeyState (KeyCode key) |
|
proto native void | ClearKey (KeyCode key) |
|
proto native int | GetMouseState (MouseState index) |
|
proto void | GetMousePos (out int x, out int y) |
|
proto void | GetScreenSize (out int x, out int y) |
|
proto native int | GetGamepadButton (GamepadButton button) |
| return if the button is pressed or not
|
|
proto native float | GetGamepadAxis (GamepadAxis axis) |
| return value in gamepad axis <-1000; 1000>
|
|
proto native ParseHandle | BeginParse (string filename) |
|
proto int | ParseLine (ParseHandle tp, int num, string tokens[]) |
|
proto native void | EndParse (ParseHandle file) |
|
proto bool | FileExist (string name) |
| Check existence of file.
|
|
proto FileHandle | OpenFile (string name, FileMode mode) |
| Opens File.
|
|
proto int | ReadFile (FileHandle file, void param_array, int length) |
|
proto void | CloseFile (FileHandle file) |
| Close the File.
|
|
proto void | FPrint (FileHandle file, void var) |
| Write to file.
|
|
proto void | FPrintln (FileHandle file, void var) |
| Write to file and add new line.
|
|
proto int | FGets (FileHandle file, string var) |
| Get line from file, every next call of this function returns next line.
|
|
enum FindFileFlags | FindFile (string pattern, out string fileName, out FileAttr fileAttributes, FindFileFlags flags) |
|
proto bool | FindNextFile (FindFileHandle handle, out string fileName, out FileAttr fileAttributes) |
|
proto native void | CloseFindFile (FindFileHandle handle) |
|
proto native bool | MakeDirectory (string name) |
| Makes a directory.
|
|
proto native bool | DeleteFile (string name) |
| delete file. Works only on "$profile:" and "$saves:" locations
|
|
proto native bool | CopyFile (string sourceName, string destName) |
| copy file. destName must be "$profile:" or "$saves:" location
|
|