Rebornbuddy
|
Cosmic exploration manager. More...
Static Public Member Functions | |
static async Task< bool > | SelectMission (uint missionId) |
Selects a mission by its ID and initiates it if no mission is currently active. | |
static int | MapClassToIndex (ClassJobType type) |
Maps a given ClassJobType to its corresponding index in the workshop data. |
Static Public Attributes | |
static FrameCachedValue< WorkShopInfo > | WorkShopInfo = new(() => Core.Memory.Read<WorkShopInfo>(WKSInstance + Core.Offsets.WorkshopManager.InfoOffset)) |
Properties | |
static IntPtr | WKSInstance [get] |
Gets the pointer to the current workshop manager instance in memory. | |
static ushort | DevGrade [get] |
Returns devgrade of active workshop. | |
static WKSResearch | WKSResearch [get] |
Gets the research data associated with the Workshop Manager. | |
static ClassMissionData[] | ClassMissionData [get] |
Gets an array of class mission data for various jobs. | |
static ClassMissionData | CurrentClassMissions [get] |
Gets the current class mission data for the player's current job. | |
static DateTime | CurrentMissionEndTime [get] |
Gets the end time of the current mission in the workshop. | |
static short | CurrentMission [get] |
Gets the identifier of the current mission in progress within the workshop. | |
static ushort | CurrentScore [get] |
Gets the current score associated with the ongoing mission in the workshop. | |
static TimeSpan | TimeRemainingOnCurrentMission [get] |
Gets the remaining time for the current mission in the workshop. |
Cosmic exploration manager.
|
static |
Maps a given ClassJobType to its corresponding index in the workshop data.
type | The ClassJobType to map. |
|
static |
Selects a mission by its ID and initiates it if no mission is currently active.
missionId | The ID of the mission to select. |
true
if the mission was successfully selected and initiated; otherwise, false
. This method ensures that no mission is currently active before attempting to select and initiate a new mission. It handles opening the mission window, selecting the mission, and confirming the selection.
|
static |
|
staticget |
Gets an array of class mission data for various jobs.
An array of ClassMissionData objects representing the mission data for different jobs.
The data is read from the workshop manager's memory and contains mission-related information for up to 10 different jobs.
|
staticget |
Gets the current class mission data for the player's current job.
A ClassMissionData object representing the mission data for the player's current job. If no mission data is available, the default value of ClassMissionData is returned.
The mission data is determined by mapping the player's current job to the corresponding index in the workshop data using the MapClassToIndex(ClassJobType) method.
|
staticget |
Gets the identifier of the current mission in progress within the workshop.
The mission identifier corresponds to the wksinfo.MissionID field and provides information about the currently active mission.
A short representing the mission ID of the current workshop mission.
|
staticget |
Gets the end time of the current mission in the workshop.
A DateTime representing the local time when the current mission will end.
The value is calculated based on the Unix timestamp retrieved from the workshop information.
|
staticget |
Gets the current score associated with the ongoing mission in the workshop.
A ushort representing the current score.
|
staticget |
Returns devgrade of active workshop.
|
staticget |
Gets the remaining time for the current mission in the workshop.
A TimeSpan representing the time left until the current mission ends.
This property calculates the time remaining by subtracting the current system time from the mission's scheduled end time.
|
staticget |
Gets the pointer to the current workshop manager instance in memory.
|
staticget |
Gets the research data associated with the Workshop Manager.
A WKSResearch structure containing the research data.
This property reads the research data from memory using the workshop manager instance pointer and the research data offset.