Table of Contents

Class SurvivalHandler

Namespace
Nautilus.Handlers
Assembly
Nautilus.dll
Handler class that relates to the Survival component. Allows the defining of oxygen or health gains when consuming specific items.
public static class SurvivalHandler
Inheritance
SurvivalHandler
Inherited Members

Methods

GiveHealthOnConsume(TechType, float)

makes the item Heal the player on consume.

public static void GiveHealthOnConsume(TechType techType, float healthBack)

Parameters

techType TechType
the TechType that you want it to heal back
healthBack float
amount to heal the player

GiveHealthOnConsume(TechType, float, bool)

[Obsolete]
public static void GiveHealthOnConsume(TechType techType, float healthBack, bool isEdible)

Parameters

techType TechType
healthBack float
isEdible bool

GiveOxygenOnConsume(TechType, float)

makes the item gives oxygen on use.

public static void GiveOxygenOnConsume(TechType techType, float oxygenGiven)

Parameters

techType TechType
the TechType that you want to make it give oxygen on use
oxygenGiven float
the oxygen amount the item gives

GiveOxygenOnConsume(TechType, float, bool)

[Obsolete]
public static void GiveOxygenOnConsume(TechType techType, float oxygenGiven, bool isEdible)

Parameters

techType TechType
oxygenGiven float
isEdible bool

RunActionOnConsume(TechType, Action)

runs a custom action on consume.

public static void RunActionOnConsume(TechType techType, Action customAction)

Parameters

techType TechType
the TechType that you want it to heal back
customAction Action
the Action to perform.

RunActionOnConsume(TechType, Action, bool)

[Obsolete]
public static void RunActionOnConsume(TechType techType, Action customAction, bool isEdible)

Parameters

techType TechType
customAction Action
isEdible bool