kind property

  1. @protected
EntityKind<Uint16Kind> kind
final

Kind for Int16Kind.

The purpose of annotation @protected is reducing accidental use.

Implementation

@protected
static final EntityKind<Uint16Kind> kind = EntityKind<Uint16Kind>(
  name: 'Uint16Kind',
  define: (c) {
    final min = c.optionalUint32(
      id: 1,
      name: 'min',
      getter: (t) => t.min,
    );
    final max = c.optionalUint32(
      id: 2,
      name: 'max',
      getter: (t) => t.max,
    );
    c.constructorFromData = (data) => Uint16Kind(
          min: data.get(min),
          max: data.get(max),
        );
  },
);