wavelength 1.0.0
Loading...
Searching...
No Matches
mcloadfreqfilestask.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5#include "game/campaign.h"
8
16public:
23 ~MCLoadFreqFilesTask() override = default;
24
33 void Set(int nPort, std::vector<Campaign> *pProfiles);
34
35protected:
43 void OnStart() override;
44
52 void OnPoll() override;
53
54private:
61 void LoadNext();
62
63 int mCardPort;
64 int mIndex;
65 std::vector<Campaign> *mProfiles;
66 MCLoadFileTask mLoad;
67};
Work that reads a file into a block of memory: open, read, and close.
Definition mcloadfiletask.h:14
Task that loads every Freq file the last directory listing found into a list of profiles.
Definition mcloadfreqfilestask.h:15
~MCLoadFreqFilesTask() override=default
Destroy the object.
void Set(int nPort, std::vector< Campaign > *pProfiles)
Prepare the task.
void OnPoll() override
Decode a loaded file into its profile and start loading the next.
void OnStart() override
Size the profiles to the files, sort the files, and start loading the newest.
MemcardTask()
Construct an idle task for the first slot.
Definition memcardtask.h:41