LeviLamina
Loading...
Searching...
No Matches
StringOption.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/options/option_types/Option.h"
7#include "mc/options/option_types/OptionID.h"
8#include "mc/options/option_types/OptionOwnerType.h"
9#include "mc/options/option_types/OptionResetFlags.h"
10
11class StringOption : public ::Option {
12public:
13 // member variables
14 // NOLINTBEGIN
15 ::ll::TypedStorage<8, 32, ::std::string> mValue;
16 ::ll::TypedStorage<8, 32, ::std::string> mDefaultValue;
17 ::ll::TypedStorage<8, 64, ::std::function<::std::string(::std::string const&)>> mCoerceValueCallback;
18 // NOLINTEND
19
20#ifdef LL_PLAT_S
21#else // LL_PLAT_C
22public:
23 // prevent constructor by default
24 StringOption();
25
26#endif
27public:
28 // virtual functions
29 // NOLINTBEGIN
30#ifdef LL_PLAT_S
31 virtual void save(::std::vector<::std::pair<::std::string, ::std::string>>&) /*override*/;
32#else // LL_PLAT_C
33 virtual void save(::std::vector<::std::pair<::std::string, ::std::string>>& propertyVector) /*override*/;
34#endif
35
36#ifdef LL_PLAT_S
37 virtual void load(::std::string const&) /*override*/;
38#else // LL_PLAT_C
39 virtual void load(::std::string const& valueString) /*override*/;
40#endif
41
42 // NOLINTEND
43
44public:
45 // member functions
46 // NOLINTBEGIN
47#ifdef LL_PLAT_C
48 MCAPI StringOption(
49 ::OptionID id,
50 ::OptionOwnerType ownerType,
51 ::OptionResetFlags resetFlags,
52 ::std::string const& captionId,
53 ::std::string const& saveTag,
54 ::std::string const& value
55 );
56
57 MCAPI void set(::std::string const& value, bool saveOptionChange);
58#endif
59 // NOLINTEND
60
61public:
62 // constructor thunks
63 // NOLINTBEGIN
64#ifdef LL_PLAT_C
65 MCAPI void* $ctor(
66 ::OptionID id,
67 ::OptionOwnerType ownerType,
68 ::OptionResetFlags resetFlags,
69 ::std::string const& captionId,
70 ::std::string const& saveTag,
71 ::std::string const& value
72 );
73#endif
74 // NOLINTEND
75
76public:
77 // virtual function thunks
78 // NOLINTBEGIN
79#ifdef LL_PLAT_C
80 MCAPI void $save(::std::vector<::std::pair<::std::string, ::std::string>>& propertyVector);
81
82 MCAPI void $load(::std::string const& valueString);
83#endif
84
85
86 // NOLINTEND
87
88public:
89 // vftables
90 // NOLINTBEGIN
91 MCNAPI static void** $vftable();
92 // NOLINTEND
93};
static MCAPI void ** $vftable()