aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic2/Types.hpp
blob: bf5ee27af3cdecc6a76f64a3b5a77d64738eed3b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include <string>

namespace OpenVic2 {
   using return_t = bool;
   // This mirrors godot::Error, where `OK = 0` and `FAILED = 1`.
   static const return_t SUCCESS = false, FAILURE = true;

   struct HasIdentifier {
   private:
      std::string identifier;
   protected:
      HasIdentifier(std::string const& new_identifier);
   public:
      std::string const& get_identifier() const;
   };
}