Rebornbuddy
Loading...
Searching...
No Matches
ff14bot.Managers.WorkshopManager Class Reference

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< WorkShopInfoWorkShopInfo = 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.

Detailed Description

Cosmic exploration manager.

Member Function Documentation

◆ MapClassToIndex()

int ff14bot.Managers.WorkshopManager.MapClassToIndex ( ClassJobType type)
static

Maps a given ClassJobType to its corresponding index in the workshop data.

Parameters
typeThe ClassJobType to map.
Returns
The index corresponding to the specified ClassJobType. If the type does not match any predefined mapping, the method returns 0.

◆ SelectMission()

async Task< bool > ff14bot.Managers.WorkshopManager.SelectMission ( uint missionId)
static

Selects a mission by its ID and initiates it if no mission is currently active.

Parameters
missionIdThe ID of the mission to select.
Returns
A task that represents the asynchronous operation. The task result contains 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.

Member Data Documentation

◆ WorkShopInfo

FrameCachedValue<WorkShopInfo> ff14bot.Managers.WorkshopManager.WorkShopInfo = new(() => Core.Memory.Read<WorkShopInfo>(WKSInstance + Core.Offsets.WorkshopManager.InfoOffset))
static

Property Documentation

◆ ClassMissionData

ClassMissionData [] ff14bot.Managers.WorkshopManager.ClassMissionData
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.

◆ CurrentClassMissions

ClassMissionData ff14bot.Managers.WorkshopManager.CurrentClassMissions
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.

◆ CurrentMission

short ff14bot.Managers.WorkshopManager.CurrentMission
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.

◆ CurrentMissionEndTime

DateTime ff14bot.Managers.WorkshopManager.CurrentMissionEndTime
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.

◆ CurrentScore

ushort ff14bot.Managers.WorkshopManager.CurrentScore
staticget

Gets the current score associated with the ongoing mission in the workshop.

A ushort representing the current score.

◆ DevGrade

ushort ff14bot.Managers.WorkshopManager.DevGrade
staticget

Returns devgrade of active workshop.

◆ TimeRemainingOnCurrentMission

TimeSpan ff14bot.Managers.WorkshopManager.TimeRemainingOnCurrentMission
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.

◆ WKSInstance

IntPtr ff14bot.Managers.WorkshopManager.WKSInstance
staticget

Gets the pointer to the current workshop manager instance in memory.

◆ WKSResearch

WKSResearch ff14bot.Managers.WorkshopManager.WKSResearch
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.