[Add] FishNet

This commit is contained in:
2026-03-30 20:11:57 +07:00
parent ee793a3361
commit c22c08753a
1797 changed files with 197950 additions and 1 deletions
@@ -0,0 +1,76 @@
using FishNet.Utility;
using System;
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo(UtilityConstants.CODEGEN_ASSEMBLY_NAME)]
namespace FishNet.CodeGenerating
{
/// <summary>
/// Allows a SyncType to be mutable.
/// </summary>
public class AllowMutableSyncTypeAttribute : Attribute { }
/// <summary>
/// Type will be included in auto serializer creation.
/// </summary>
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = true, AllowMultiple = false)]
public class IncludeSerializationAttribute : Attribute { }
/// <summary>
/// Type will be excluded from auto serializer creation.
/// </summary>
public class ExcludeSerializationAttribute : Attribute { }
/// <summary>
/// Method will not be considered a writer or reader.
/// </summary>
public class NotSerializerAttribute : Attribute { }
/// <summary>
/// Method or type will be made public by codegen.
/// </summary>
internal class MakePublicAttribute : Attribute { }
/// <summary>
/// Method is a comparer for a value type.
/// </summary>
public class CustomComparerAttribute : Attribute { }
/// <summary>
/// Used on a type when you want a custom serializer to be global across all assemblies.
/// </summary>
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface, Inherited = true, AllowMultiple = false)]
public class UseGlobalCustomSerializerAttribute : Attribute { }
/// <summary>
/// Uses built-in caches to retrieve read classes rather than initializing a new instance.
/// This attribute is primarily for internal use and may change at anytime without notice.
/// </summary>
[AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = false)]
public class ReadUnallocatedAttribute : Attribute { }
/// <summary>
/// Indicates a method is the default writer for a type. The first non-extension parameter indicates the type this writer is for.
/// This attribute is primarily for internal use and may change at anytime without notice.
/// </summary>
public class DefaultWriterAttribute : Attribute { }
/// <summary>
/// Indicates a method is the default reader for a type. The return type indicates what type the reader is for.
/// This attribute is primarily for internal use and may change at anytime without notice.
/// </summary>
public class DefaultReaderAttribute : Attribute { }
/// <summary>
/// Indicates a method is a delta writer. The first non-extension parameter indicates the type this writer is for.
/// This attribute is primarily for internal use and may change at anytime without notice.
/// </summary>
public class DefaultDeltaWriterAttribute : Attribute { }
/// <summary>
/// Indicates a method is a delta reader. The return type indicates what type the reader is for.
/// This attribute is primarily for internal use and may change at anytime without notice.
/// </summary>
public class DefaultDeltaReaderAttribute : Attribute { }
}
@@ -0,0 +1,18 @@
fileFormatVersion: 2
guid: 1581268482fee3b489c2ba9e8cd2b293
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 207815
packageName: 'FishNet: Networking Evolved'
packageVersion: 4.6.22R
assetPath: Assets/FishNet/Runtime/CodeGenerating/Attributes.cs
uploadId: 866910