Show / Hide Table of Contents

Class NetPhysicsEntity

Inheritance
System.Object
NetEntity
NetPhysicsEntity
Implements
INetObjectPosition
INetObject
IPositionAndBounds
Inherited Members
NetEntity.SetActiveAndCreate()
NetEntity.ReceiveInitialState(BSONObject)
NetEntity.Destroy()
NetEntity.NetObj
NetEntity.UpdateChannel
NetEntity.ID
NetEntity.Active
NetEntity.NetObjectCreationRealtime
NetEntity.IPositionAndBounds.Position
NetEntity.Position
NetEntity.Bounds
NetEntity.Rotation
NetEntity.Type
Namespace: Eco.Shared.Networking
Assembly: Eco.Shared.dll
Syntax
public class NetPhysicsEntity : NetEntity, INetObjectPosition, INetObject, IPositionAndBounds

Constructors

NetPhysicsEntity(String)

Declaration
public NetPhysicsEntity(string type)
Parameters
Type Name Description
System.String type

NetPhysicsEntity(String, INetObject)

Declaration
public NetPhysicsEntity(string type, INetObject controller)
Parameters
Type Name Description
System.String type
INetObject controller

Properties

CanTeleport

Declaration
public bool CanTeleport { get; }
Property Value
Type Description
System.Boolean

Controller

Declaration
public INetObjectViewer Controller { get; }
Property Value
Type Description
INetObjectViewer

LastReceivedUpdateTime

Declaration
public double LastReceivedUpdateTime { get; }
Property Value
Type Description
System.Double

Velocity

Declaration
public Vector3 Velocity { get; set; }
Property Value
Type Description
System.Numerics.Vector3

Methods

IsNotRelevant(INetObjectViewer)

Declaration
public override bool IsNotRelevant(INetObjectViewer viewer)
Parameters
Type Name Description
INetObjectViewer viewer
Returns
Type Description
System.Boolean
Overrides
NetEntity.IsNotRelevant(INetObjectViewer)

IsRelevant(INetObjectViewer)

Declaration
public override bool IsRelevant(INetObjectViewer viewer)
Parameters
Type Name Description
INetObjectViewer viewer
Returns
Type Description
System.Boolean
Overrides
NetEntity.IsRelevant(INetObjectViewer)

IsUpdated(INetObjectViewer)

Declaration
public override bool IsUpdated(INetObjectViewer viewer)
Parameters
Type Name Description
INetObjectViewer viewer
Returns
Type Description
System.Boolean
Overrides
NetEntity.IsUpdated(INetObjectViewer)

ReceiveUpdate(BSONObject)

Declaration
public override void ReceiveUpdate(BSONObject bsonObj)
Parameters
Type Name Description
BSONObject bsonObj
Overrides
NetEntity.ReceiveUpdate(BSONObject)

SendInitialState(BSONObject, INetObjectViewer)

Declaration
public override void SendInitialState(BSONObject bsonObj, INetObjectViewer viewer)
Parameters
Type Name Description
BSONObject bsonObj
INetObjectViewer viewer
Overrides
NetEntity.SendInitialState(BSONObject, INetObjectViewer)

SendUpdate(BSONObject, INetObjectViewer)

Declaration
public override void SendUpdate(BSONObject bsonObj, INetObjectViewer viewer)
Parameters
Type Name Description
BSONObject bsonObj
INetObjectViewer viewer
Overrides
NetEntity.SendUpdate(BSONObject, INetObjectViewer)

SetPhysicsController(INetObjectViewer, Func<Boolean>)

Declaration
public bool SetPhysicsController(INetObjectViewer owner, Func<bool> canTeleportCheck = null)
Parameters
Type Name Description
INetObjectViewer owner
System.Func<System.Boolean> canTeleportCheck
Returns
Type Description
System.Boolean

Events

UpdatePositionFail

Declaration
public static event Action<string, NetPhysicsEntity, NetObject> UpdatePositionFail
Event Type
Type Description
System.Action<System.String, NetPhysicsEntity, NetObject>

Implements

INetObjectPosition
INetObject
IPositionAndBounds

Extension Methods

CommandLine.FeedFromCommandLine(Object)
CommandLine.ToCommandLineArgs(Object, Func<Object, Boolean>)
ListUtil.DepthFirstTraversal<T>(T, Func<T, IEnumerable<T>>)
EnumerableExtensions.SingleItemAsEnumerable<T>(T)
EventUtils.RaiseEvent<TEventArgs>(Object, String, TEventArgs)
PredicateUtils.MatchesAll<TEnumerable, T>(T, TEnumerable)
PredicateUtils.MatchesAll<T>(T, Func<T, Boolean>[])
PredicateUtils.MatchesAny<TEnumerable, T>(T, TEnumerable)
ReflectionUtils.PropertyValue<T>(Object, PropertyInfo)
ReflectionUtils.TryGetPropertyValueByName<T>(Object, String, out T)
ReflectionUtils.GetPropertyValueByName<T>(Object, String)
ReflectionUtils.SetPropertyByName(Object, String, Object)
ReflectionUtils.GetStructPropertyByName<T>(Object, String)
ReflectionUtils.GetStringPropertyByName(Object, String)
ReflectionUtils.ZipByProperty<T>(Object, Object, Object, Func<T, T, T>)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾