Enum FieldType
- Namespace
- Typhon.Schema.Definition
- Assembly
- Typhon.Schema.Definition.dll
Identifies the storage type of a component field. The two high bits Unsigned and DoubleFloat are flags OR-ed onto a base type to form its unsigned-integer or double-precision variant (e.g. UInt = Unsigned | Int); the remaining low ordinals identify the base types themselves.
[Flags]
public enum FieldType
- Extension Methods
Fields
AABB2D = AABB2F | DoubleFloatDouble-precision 2D axis-aligned bounding box (AABB2D).
AABB2F = Byte | CollectionSingle-precision 2D axis-aligned bounding box (AABB2F).
AABB3D = Boolean | AABB2DDouble-precision 3D axis-aligned bounding box (AABB3D).
AABB3F = Boolean | AABB2FSingle-precision 3D axis-aligned bounding box (AABB3F).
BSphere2D = BSphere2F | DoubleFloatDouble-precision 2D bounding sphere (BSphere2D).
BSphere2F = Int | CollectionSingle-precision 2D bounding sphere (BSphere2F).
BSphere3D = Boolean | BSphere2DDouble-precision 3D bounding sphere (BSphere3D).
BSphere3F = Boolean | BSphere2FSingle-precision 3D bounding sphere (BSphere3F).
Boolean = 11-byte boolean.
Byte = 2Signed 8-bit integer (
sbyte).Char = Boolean | FloatUTF-16 code unit (2 bytes).
Collection = 16A ComponentCollection<T> field — a 4-byte buffer-id handle to a variable-length element buffer.
Component = Boolean | CollectionA nested-component reference (8-byte handle).
Double = Float | DoubleFloat64-bit IEEE-754 double-precision float.
DoubleFloat = 512Flag bit marking the double-precision variant of a float, point, quaternion, or bounding-volume base type.
Float = Byte | Int32-bit IEEE-754 single-precision float.
Int = 4Signed 32-bit integer (
int).Long = Boolean | IntSigned 64-bit integer (
long).None = 0No type — unset / sentinel.
Point2D = Point2F | DoubleFloat2-component double-precision point (Point2D).
Point2F = Int | String642-component single-precision point (Point2F).
Point3D = Boolean | Point2D3-component double-precision point (Point3D).
Point3F = Boolean | Point2F3-component single-precision point (Point3F).
Point4D = Byte | Point2D4-component double-precision point (Point4D).
Point4F = Byte | Point2F4-component single-precision point (Point4F).
QuaternionD = Boolean | Point4DDouble-precision quaternion (QuaternionD).
QuaternionF = Boolean | Point4FSingle-precision quaternion (QuaternionF).
Short = Boolean | ByteSigned 16-bit integer (
short).String = Byte | String64Variable-length string with a 32-byte inline handle; the payload spills to the variable-size buffer (VarString).
String1024 = Boolean | String64Fixed 1024-byte inline UTF-8 string (String1024).
String64 = 8Fixed 64-byte inline UTF-8 string (String64).
UByte = Byte | UnsignedUnsigned 8-bit integer (
byte).UInt = Int | UnsignedUnsigned 32-bit integer (
uint).ULong = Boolean | UIntUnsigned 64-bit integer (
ulong).UShort = Boolean | UByteUnsigned 16-bit integer (
ushort).Unsigned = 256Flag bit marking the unsigned-integer variant of an integer base type.
Variant = Boolean | StringSelf-describing value stored as a Variant — a String64 of the form
"tt:data".