146 proto native
void StartVideo(
string name);
148 proto native
void StopVideo();
531proto native
bool CopyFile(
string sourceName,
string destName);
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
proto void CloseFile(FileHandle file)
Close the File.
proto native bool MakeDirectory(string name)
Makes a directory.
proto void FPrint(FileHandle file, void var)
Write to file.
proto native void CloseFindFile(FindFileHandle handle)
proto native bool CopyFile(string sourceName, string destName)
copy file. destName must be "$profile:" or "$saves:" location
proto int FGets(FileHandle file, string var)
Get line from file, every next call of this function returns next line.
proto int ReadFile(FileHandle file, void param_array, int length)
proto FileHandle OpenFile(string name, FileMode mode)
Opens File.
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 EndParse(ParseHandle file)
proto bool FileExist(string name)
Check existence of file.
proto native bool DeleteFile(string name)
delete file. Works only on "$profile:" and "$saves:" locations
proto int ParseLine(ParseHandle tp, int num, string tokens[])
proto void FPrintln(FileHandle file, void var)
Write to file and add new line.
proto native ParseHandle BeginParse(string filename)
@ READONLY
File is read-only.
@ DIRECTORY
File is directory.
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 void ClearKey(KeyCode key)
proto native int KeyState(KeyCode key)
@ KC_HOME
Home on arrow keypad.
@ KC_PLAYPAUSE
Play / Pause.
@ KC_RIGHT
RightArrow on arrow keypad.
@ KC_MEDIASELECT
Media Select.
@ KC_RETURN
Enter on main keyboard.
@ KC_PREVTRACK
Previous Track (DIKC_CIRCUMFLEX on Japanese keyboard)
@ KC_NEXT
PgDn on arrow keypad.
@ KC_MEDIASTOP
Media Stop.
@ KC_CALCULATOR
Calculator.
@ KC_OEM_102
< > | on UK/Germany keyboards
@ KC_DECIMAL
. on numeric keypad
@ KC_DELETE
Delete on arrow keypad.
@ KC_NUMPADEQUALS
= on numeric keypad (NEC PC98)
@ KC_DOWN
DownArrow on arrow keypad.
@ KC_LEFT
LeftArrow on arrow keypad.
@ KC_NEXTTRACK
Next Track.
@ KC_NUMPADCOMMA
, on numeric keypad (NEC PC98)
@ KC_UP
UpArrow on arrow keypad.
@ KC_PRIOR
PgUp on arrow keypad.
@ KC_LWIN
Left Windows key.
@ KC_PERIOD
. on main keyboard
@ KC_END
End on arrow keypad.
@ KC_DIVIDE
/ on numeric keypad
@ KC_SLASH
/ on main keyboard
@ KC_NUMPADENTER
Enter on numeric keypad.
@ KC_RWIN
Right Windows key.
@ KC_INSERT
Insert on arrow keypad.
proto native int GetMouseState(MouseState index)
proto void GetScreenSize(out int x, out int y)
proto void GetMousePos(out int x, out int y)
proto void GetYearMonthDay(out int year, out int month, out int day)
Returns world date.
proto native int TickCount(int prev)
performance counter. Returns number of CPU ticks between 'prev' and 'now'
proto void GetYearMonthDayUTC(out int year, out int month, out int day)
Returns UTC world date.
proto void GetHourMinuteSecond(out int hour, out int minute, out int second)
Returns world time.
proto string GetProfileName()
proto native bool IsCLIParam(string param)
Returns if command line argument is present.
proto string GetMachineName()
proto void GetHourMinuteSecondUTC(out int hour, out int minute, out int second)
Returns UTC world time.
ALL
<Looks in archives and fs directories.
ARCHIVES
Looks for files in archive only. (.pak)
proto bool GetCLIParam(string param, out string val)
Returns command line argument.
proto native void MemoryValidation(bool enable)
Switches memory validation (huge slowdown! Use with care only for certain section of code!...
DIRECTORIES
Looks for files in fs directories only.