summaryrefslogtreecommitdiffhomepage
path: root/editor
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-05-25 08:22:29 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-05-25 08:23:04 +0200
commitfbb972731b08eeb220b4af1810ab2be3932e7e1a (patch)
tree2eaa0208994c260f8663d1c688a03f0dcdbaabe4 /editor
parent9bb1c08dcda1ce757dbe473aecd5be849f5fe877 (diff)
editor/inspect: add name max length
Diffstat (limited to 'editor')
-rw-r--r--editor/inspect-types.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/inspect-types.cpp b/editor/inspect-types.cpp
index 849dcfa3..6bf87f49 100644
--- a/editor/inspect-types.cpp
+++ b/editor/inspect-types.cpp
@@ -173,6 +173,7 @@ struct entity_accessors<character> {
E::type<bool>::field{"playable"_s,
[](const character& x) { return x.playable; },
[](character& x, bool value) { x.playable = value; },
+ constantly(constraints::max_length{128}),
},
};
return std::tuple_cat(tuple0, tuple);