From 4161c8566d8de523bf2bbc02b37d140c201f1351 Mon Sep 17 00:00:00 2001 From: RhapsodyInGeek <44485952+RhapsodyInGeek@users.noreply.github.com> Date: Wed, 20 Sep 2023 22:20:39 -0400 Subject: [PATCH] Updated Class Property Data Type Dictionary Updated with explanation on how to set a default value other than 0 for the Dictionary / Choices data type. --- docs/class-reference.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/class-reference.md b/docs/class-reference.md index c86ea87..8379f6d 100644 --- a/docs/class-reference.md +++ b/docs/class-reference.md @@ -231,6 +231,7 @@ You can define properties for entities in the Class Properties dictionary. The " - Used for defining a set of choice key strings and their associated values - Will display a dropdown in compatible editors - Available Dictionary value types haven't been thoroughly tested + - Unlike other data types, Dictionaries have their default value optionally set in their Class Property Description as an array with 2 elements: `[description: String, value: int]` - Array - Used for bitmask flag properties - Will display a grid of checkboxes in Trenchbroom