Table of Contents

Class NavMeshSystem

Namespace
FishMMO.Server.Implementation.World.SceneServer.Navigation
Assembly
FishMMO.Server.dll

Puts each world scene's NavMesh into the world while the scene is loaded on this scene server.

[CreateAssetMenu(fileName = "NavMeshSystem", menuName = "FishMMO/Server/Scene Server/NavMesh System", order = 1)]
public class NavMeshSystem : ServerBehaviour, IServerBehaviour<INetworkManagerWrapper, ServerManager, NetworkConnection, IServerBehaviour>, IServerBehaviour, IServerComponent<INetworkManagerWrapper, ServerManager, NetworkConnection, IServerBehaviour>, IServerComponent
Inheritance
Object
ScriptableObject
NavMeshSystem
Implements
IServerBehaviour<INetworkManagerWrapper, ServerManager, NetworkConnection, IServerBehaviour>
IServerComponent<INetworkManagerWrapper, ServerManager, NetworkConnection, IServerBehaviour>
Inherited Members
ScriptableObject.SetDirty()
ScriptableObject.CreateInstance<T>()
Object.GetEntityId()
Object.MemberwiseClone()
Object.GetInstanceID()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Scene)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Object.FindObjectsByType<T>()
Object.FindObjectsByType<T>(FindObjectsInactive)
Object.ToString()
Object.name
Object.hideFlags

Remarks

Scenes never carry their NavMesh data (see SceneNavMeshCatalogue); this is the only thing that adds it, on FishNet's server-side load and unload. Spawners start a scene one update after it loads, so its NavMesh is in place before the first NPC is warped onto it.

Fields

Catalogue

[Tooltip("Every world scene's NavMesh. Kept in step by the editor when a scene with a baked NavMesh surface is saved, and by the scene generator's bake.")]
public SceneNavMeshCatalogue Catalogue

Field Value

SceneNavMeshCatalogue

Properties

NavMeshes

The scenes' NavMeshes currently in the world.

public SceneNavMeshes NavMeshes { get; }

Property Value

SceneNavMeshes

Methods

InitializeOnce()

Called once to initialize the behaviour. Must be implemented by derived classes.

public override ServerComponentInitializationStatus InitializeOnce()

Returns

ServerComponentInitializationStatus

Remarks

Behaviours that need to await I/O (database registration, for example) must override InitializeOnceAsync(CancellationToken) instead of blocking in here. The Unity main thread must never block on I/O: it is the thread that drains async continuations, so blocking it can deadlock startup before the transport ever binds.

OnDeinitialize()

Called when the behaviour is being deinitialized. Must be implemented by derived classes.

public override void OnDeinitialize()