mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
[+] TEngineServer
[+] TEngineServer
This commit is contained in:
29
Assets/GameScripts/ThirdParty/Protobuf-net/ImplicitFields.cs
vendored
Normal file
29
Assets/GameScripts/ThirdParty/Protobuf-net/ImplicitFields.cs
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
namespace ProtoBuf
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies the method used to infer field tags for members of the type
|
||||
/// under consideration. Tags are deduced using the invariant alphabetic
|
||||
/// sequence of the members' names; this makes implicit field tags very brittle,
|
||||
/// and susceptible to changes such as field names (normally an isolated
|
||||
/// change).
|
||||
/// </summary>
|
||||
public enum ImplicitFields
|
||||
{
|
||||
/// <summary>
|
||||
/// No members are serialized implicitly; all members require a suitable
|
||||
/// attribute such as [ProtoMember]. This is the recmomended mode for
|
||||
/// most scenarios.
|
||||
/// </summary>
|
||||
None = 0,
|
||||
/// <summary>
|
||||
/// Public properties and fields are eligible for implicit serialization;
|
||||
/// this treats the public API as a contract. Ordering beings from ImplicitFirstTag.
|
||||
/// </summary>
|
||||
AllPublic = 1,
|
||||
/// <summary>
|
||||
/// Public and non-public fields are eligible for implicit serialization;
|
||||
/// this acts as a state/implementation serializer. Ordering beings from ImplicitFirstTag.
|
||||
/// </summary>
|
||||
AllFields = 2
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user