Show / Hide Table of Contents

Class NetEntity

Inheritance
System.Object
NetEntity
NetPhysicsEntity
Implements
INetObjectPosition
INetObject
IPositionAndBounds
Namespace: Eco.Shared.Networking
Assembly: Eco.Shared.dll
Syntax
public class NetEntity : Object, INetObjectPosition, INetObject, IPositionAndBounds

Constructors

NetEntity(String)

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

NetEntity(String, INetObject)

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

Properties

Active

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

Bounds

Declaration
public Rect Bounds { get; }
Property Value
Type Description
Rect

ID

Declaration
public int ID { get; }
Property Value
Type Description
System.Int32

NetObj

Declaration
protected NetObject NetObj { get; set; }
Property Value
Type Description
NetObject

NetObjectCreationRealtime

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

Position

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

Rotation

Declaration
public Quaternion Rotation { get; set; }
Property Value
Type Description
Quaternion

Type

Declaration
public string Type { get; }
Property Value
Type Description
System.String

UpdateChannel

Declaration
public NetworkChannel UpdateChannel { get; }
Property Value
Type Description
NetworkChannel

Methods

Destroy()

Declaration
public virtual void Destroy()

IsNotRelevant(INetObjectViewer)

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

IsRelevant(INetObjectViewer)

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

IsUpdated(INetObjectViewer)

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

ReceiveInitialState(BSONObject)

Declaration
public virtual void ReceiveInitialState(BSONObject bsonObj)
Parameters
Type Name Description
BSONObject bsonObj

ReceiveUpdate(BSONObject)

Declaration
public virtual void ReceiveUpdate(BSONObject bsonObj)
Parameters
Type Name Description
BSONObject bsonObj

SendInitialState(BSONObject, INetObjectViewer)

Declaration
public virtual void SendInitialState(BSONObject bsonObj, INetObjectViewer viewer)
Parameters
Type Name Description
BSONObject bsonObj
INetObjectViewer viewer

SendUpdate(BSONObject, INetObjectViewer)

Declaration
public virtual void SendUpdate(BSONObject bsonObj, INetObjectViewer viewer)
Parameters
Type Name Description
BSONObject bsonObj
INetObjectViewer viewer

SetActiveAndCreate()

Declaration
public void SetActiveAndCreate()

Explicit Interface Implementations

IPositionAndBounds.Position

Declaration
Vector3 IPositionAndBounds.Position { get; }
Returns
Type Description
System.Numerics.Vector3

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
☀
☾