Class DewNetworkBehaviour
NetworkBehaviour + LogicBehaviour
Inheritance
object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
Mirror.NetworkBehaviour
DewNetworkBehaviour
Assembly: Dew.Core.dll
Syntax
public class DewNetworkBehaviour : NetworkBehaviour, ILogicUpdate
Methods
Awake()
Declaration
protected virtual void Awake()
FrameUpdate()
Declaration
public virtual void FrameUpdate()
FxApplySpeedMultiplier(GameObject, float)
Change speed of an effect, affecting ParticleSystems and IEffectWithSpeed inheritors.
Declaration
public void FxApplySpeedMultiplier(GameObject effect, float multiplier)
Parameters
| Type |
Name |
Description |
| UnityEngine.GameObject |
effect |
|
| float |
multiplier |
|
FxApplySpeedMultiplierNetworked(GameObject, float)
Change speed of an effect, affecting ParticleSystems and IEffectWithSpeed inheritors.
Declaration
public void FxApplySpeedMultiplierNetworked(GameObject effect, float multiplier)
Parameters
| Type |
Name |
Description |
| UnityEngine.GameObject |
effect |
|
| float |
multiplier |
|
FxPlay(GameObject, Entity, Vector3, Quaternion?)
Play effect locally attached to given entity, positioned.
Declaration
public void FxPlay(GameObject effect, Entity attach, Vector3 position, Quaternion? rotation)
Parameters
| Type |
Name |
Description |
| UnityEngine.GameObject |
effect |
|
| Entity |
attach |
|
| UnityEngine.Vector3 |
position |
|
| UnityEngine.Quaternion? |
rotation |
|
FxPlay(GameObject, Entity)
Play effect locally attached to given entity.
Declaration
public void FxPlay(GameObject effect, Entity attach)
Parameters
| Type |
Name |
Description |
| UnityEngine.GameObject |
effect |
|
| Entity |
attach |
|
FxPlay(GameObject, Vector3, Quaternion?)
Play effect locally at given position.
Declaration
public void FxPlay(GameObject effect, Vector3 position, Quaternion? rotation)
Parameters
| Type |
Name |
Description |
| UnityEngine.GameObject |
effect |
|
| UnityEngine.Vector3 |
position |
|
| UnityEngine.Quaternion? |
rotation |
|
FxPlay(GameObject)
Declaration
public void FxPlay(GameObject effect)
Parameters
| Type |
Name |
Description |
| UnityEngine.GameObject |
effect |
|
FxPlayNetworked(GameObject, Entity, Vector3, Quaternion?)
Play effect everywhere attached to given entity, positioned. Only callable in server.
Declaration
public void FxPlayNetworked(GameObject effect, Entity entity, Vector3 position, Quaternion? rotation)
Parameters
| Type |
Name |
Description |
| UnityEngine.GameObject |
effect |
|
| Entity |
entity |
|
| UnityEngine.Vector3 |
position |
|
| UnityEngine.Quaternion? |
rotation |
|
FxPlayNetworked(GameObject, Entity)
Play effect everywhere attached to given entity. Only callable in server.
Declaration
public void FxPlayNetworked(GameObject effect, Entity entity)
Parameters
| Type |
Name |
Description |
| UnityEngine.GameObject |
effect |
|
| Entity |
entity |
|
FxPlayNetworked(GameObject, Vector3, Quaternion?)
Play effect everywhere. Only callable in server.
Declaration
public void FxPlayNetworked(GameObject effect, Vector3 position, Quaternion? rotation)
Parameters
| Type |
Name |
Description |
| UnityEngine.GameObject |
effect |
|
| UnityEngine.Vector3 |
position |
|
| UnityEngine.Quaternion? |
rotation |
|
FxPlayNetworked(GameObject)
Play effect everywhere. Only callable in server.
Declaration
public void FxPlayNetworked(GameObject effect)
Parameters
| Type |
Name |
Description |
| UnityEngine.GameObject |
effect |
|
FxPlayNew(GameObject, Entity, Vector3, Quaternion?)
Instantiate and play effect locally attached to given entity, positioned.
Declaration
public void FxPlayNew(GameObject effect, Entity attach, Vector3 position, Quaternion? rotation)
Parameters
| Type |
Name |
Description |
| UnityEngine.GameObject |
effect |
|
| Entity |
attach |
|
| UnityEngine.Vector3 |
position |
|
| UnityEngine.Quaternion? |
rotation |
|
FxPlayNew(GameObject, Entity)
Instantiate and play effect locally attached to given entity.
Declaration
public void FxPlayNew(GameObject effect, Entity attach)
Parameters
| Type |
Name |
Description |
| UnityEngine.GameObject |
effect |
|
| Entity |
attach |
|
FxPlayNew(GameObject, Vector3, Quaternion?)
Instantiate and play effect locally at given position.
Declaration
public void FxPlayNew(GameObject effect, Vector3 position, Quaternion? rotation)
Parameters
| Type |
Name |
Description |
| UnityEngine.GameObject |
effect |
|
| UnityEngine.Vector3 |
position |
|
| UnityEngine.Quaternion? |
rotation |
|
FxPlayNew(GameObject)
Instantiate and play effect locally.
Declaration
public void FxPlayNew(GameObject effect)
Parameters
| Type |
Name |
Description |
| UnityEngine.GameObject |
effect |
|
FxPlayNewNetworked(GameObject, Entity, Vector3, Quaternion?)
Instantiate and play effect everywhere attached to given entity, positioned. Only callable in server.
Declaration
public void FxPlayNewNetworked(GameObject effect, Entity entity, Vector3 position, Quaternion? rotation)
Parameters
| Type |
Name |
Description |
| UnityEngine.GameObject |
effect |
|
| Entity |
entity |
|
| UnityEngine.Vector3 |
position |
|
| UnityEngine.Quaternion? |
rotation |
|
FxPlayNewNetworked(GameObject, Entity)
Instantiate and play effect everywhere attached to given entity. Only callable in server.
Declaration
public void FxPlayNewNetworked(GameObject effect, Entity entity)
Parameters
| Type |
Name |
Description |
| UnityEngine.GameObject |
effect |
|
| Entity |
entity |
|
FxPlayNewNetworked(GameObject, Vector3, Quaternion?)
Instantiate and play effect everywhere at given position. Only callable in server.
Declaration
public void FxPlayNewNetworked(GameObject effect, Vector3 position, Quaternion? rotation)
Parameters
| Type |
Name |
Description |
| UnityEngine.GameObject |
effect |
|
| UnityEngine.Vector3 |
position |
|
| UnityEngine.Quaternion? |
rotation |
|
FxPlayNewNetworked(GameObject)
Instantiate and play effect everywhere. Only callable in server.
Declaration
public void FxPlayNewNetworked(GameObject effect)
Parameters
| Type |
Name |
Description |
| UnityEngine.GameObject |
effect |
|
FxStop(GameObject)
Declaration
public void FxStop(GameObject effect)
Parameters
| Type |
Name |
Description |
| UnityEngine.GameObject |
effect |
|
FxStopNetworked(GameObject)
Stop effect everywhere. Only callable in server. Use non-networked variant in DewEffect if you want to stop effect locally.
Declaration
public void FxStopNetworked(GameObject effect)
Parameters
| Type |
Name |
Description |
| UnityEngine.GameObject |
effect |
|
GetComponent<T>(out T)
Declaration
protected void GetComponent<T>(out T comp)
Parameters
| Type |
Name |
Description |
| T |
comp |
|
Type Parameters
InvalidateInstance()
Invalidate an instance from pool, preventing it from being reused.
Declaration
public void InvalidateInstance()
LogicUpdate(float)
Declaration
public virtual void LogicUpdate(float dt)
Parameters
| Type |
Name |
Description |
| float |
dt |
|
OnDestroy()
Declaration
protected virtual void OnDestroy()
OnLateStart()
Declaration
public virtual void OnLateStart()
OnLateStartServer()
Declaration
public virtual void OnLateStartServer()
OnStart()
Declaration
public virtual void OnStart()
OnStartClient()
Declaration
public override void OnStartClient()
Overrides
Mirror.NetworkBehaviour.OnStartClient()
OnStartServer()
Declaration
public override void OnStartServer()
Overrides
Mirror.NetworkBehaviour.OnStartServer()
OnStop()
Declaration
public virtual void OnStop()
OnStopClient()
Declaration
public override void OnStopClient()
Overrides
Mirror.NetworkBehaviour.OnStopClient()
OnStopServer()
Declaration
public override void OnStopServer()
Overrides
Mirror.NetworkBehaviour.OnStopServer()
Implements
Extension Methods