Replacing string prototype id data fields with the new ProtoId<T> and EntProtoId types #20586
DrSmugleaf
announced in
Code announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Data fields that store prototype ids can now use the
EntProtoId
andProtoId<T>
types to be validated without needing to specify a custom type serializer manually.EntProtoId
is a shorthand forProtoId<EntityPrototype>
.There are also new
PrototypeManager
.Index
,.HasIndex
and.TryIndex
methods that handle these new types.This:
Becomes:
New PRs must use these two new types where relevant.
Beta Was this translation helpful? Give feedback.
All reactions