osb/source/game/StarAiTypes.hpp

44 lines
761 B
C++
Raw Permalink Normal View History

#pragma once
2023-06-20 04:33:09 +00:00
#include "StarOrderedSet.hpp"
#include "StarItemDescriptor.hpp"
#include "StarAnimation.hpp"
#include "StarQuestDescriptor.hpp"
namespace Star {
STAR_EXCEPTION(AiException, StarException);
struct AiSpeech {
String animation;
String text;
float speedModifier;
};
struct AiState {
AiState();
AiState(Json const& v);
Json toJson() const;
OrderedHashSet<String> availableMissions;
OrderedHashSet<String> completedMissions;
};
struct AiSpeciesMissionText {
String buttonText;
String repeatButtonText;
AiSpeech selectSpeech;
};
struct AiMission {
String missionName;
String missionUniqueWorld;
Maybe<String> warpAnimation;
Maybe<bool> warpDeploy;
String icon;
StringMap<AiSpeciesMissionText> speciesText;
};
}