GTAdhocAPI
Gran Turismo (6) Adhoc API Documentation
|
Functions for this module. More...
Public Member Functions | |
void | WaitAdvertiseEnd () |
Bool | IsAdvertiseBusy () |
void | SetStaticLanguage () |
Sets the game's language from the system's language. More... | |
void | SetDrawPerfMeter (Int set) |
Int | IsDrawPerfMeter () |
void | SetFrameModeLetterBox (Int set) |
Int | IsFrameModeLetterBox () |
void | ProcessUpdateIteration (ULong microseconds=1000) |
Waits for specified time on the render loop level. More... | |
String | GetRaceTimeString (Long ms) |
Gets race time string i.e '0:00.001'. More... | |
String | GetDiffTimeString (Long ms) |
Gets diff time string i.e '+00.200, +00.000, -00.200,'. More... | |
String | GetDateTimeString (MTime time) |
Gets date time string for race context i.e '29/12/2022 03:28'44'. More... | |
String | GetDateTimeStringShort (MTime time) |
Gets date time string short for race context i.e '29/12/2022 03:29'. More... | |
String | GetMoneyString (Long money) |
Gets region/locale aware money string i.e "200" for 200, "--"" for <= 0, "20,000" for 20000. More... | |
String | GetNumberString (Long number, Bool as_decimal=false) |
Gets region/locale number string i.e "200" for 200, "20,000" for 20000. More... | |
String | GetSizeString (Long size, Int scale=10) |
Gets size string for number, KB up to GB. More... | |
void | UseLogoFont (String path=nil) |
Loads logo font file. More... | |
Int | GetDipSwitch () |
Unknown. Compile-time value in engine. More... | |
void | ClearFontCache () |
Clears the font manager singleton's cache. More... | |
MTime | getBetterTime () |
Gets "better" time. More... | |
MTime | getBetterTimeLocal () |
Gets "better" time (local version). More... | |
Bool | isQABuild () |
Returns whether the game's build is intended for QA. More... | |
Public Member Functions inherited from System::Module | |
Module () | |
constructor taking no param More... | |
Module (String name) | |
Constructs. More... | |
Bool | load (String scriptName) |
Loads all modules from the specified script. More... | |
void | defineModule (Module module) |
Defines a new module within this module. More... | |
void | defineModule (Object symbol, Module module) |
Defines a new module within this module. More... | |
void | defineClass (Class class) |
Defines a new class within this module. More... | |
void | defineClass (Object symbol, Class class) |
Defines a new class within this module. More... | |
void | defineStatic (String staticName, Object staticValue) |
Defines a new static within this module. More... | |
void | defineAttribute (String attributeName, Object attributeValue) |
Defines a new attribute within this module. More... | |
void | import (Module module, Object symbol) |
Imports a module onto this one. More... | |
void | import (Module module, Object symbol, Object alias) |
Imports a module onto this one with the specified alias. More... | |
void | removeStatic (String staticName) |
Removes a specific static member from the module by name. More... | |
void | clearStatic () |
Clears all static members from the module. More... | |
void | each_attribute (FunctionObject< Array > func) |
Performs a callback on each attribute in the module. More... | |
void | map_attribute (FunctionObject< Array > func) |
Creates a new array populated with the results of calling a provided function on every element in the calling array. More... | |
Array | find_all (FunctionObject func) |
Finds all static members that matches the precondition. More... | |
Object | find_static (FunctionObject precondition) |
Finds a static member that matches the precondition. More... | |
String | getModulePath () |
Gets the module's path name. More... | |
Object | getModuleAttribute (String path) |
void | setModuleAttribute (String path, Object value) |
Object | getScopeAttribute (String path) |
void | setScopeAttribute (String path, Object value) |
Public Member Functions inherited from System::Object | |
Object () | |
constructor taking no param More... | |
Bool | isInstanceOf (Class classType) |
Returns whether an object is of a specific class/type. More... | |
Object | getDeepCopy () |
Gets a deep copy of this object. More... | |
void | setDeepCopy (Object obj) |
Unk. More... | |
String | dump () |
Dumps all info about an object. More... | |
Object | getObjectAttribute (string path) |
void | setObjectAttribute (string path, Object value) |
Bool | hasPrimitiveInterface () |
Returns whether this object has a primitive interface. More... | |
Bool | toBool () |
Casts this object to Bool. More... | |
Byte | toByte () |
Casts this object to Byte. More... | |
Short | toShort () |
Casts this object to Short. More... | |
Int | toInt () |
Casts this object to Int. More... | |
Long | toLong () |
Casts this object to Long. More... | |
UByte | toUByte () |
Casts this object to UByte. More... | |
UShort | toUShort () |
Casts this object to UShort. More... | |
UInt | toUInt () |
Casts this object to UInt. More... | |
ULong | toULong () |
Casts this object to ULong. More... | |
Float | toFloat () |
Casts this object to Float. More... | |
Double | toDouble () |
Casts this object to Double. More... | |
String | toString () |
Casts this object to String. More... | |
Symbol | toSymbol () |
Casts this object to Symbol. More... | |
Bool | hasArrayInterface () |
Returns whether this object has an Array interface. More... | |
Int | getArrayCount () |
Gets the Array item count for this object. More... | |
void | setArrayCount () |
Sets the Array item count for this object. More... | |
Object | getArrayElement (Object arg0) |
Gets an Array item for this object. More... | |
void | setArrayElement (Object arg0, Object arg1) |
Sets the Array item for this object. More... | |
Bool | hasMapInterface () |
Returns whether this object has a Map interface. More... | |
int | getMapCount () |
Returns the count of items in the map. More... | |
void | setMapElement (Object arg0, Object arg1) |
Returns whether the Map has a specific object key. Bool hasMapElement(Object arg0);. More... | |
Object | getMapElement (Object arg0) |
Gets a Map element by key. More... | |
void | hasGeneratorInterface () |
Returns whether this object has a generator interface. More... | |
Iterator | generator () |
Returns generator (?) More... | |
void | hasIteratorInterface () |
Returns whether this object has an iterator. More... | |
Iterator | iterator () |
Gets the iterator for this object. More... | |
void | hasVariableInterface () |
Returns whether this object is a variable. More... | |
void | hasFunctionInterface () |
Returns whether this object has a function interface. More... | |
Object | call () |
Calls this object as a function. More... | |
Bool | hasByteDataInterface () |
Returns whether this object has a byte data interface. More... | |
Int | getByteDataCount () |
Returns the ByteData size for this object. More... | |
void | setByteDataCount (Int count) |
Sets the ByteData size for this object. More... | |
Int | getByteDataCapacity () |
Returns the ByteData capacity for this object. More... | |
void | setByteDataCapacity (Int capacity) |
Sets the ByteData capacity for this object. More... | |
ByteData | getByteData () |
Gets the underlaying ByteData. More... | |
void | setByteData (ByteData bytedata) |
Sets the underlaying ByteData. More... | |
void | hasObjectSelectorInterface () |
Returns whether this object has an object selector interface. More... | |
void | self () |
Gets the get for this object if it has a get interface. More... | |
void | getArchiveTree () |
void | setArchiveTree () |
ByteData | serialize () |
Serializes this object. More... | |
void | deserialize (ByteData serializedData) |
Deserializes this object. More... | |
void | defined (Object obj) |
Returns whether a certain object is defined within this object. More... | |
Array | find_all (FunctionObject func) |
Finds all the elements in this object that matches the predicates. More... | |
void | each_all (FunctionObject func) |
Applies callback to all elements in this object. More... | |
Array | map_all (FunctionObject< Object > func) |
Maps all the elements in this object. More... | |
Bool | operator!= () |
Returns whether this object is not equal to another. More... | |
Bool | operator== () |
Returns whether this object is equal to another. More... | |
Public Attributes | |
const Int | MAX_LAPTIME1000 = 1209599999 |
Constant. More... | |
Public Attributes inherited from System::Module | |
String | name |
Returns the module name. More... | |
Public Attributes inherited from System::Object | |
Int | rc_size |
Getter-only. Reference counter size of this object. More... | |
Object | rc_class |
Getter-only. Type name of the object. More... | |
Int | rc_count |
Getter-only. Reference count of this object. More... | |
Int | weak_count |
Getter-only. Weak reference count of this object. More... | |
Class | class_id |
Class (type) object for this object. More... | |
Functions for this module.
Definition at line 8 of file __module__.cpp.
void pdiext::__module__::ClearFontCache | ( | ) |
Clears the font manager singleton's cache.
MTime pdiext::__module__::getBetterTime | ( | ) |
Gets "better" time.
No idea what's so better about it. Time from grim is fetched if "QABuild" resource is flagged.
MTime pdiext::__module__::getBetterTimeLocal | ( | ) |
Gets "better" time (local version).
String pdiext::__module__::GetDateTimeString | ( | MTime | time | ) |
Gets date time string for race context i.e '29/12/2022 03:28'44'.
String pdiext::__module__::GetDateTimeStringShort | ( | MTime | time | ) |
Gets date time string short for race context i.e '29/12/2022 03:29'.
Gets diff time string i.e '+00.200, +00.000, -00.200,'.
ms | Milliseconds. |
Int pdiext::__module__::GetDipSwitch | ( | ) |
Unknown. Compile-time value in engine.
Gets region/locale aware money string i.e "200" for 200, "--"" for <= 0, "20,000" for 20000.
Gets region/locale number string i.e "200" for 200, "20,000" for 20000.
number | Number. |
as_decimal | Treat as decimal instead - 20000 will be 2,000.0 |
Gets race time string i.e '0:00.001'.
ms | Milliseconds. This is a long, but any beyond uint max value wraps the string |
Gets size string for number, KB up to GB.
size | Size. |
scale | Needs more documentation, affects how different sizes are displayed |
Bool pdiext::__module__::IsAdvertiseBusy | ( | ) |
Int pdiext::__module__::IsDrawPerfMeter | ( | ) |
Functions handling perf drawing are stubbed in release.
Int pdiext::__module__::IsFrameModeLetterBox | ( | ) |
Bool pdiext::__module__::isQABuild | ( | ) |
Returns whether the game's build is intended for QA.
Checks for the compile-time "QABuild" resource.
void pdiext::__module__::ProcessUpdateIteration | ( | ULong | microseconds = 1000 | ) |
Waits for specified time on the render loop level.
Only blocks the adhoc thread, needs more info
void pdiext::__module__::SetDrawPerfMeter | ( | Int | set | ) |
Functions handling perf drawing are stubbed in release.
void pdiext::__module__::SetFrameModeLetterBox | ( | Int | set | ) |
void pdiext::__module__::SetStaticLanguage | ( | ) |
Sets the game's language from the system's language.
Depends on cellSysutilGetSystemParamInt(CELL_SYSUTIL_SYSTEMPARAM_ID_LANG) AvailableLanguages resource may have something to do with it too
void pdiext::__module__::UseLogoFont | ( | String | path = nil | ) |
Loads logo font file.
If path is not provided, the singleton instance will be deinitialized
path | Example: /font/logo/menu_imagefont.bin |
void pdiext::__module__::WaitAdvertiseEnd | ( | ) |
const Int pdiext::__module__::MAX_LAPTIME1000 = 1209599999 |
Constant.
Definition at line 64 of file __module__.cpp.