https://github.com/abdelfattahradwan/fishnet.codeanalysis
A set of annotations, Roslyn analyzers & source generators for Fish-Networking (https://github.com/FirstGearGames/FishNet).
https://github.com/abdelfattahradwan/fishnet.codeanalysis
csharp fish-net networking unity
Last synced: about 1 year ago
JSON representation
A set of annotations, Roslyn analyzers & source generators for Fish-Networking (https://github.com/FirstGearGames/FishNet).
- Host: GitHub
- URL: https://github.com/abdelfattahradwan/fishnet.codeanalysis
- Owner: abdelfattahradwan
- License: mit
- Created: 2022-04-27T13:07:43.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2025-02-21T15:07:59.000Z (over 1 year ago)
- Last Synced: 2025-02-21T16:23:17.604Z (over 1 year ago)
- Topics: csharp, fish-net, networking, unity
- Language: C#
- Homepage:
- Size: 61.5 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FishNet.CodeAnalysis
A set of annotations, Roslyn analyzers & source generators for Fish-Networking (https://github.com/FirstGearGames/FishNet).
## Analyzers' Requirements
- Unity 2020 or later
## Source Generators' Requirements
- Unity 2021 or later
## Installing The Analyzers
1. Download the latest release
2. Extract the downloaded archive
3. Copy the extracted files to a folder inside your `Assets` folder
## Installing The Source Generators
- TBA
## Included Analyzers
- `DontDestroyOnLoadUsageAnalyzer` → Detects invalid usage of `Object.DontDestroyOnLoad` on `NetworkObject`s and `NetworkBehaviour`s
- `NetworkBehaviourCallbackBaseMethodCallAnalyzer` → Detects missing and unordered calls to the base method of `NetworkBehaviour` callbacks
- `NetworkBehaviourConstructorAnalyzer` → Detects `NetworkBehaviour` constructors
- `PreventUsageInsideAnalyzer` → Prevents fields/properties/methods annotated with `PreventUsageInsideAttribute` from being used inside invalid methods
- `RemoteProcedureCallAnalyzer` → Prevents RPCs (`ServerRpc`/`ObserversRpc`/`TargetRpc`) from calling `base` RPC methods
## Included Source Generators
- TBA