GTAdhocAPI
Gran Turismo (6) Adhoc API Documentation
Loading...
Searching...
No Matches
menu::MManager Class Reference

Represents a function event. More...

Inheritance diagram for menu::MManager:
menu::MEvent System::Object

Public Member Functions

 MManager ()
 constructor taking no param More...
 
MWidget createWidget (String name)
 
void registerClass (Class class)
 Registers a new class to the manager. More...
 
void registerClass (Class class, Symbol symbol)
 Registers a new class to the manager with the specified symbol. More...
 
void registerPrototypes (MComposite composite)
 
void registerPrimitives (MComposite composite)
 
void registerComponents ()
 Stubbed. More...
 
MComponent loadWidget (String widget_file_name)
 Loads a widget file (with or without .mwidget extension) More...
 
MComponent loadWidget (String dir, String widget_file_name)
 Loads a widget file (with or without .mwidget extension) More...
 
MComponent loadPrototype (String widget_file_name)
 Identical to loadWidget() More...
 
MComponent loadPrototype (String dir, String widget_file_name)
 Identical to loadWidget() More...
 
MProject loadProject (String path, Bool unk=true)
 Loads a project file (with or without .mproject extension) More...
 
void unloadProject (MProject project, Bool unk=true)
 Unloads a project. More...
 
void unloadProjectByPath (String path, Bool unk=true)
 Unloads a project by path (with or without .mproject extension) More...
 
void unloadProjectByName (String project_name, Bool unk=true)
 Unloads a project by name (with or without .mproject extension) More...
 
MProject loadResidentProject (String path)
 Loads a project that is resident - stays loaded between projects (with or without .mproject extension). More...
 
void unloadResidentProject (MProject project)
 Unloads a resident project. More...
 
Bool loadComponentProject ()
 Stubbed. More...
 
void unloadComponentProject ()
 
MUpdateContext getUpdateContext ()
 
void finishProject ()
 Terminates the current project (but may boot back into it). More...
 
MBlob loadFile (String path)
 Loads any file from the current directory (basically "/") More...
 
void loadGpb (String base_dir, String gpb_name, Bool region=false)
 Loads a GPB file globally. More...
 
void loadGpbFromMC (String path)
 Stubbed. More...
 
Int existGpbBinary (String name)
 Returns whether a specified GPB binary exists (does not check if file exists!) More...
 
MBlob getGpbBinary (String name)
 Gets a gpb file within the registered ones. More...
 
void unloadGpb (String gpb_dir, String gpb_name=nil)
 Unloads a specified GPB. More...
 
void setBufferDecryptManager (MBufferDecryptManager manager)
 
String translateAtCursorProject (String category, String pair)
 Translates from a CursorProject subcategory. More...
 
String translate (String category, String pair)
 
String translate (MNode node_name, String sub_category, String pair)
 
String getHistory (String key)
 
void setHistory (String key, String value)
 
String clearHistory (String key)
 
void loadPackage (String path)
 Loads a package (.mpackage) project. More...
 
void unloadPackage (String path)
 Unloads a specific package by path. More...
 
void unloadPackageAll ()
 Unloads all the loaded packages. More...
 
void reloadPackageAll ()
 Reloads all loaded packages. More...
 
void reloadPackages ()
 Same as reloadPackageAll() More...
 
Bool hasPackageEntry (String entry_path)
 Returns whether one of the registered packages has a specific entry. More...
 
void startProject (String current_project_name, String next_project_name)
 Starts a project. More...
 
- Public Member Functions inherited from menu::MEvent
Int dispatchEvent ()
 
- 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

Bool merge_mode
 
Bool link_mode
 
Int save_script
 
Int raw_geometry
 
Bool is_local_target
 
String target_root
 
String target_playform
 Gets or sets the target platform i.e "PS3". More...
 
String package_work
 
String product_name
 Gets or sets the product name i.e "gt6". More...
 
String project_root
 Gets or sets the project root i.e "projects/gt6". More...
 
String project_prefix
 
MRTextManager rtext_manager
 Getter-only. More...
 
- Public Attributes inherited from menu::MEvent
UInt serial
 Getter-only. Event ID/Serial, incremented after each event. More...
 
Int priority
 
String tag
 
Bool clear_event
 
- 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...
 

Detailed Description

Represents a function event.

Definition at line 8 of file MManager.cpp.

Constructor & Destructor Documentation

◆ MManager()

menu::MManager::MManager ( )
inline

constructor taking no param

Definition at line 13 of file MManager.cpp.

Member Function Documentation

◆ clearHistory()

String menu::MManager::clearHistory ( String  key)

◆ createWidget()

MWidget menu::MManager::createWidget ( String  name)

◆ existGpbBinary()

Int menu::MManager::existGpbBinary ( String  name)

Returns whether a specified GPB binary exists (does not check if file exists!)

◆ finishProject()

void menu::MManager::finishProject ( )

Terminates the current project (but may boot back into it).

If race, will boot back into previous project

◆ getGpbBinary()

MBlob menu::MManager::getGpbBinary ( String  name)

Gets a gpb file within the registered ones.

◆ getHistory()

String menu::MManager::getHistory ( String  key)

◆ getUpdateContext()

MUpdateContext menu::MManager::getUpdateContext ( )

◆ hasPackageEntry()

Bool menu::MManager::hasPackageEntry ( String  entry_path)

Returns whether one of the registered packages has a specific entry.

"/projects/%P/arcade/ArcadeOptionRoot.adc" would return true if "projects/gt6/arcade/arcade.mpackage" was loaded.

◆ loadComponentProject()

Bool menu::MManager::loadComponentProject ( )

Stubbed.

◆ loadFile()

MBlob menu::MManager::loadFile ( String  path)

Loads any file from the current directory (basically "/")

◆ loadGpb()

void menu::MManager::loadGpb ( String  base_dir,
String  gpb_name,
Bool  region = false 
)

Loads a GPB file globally.

Parameters
base_dirBase dir for the GPB. /gpb/ or /<region id> will be appended depending on the region parameter.
gpb_nameGpb name, without the extension.
regionWhether to use region "/<region>/" instead of the "/gpb/" subdir.

◆ loadGpbFromMC()

void menu::MManager::loadGpbFromMC ( String  path)

Stubbed.

◆ loadPackage()

void menu::MManager::loadPackage ( String  path)

Loads a package (.mpackage) project.

With or without extension

◆ loadProject()

MProject menu::MManager::loadProject ( String  path,
Bool  unk = true 
)

Loads a project file (with or without .mproject extension)

◆ loadPrototype() [1/2]

MComponent menu::MManager::loadPrototype ( String  dir,
String  widget_file_name 
)

Identical to loadWidget()

◆ loadPrototype() [2/2]

MComponent menu::MManager::loadPrototype ( String  widget_file_name)

Identical to loadWidget()

◆ loadResidentProject()

MProject menu::MManager::loadResidentProject ( String  path)

Loads a project that is resident - stays loaded between projects (with or without .mproject extension).

◆ loadWidget() [1/2]

MComponent menu::MManager::loadWidget ( String  dir,
String  widget_file_name 
)

Loads a widget file (with or without .mwidget extension)

◆ loadWidget() [2/2]

MComponent menu::MManager::loadWidget ( String  widget_file_name)

Loads a widget file (with or without .mwidget extension)

◆ registerClass() [1/2]

void menu::MManager::registerClass ( Class  class)

Registers a new class to the manager.

◆ registerClass() [2/2]

void menu::MManager::registerClass ( Class  class,
Symbol  symbol 
)

Registers a new class to the manager with the specified symbol.

◆ registerComponents()

void menu::MManager::registerComponents ( )

Stubbed.

◆ registerPrimitives()

void menu::MManager::registerPrimitives ( MComposite  composite)

◆ registerPrototypes()

void menu::MManager::registerPrototypes ( MComposite  composite)

◆ reloadPackageAll()

void menu::MManager::reloadPackageAll ( )

Reloads all loaded packages.

◆ reloadPackages()

void menu::MManager::reloadPackages ( )

◆ setBufferDecryptManager()

void menu::MManager::setBufferDecryptManager ( MBufferDecryptManager  manager)

◆ setHistory()

void menu::MManager::setHistory ( String  key,
String  value 
)

◆ startProject()

void menu::MManager::startProject ( String  current_project_name,
String  next_project_name 
)

Starts a project.

◆ translate() [1/2]

String menu::MManager::translate ( MNode  node_name,
String  sub_category,
String  pair 
)

◆ translate() [2/2]

String menu::MManager::translate ( String  category,
String  pair 
)

◆ translateAtCursorProject()

String menu::MManager::translateAtCursorProject ( String  category,
String  pair 
)

Translates from a CursorProject subcategory.

◆ unloadComponentProject()

void menu::MManager::unloadComponentProject ( )

◆ unloadGpb()

void menu::MManager::unloadGpb ( String  gpb_dir,
String  gpb_name = nil 
)

Unloads a specified GPB.

Parameters
gpb_dirDirectory
gpb_nameGpb name without extension, if not provided, uses ""

s/gpb/s.gpb

◆ unloadPackage()

void menu::MManager::unloadPackage ( String  path)

Unloads a specific package by path.

◆ unloadPackageAll()

void menu::MManager::unloadPackageAll ( )

Unloads all the loaded packages.

◆ unloadProject()

void menu::MManager::unloadProject ( MProject  project,
Bool  unk = true 
)

Unloads a project.

◆ unloadProjectByName()

void menu::MManager::unloadProjectByName ( String  project_name,
Bool  unk = true 
)

Unloads a project by name (with or without .mproject extension)

◆ unloadProjectByPath()

void menu::MManager::unloadProjectByPath ( String  path,
Bool  unk = true 
)

Unloads a project by path (with or without .mproject extension)

◆ unloadResidentProject()

void menu::MManager::unloadResidentProject ( MProject  project)

Unloads a resident project.

Member Data Documentation

◆ is_local_target

Bool menu::MManager::is_local_target

Definition at line 68 of file MManager.cpp.

◆ link_mode

Bool menu::MManager::link_mode

Definition at line 65 of file MManager.cpp.

◆ merge_mode

Bool menu::MManager::merge_mode

Definition at line 64 of file MManager.cpp.

◆ package_work

String menu::MManager::package_work

Definition at line 137 of file MManager.cpp.

◆ product_name

String menu::MManager::product_name

Gets or sets the product name i.e "gt6".

Definition at line 140 of file MManager.cpp.

◆ project_prefix

String menu::MManager::project_prefix

Definition at line 148 of file MManager.cpp.

◆ project_root

String menu::MManager::project_root

Gets or sets the project root i.e "projects/gt6".

Definition at line 146 of file MManager.cpp.

◆ raw_geometry

Int menu::MManager::raw_geometry

Definition at line 67 of file MManager.cpp.

◆ rtext_manager

MRTextManager menu::MManager::rtext_manager

Getter-only.

Definition at line 151 of file MManager.cpp.

◆ save_script

Int menu::MManager::save_script

Definition at line 66 of file MManager.cpp.

◆ target_playform

String menu::MManager::target_playform

Gets or sets the target platform i.e "PS3".

Definition at line 135 of file MManager.cpp.

◆ target_root

String menu::MManager::target_root

Definition at line 132 of file MManager.cpp.


The documentation for this class was generated from the following file: