Added additional convenience overloads to CreateVector().

Bug: 29337887, 29336299
Change-Id: Iad8b3b2263f6cea7ee7e45994369194960df293b
Tested: on Linux.
This commit is contained in:
Wouter van Oortmerssen
2016-06-15 12:10:01 -07:00
parent bafd48d96c
commit afa276288c
12 changed files with 244 additions and 34 deletions

View File

@@ -790,6 +790,14 @@ offsets.
~~~
</div>
<div class="language-cpp">
<br>
Note there's additional convenience overloads of `CreateVector`, allowing you
to work with data that's not in a `std::vector`, or allowing you to generate
elements by calling a lambda. For the common case of `std::vector<std::string>`
there's also `CreateVectorOfStrings`.
</div>
To create a `struct`, use the `Vec3` class/struct that was generated by
the schema compiler:
@@ -1075,7 +1083,7 @@ Here is a repetition these lines, to help highlight them more clearly:
<div class="language-c">
~~~{.c}
// Add union type and data simultanously.
ns(Monster_equipped_Weapon_add(B, axe));
ns(Monster_equipped_Weapon_add(B, axe));
~~~
</div>