Class FpsGameMode
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: NeoFPS.dll
Syntax
public abstract class FpsGameMode : MonoBehaviour, INeoSerializableComponent
Properties
current
Declaration
public static FpsGameMode current { get; }
Property Value
friendlyFire
Declaration
public static bool friendlyFire { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
inGame
Declaration
public static bool inGame { get; protected set; }
Property Value
| Type |
Description |
| System.Boolean |
|
Methods
Awake()
Declaration
protected virtual void Awake()
GetFriendlyFire()
Declaration
protected virtual bool GetFriendlyFire()
Returns
| Type |
Description |
| System.Boolean |
|
GetPersistentObjectContainer()
Declaration
protected virtual INeoSerializedGameObjectContainer GetPersistentObjectContainer()
Returns
GetPersistentObjects()
Declaration
protected virtual NeoSerializedGameObject[] GetPersistentObjects()
Returns
GetPlayerCharacterPrototype(IController)
Declaration
protected abstract ICharacter GetPlayerCharacterPrototype(IController player)
Parameters
Returns
GetPlayerControllerPrototype()
Declaration
protected abstract IController GetPlayerControllerPrototype()
Returns
InstantiatePlayer()
Declaration
protected abstract IController InstantiatePlayer()
Returns
OnCharacterSpawned(ICharacter)
Declaration
protected virtual void OnCharacterSpawned(ICharacter character)
Parameters
OnDestroy()
Declaration
protected virtual void OnDestroy()
OnInGameChanged(Boolean)
Declaration
protected virtual void OnInGameChanged(bool value)
Parameters
| Type |
Name |
Description |
| System.Boolean |
value |
|
OnPersistentDataLoaded(Boolean)
Declaration
protected virtual void OnPersistentDataLoaded(bool success)
Parameters
| Type |
Name |
Description |
| System.Boolean |
success |
|
OnStart()
Declaration
protected virtual void OnStart()
ReadProperties(INeoDeserializer, NeoSerializedGameObject)
Declaration
public virtual void ReadProperties(INeoDeserializer reader, NeoSerializedGameObject nsgo)
Parameters
Respawn(IController)
Declaration
public void Respawn(IController player)
Parameters
SavePersistentData()
Declaration
public static void SavePersistentData()
SetPersistentObjects(NeoSerializedGameObject[])
Declaration
protected virtual void SetPersistentObjects(NeoSerializedGameObject[] objects)
Parameters
WriteProperties(INeoSerializer, NeoSerializedGameObject, SaveMode)
Declaration
public virtual void WriteProperties(INeoSerializer writer, NeoSerializedGameObject nsgo, SaveMode saveMode)
Parameters
Events
onInGameChanged
Declaration
public static event UnityAction<bool> onInGameChanged
Event Type
| Type |
Description |
| UnityAction<System.Boolean> |
|
Implements