Show / Hide Table of Contents

Class ControllerMarshaler

ControllerMarshaler helps to convert controller to client view.

Inheritance
System.Object
ControllerMarshaler
Implements
IControllerMarshaler
Namespace: Eco.Core.Controller
Assembly: Eco.Core.dll
Syntax
public class ControllerMarshaler : Object, IControllerMarshaler

Constructors

ControllerMarshaler(Type, String)

Declaration
public ControllerMarshaler(Type controllerType, string viewTypeName = null)
Parameters
Type Name Description
System.Type controllerType
System.String viewTypeName

Fields

ControllerInfo

Declaration
public readonly Dictionary<int, ISyncMemberInfo> ControllerInfo
Field Value
Type Description
System.Collections.Generic.Dictionary<System.Int32, ISyncMemberInfo>

Dependencies

Declaration
public readonly Dictionary<string, string[]> Dependencies
Field Value
Type Description
System.Collections.Generic.Dictionary<System.String, System.String[]>

RPCs

Declaration
public readonly List<ViewRPC> RPCs
Field Value
Type Description
System.Collections.Generic.List<ViewRPC>

Properties

BaseMarshaler

Declaration
public IControllerMarshaler BaseMarshaler { get; set; }
Property Value
Type Description
IControllerMarshaler

ClassInfo

Declaration
public ViewClassInfo ClassInfo { get; set; }
Property Value
Type Description
ViewClassInfo

ControllerType

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

GeneratesView

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

IsConstant

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

NameToProperty

Declaration
public Dictionary<string, ViewMemberInfo> NameToProperty { get; }
Property Value
Type Description
System.Collections.Generic.Dictionary<System.String, ViewMemberInfo>

ViewTypeName

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

Methods

CreateInstance()

Declaration
public object CreateInstance()
Returns
Type Description
System.Object

GetAllInterfaces()

Returns own implemented interfaces (not inherited from base types).

Declaration
public IEnumerable<Type> GetAllInterfaces()
Returns
Type Description
System.Collections.Generic.IEnumerable<System.Type>

GetOwnInterfaces()

Returns own implemented interfaces (not inherited from base types).

Declaration
public IEnumerable<Type> GetOwnInterfaces()
Returns
Type Description
System.Collections.Generic.IEnumerable<System.Type>

GetSyncMemberInfos()

Declaration
public IEnumerable<KeyValuePair<int, ISyncMemberInfo>> GetSyncMemberInfos()
Returns
Type Description
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.Int32, ISyncMemberInfo>>

TryGetDependentMembers(String, out String[])

Declaration
public bool TryGetDependentMembers(string memberName, out string[] dependencies)
Parameters
Type Name Description
System.String memberName
System.String[] dependencies
Returns
Type Description
System.Boolean

TryGetSyncMemberInfo(Int32, out ISyncMemberInfo)

Declaration
public bool TryGetSyncMemberInfo(int nameId, out ISyncMemberInfo info)
Parameters
Type Name Description
System.Int32 nameId
ISyncMemberInfo info
Returns
Type Description
System.Boolean

Implements

IControllerMarshaler

Extension Methods

PropertyChanges.FirePropertyChanged(Object, String)
PropertyChanges.FirePropertyChanged(Object, String, Object, Object)
PropertyChanges.FirePropertyChanged(Object, MemberChangedBeforeAfterEventArgs)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾