⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    Class FpsGameMode

    Inheritance
    Object
    MonoBehaviour
    FpsGameMode
    FpsSoloGameBase
    Implements
    INeoSerializableComponent
    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()
    Namespace: NeoFPS
    Assembly: NeoFPS.dll
    Syntax
    public abstract class FpsGameMode : MonoBehaviour, INeoSerializableComponent

    Properties

    current

    Declaration
    public static FpsGameMode current { get; }
    Property Value
    Type Description
    FpsGameMode

    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
    Type Description
    INeoSerializedGameObjectContainer

    GetPersistentObjects()

    Declaration
    protected virtual NeoSerializedGameObject[] GetPersistentObjects()
    Returns
    Type Description
    NeoSerializedGameObject[]

    GetPlayerCharacterPrototype(IController)

    Declaration
    protected abstract ICharacter GetPlayerCharacterPrototype(IController player)
    Parameters
    Type Name Description
    IController player
    Returns
    Type Description
    ICharacter

    GetPlayerControllerPrototype()

    Declaration
    protected abstract IController GetPlayerControllerPrototype()
    Returns
    Type Description
    IController

    InstantiatePlayer()

    Declaration
    protected abstract IController InstantiatePlayer()
    Returns
    Type Description
    IController

    OnCharacterSpawned(ICharacter)

    Declaration
    protected virtual void OnCharacterSpawned(ICharacter character)
    Parameters
    Type Name Description
    ICharacter character

    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
    Type Name Description
    INeoDeserializer reader
    NeoSerializedGameObject nsgo

    Respawn(IController)

    Declaration
    public void Respawn(IController player)
    Parameters
    Type Name Description
    IController player

    SavePersistentData()

    Declaration
    public static void SavePersistentData()

    SetPersistentObjects(NeoSerializedGameObject[])

    Declaration
    protected virtual void SetPersistentObjects(NeoSerializedGameObject[] objects)
    Parameters
    Type Name Description
    NeoSerializedGameObject[] objects

    WriteProperties(INeoSerializer, NeoSerializedGameObject, SaveMode)

    Declaration
    public virtual void WriteProperties(INeoSerializer writer, NeoSerializedGameObject nsgo, SaveMode saveMode)
    Parameters
    Type Name Description
    INeoSerializer writer
    NeoSerializedGameObject nsgo
    SaveMode saveMode

    Events

    onInGameChanged

    Declaration
    public static event UnityAction<bool> onInGameChanged
    Event Type
    Type Description
    UnityAction<System.Boolean>

    Implements

    INeoSerializableComponent
    Back to top Copyright © 2019 Yondernauts Game Studios Ltd
    Generated with DocFX