// Schema used to test the --cpp-vector-type flatc option, which lets the
// generated Object API use a custom vector-like container (e.g.
// eastl::vector) instead of std::vector. See tests/test_vector_type.h for
// the stand-in container used by the test, and
// tests/cpp_vector_type_test.cpp for the test itself.

namespace CppVectorTypeNS;

enum CppVectorTypeColor : byte { Red = 0, Green, Blue }

struct CppVectorTypeVec2 {
  x: float;
  y: float;
}

table CppVectorTypeMonster {
  id: int32;
}

table CppVectorTypeTest {
  ints: [int32];
  flags: [bool];
  colors: [CppVectorTypeColor];
  strings: [string];
  positions: [CppVectorTypeVec2];
  monsters: [CppVectorTypeMonster];
}

root_type CppVectorTypeTest;
