Update to new version of Arbutils.
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2020-04-09 18:19:21 +02:00
parent 70fc8d2d5f
commit 88eda6ef94
6 changed files with 32 additions and 27 deletions

View File

@@ -1,11 +1,13 @@
#ifndef CREATURELIB_SCRIPT_HPP
#define CREATURELIB_SCRIPT_HPP
#include <Arbutils/ConstString.hpp>
#include <any>
#include <string>
#include <utility>
#include <vector>
#include "../../Library/CreatureData/CreatureSpecies.hpp"
using ConstString = Arbutils::CaseInsensitiveConstString;
namespace CreatureLib::Battling {
class BaseTurnChoice;

View File

@@ -1,8 +1,9 @@
#ifndef CREATURELIB_SCRIPTSET_HPP
#define CREATURELIB_SCRIPTSET_HPP
#include <Arbutils/Collections/Dictionary.hpp>
#include <Arbutils/Collections/List.hpp>
#include <any>
#include <unordered_map>
#include "Script.hpp"
namespace CreatureLib::Battling {

View File

@@ -10,7 +10,7 @@ namespace CreatureLib::Library {
public:
constexpr SecondaryEffect() noexcept : _chance(0), _effectName(""_cnc) {}
constexpr SecondaryEffect(float chance, const Arbutils::CaseInsensitiveConstString& effectName) noexcept
SecondaryEffect(float chance, const Arbutils::CaseInsensitiveConstString& effectName) noexcept
: _chance(chance), _effectName(effectName) {}
constexpr float GetChance() const noexcept { return _chance; }