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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Data fields that store prototype ids can now use the
EntProtoIdandProtoId<T>types to be validated without needing to specify a custom type serializer manually.EntProtoIdis a shorthand forProtoId<EntityPrototype>.There are also new
PrototypeManager.Index,.HasIndexand.TryIndexmethods 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