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:
33
Assets/GameScripts/ThirdParty/Protobuf-net/CallbackAttributes.cs
vendored
Normal file
33
Assets/GameScripts/ThirdParty/Protobuf-net/CallbackAttributes.cs
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace ProtoBuf
|
||||
{
|
||||
/// <summary>Specifies a method on the root-contract in an hierarchy to be invoked before serialization.</summary>
|
||||
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
|
||||
#if !CF && !PORTABLE && !COREFX && !PROFILE259
|
||||
[ImmutableObject(true)]
|
||||
#endif
|
||||
public sealed class ProtoBeforeSerializationAttribute : Attribute { }
|
||||
|
||||
/// <summary>Specifies a method on the root-contract in an hierarchy to be invoked after serialization.</summary>
|
||||
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
|
||||
#if !CF && !PORTABLE && !COREFX && !PROFILE259
|
||||
[ImmutableObject(true)]
|
||||
#endif
|
||||
public sealed class ProtoAfterSerializationAttribute : Attribute { }
|
||||
|
||||
/// <summary>Specifies a method on the root-contract in an hierarchy to be invoked before deserialization.</summary>
|
||||
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
|
||||
#if !CF && !PORTABLE && !COREFX && !PROFILE259
|
||||
[ImmutableObject(true)]
|
||||
#endif
|
||||
public sealed class ProtoBeforeDeserializationAttribute : Attribute { }
|
||||
|
||||
/// <summary>Specifies a method on the root-contract in an hierarchy to be invoked after deserialization.</summary>
|
||||
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
|
||||
#if !CF && !PORTABLE && !COREFX && !PROFILE259
|
||||
[ImmutableObject(true)]
|
||||
#endif
|
||||
public sealed class ProtoAfterDeserializationAttribute : Attribute { }
|
||||
}
|
Reference in New Issue
Block a user