Show / Hide Table of Contents

Class BaseEntityController

A Base Entity Controller.

Inheritance
System.Object
BaseEntityController
EntityController
EntityController
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: DuneNet.Shared.Controllers
Assembly: DuneNet.Shared.dll
Syntax
public abstract class BaseEntityController

Constructors

BaseEntityController(NetworkContext)

Declaration
protected BaseEntityController(NetworkContext networkContext)
Parameters
Type Name Description
NetworkContext networkContext

Methods

AddEntity(BaseEntity)

Declaration
protected virtual void AddEntity(BaseEntity ent)
Parameters
Type Name Description
BaseEntity ent

DestroyAllEntitiesInternal()

Declaration
protected void DestroyAllEntitiesInternal()

DestroyEntityInternal(BaseEntity)

Declaration
protected void DestroyEntityInternal(BaseEntity ent)
Parameters
Type Name Description
BaseEntity ent

Dispose()

Disposes the Entity Controller and frees any resources internally used by it.

Declaration
public void Dispose()
Remarks

There should be no need to manually call this in most cases as it is already automatically called on application quit.

GetEntitiesInternal()

Declaration
protected IEnumerable<BaseEntity> GetEntitiesInternal()
Returns
Type Description
System.Collections.Generic.IEnumerable<BaseEntity>

GetEntitiesInternal<T>()

Declaration
protected IEnumerable<T> GetEntitiesInternal<T>()
Returns
Type Description
System.Collections.Generic.IEnumerable<T>
Type Parameters
Name Description
T

GetEntityFromIdInternal(UInt32)

Declaration
protected BaseEntity GetEntityFromIdInternal(uint entId)
Parameters
Type Name Description
System.UInt32 entId
Returns
Type Description
BaseEntity

GetEntityInfoInternal(String)

Declaration
protected EntityInfo? GetEntityInfoInternal(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
System.Nullable<EntityInfo>
Back to top Copyright © 2018 Dune Interactive.