Class ViewClassInfo
Represents the 'type' data about a server type, something which is also represented as a view. The server builds these
viewclassinfos and sends them to the client, which can then use them for many purposes. Any information about a type can be transmitted
from server to client on this class.
Inheritance
System.Object
ViewClassInfo
Assembly: Eco.Shared.dll
Syntax
[BsonAutoSerialize]
public class ViewClassInfo : Object, IBsonSerialize, IBsonSerializable, IBsonDeserializable
Constructors
ViewClassInfo()
Declaration
Fields
BaseTypeID
Declaration
Field Value
Type |
Description |
System.Int32 |
|
BaseTypeName
Declaration
public string BaseTypeName
Field Value
Type |
Description |
System.String |
|
CategoryName
Declaration
public string CategoryName
Field Value
Type |
Description |
System.String |
|
ClassFlags
Declaration
public ViewClassFlags ClassFlags
Field Value
ComponentTabName
Declaration
public string ComponentTabName
Field Value
Type |
Description |
System.String |
|
Description
Declaration
public LocString Description
Field Value
DisplayName
Declaration
public LocString DisplayName
Field Value
DisplayNamePlural
Declaration
public LocString DisplayNamePlural
Field Value
EcopediaCategory
Declaration
public string EcopediaCategory
Field Value
Type |
Description |
System.String |
|
EcopediaPage
Declaration
public string EcopediaPage
Field Value
Type |
Description |
System.String |
|
EcopediaSubPageOrPage
Declaration
public string EcopediaSubPageOrPage
Field Value
Type |
Description |
System.String |
|
EnumDescriptions
Declaration
public LocString[] EnumDescriptions
Field Value
EnumNames
Declaration
public string[] EnumNames
Field Value
Type |
Description |
System.String[] |
|
IconName
Declaration
Field Value
Type |
Description |
System.String |
|
Interfaces
Declaration
public string[] Interfaces
Field Value
Type |
Description |
System.String[] |
|
MarkedUpName
Declaration
public LocString MarkedUpName
Field Value
Members
Data about each member of this type, transmitted from server to client.
Declaration
public Dictionary<string, ViewMemberInfo> Members
Field Value
Type |
Description |
System.Collections.Generic.Dictionary<System.String, ViewMemberInfo> |
|
Name
Name of the client side type (IE: "UserView")
Declaration
Field Value
Type |
Description |
System.String |
|
Priority
Declaration
Field Value
Type |
Description |
System.Int32 |
|
Declaration
public string RelatedFeatureDisabledName
Field Value
Type |
Description |
System.String |
|
Declaration
public string RelatedFeatureName
Field Value
Type |
Description |
System.String |
|
RPCs
Declaration
public List<ViewRPC> RPCs
Field Value
Type |
Description |
System.Collections.Generic.List<ViewRPC> |
|
ServerName
Name of the server side type (IE: "User")
Declaration
Field Value
Type |
Description |
System.String |
|
Declaration
public HashSet<string> Tags
Field Value
Type |
Description |
System.Collections.Generic.HashSet<System.String> |
|
Type
Declaration
[BsonSerializeIgnore]
public Type Type
Field Value
Type |
Description |
System.Type |
|
TypeID
Declaration
Field Value
Type |
Description |
System.Int32 |
|
UITypeName
Declaration
Field Value
Type |
Description |
System.String |
|
Properties
IsEnum
Declaration
public bool IsEnum { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
DerivesType(String, Boolean)
Declaration
public bool DerivesType(string parent, bool checkReverseToo = false)
Parameters
Type |
Name |
Description |
System.String |
parent |
|
System.Boolean |
checkReverseToo |
|
Returns
Type |
Description |
System.Boolean |
|
FromBson(BSONArray)
Declaration
public void FromBson(BSONArray bson)
Parameters
GetMemberInfo(String)
Declaration
public ViewMemberInfo GetMemberInfo(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
HasMember(String)
Declaration
public bool HasMember(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Type |
Description |
System.Boolean |
|
HasTag(String)
Declaration
public bool HasTag(string tag)
Parameters
Type |
Name |
Description |
System.String |
tag |
|
Returns
Type |
Description |
System.Boolean |
|
SelfAndParentTypes()
Returns the viewclassinfo of ourself and each parent
Declaration
public IEnumerable<ViewClassInfo> SelfAndParentTypes()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<ViewClassInfo> |
|
ToBson()
Declaration
public BSONArray ToBson()
Returns
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Implements
Extension Methods