Show / Hide Table of Contents

Class EcoAttribute

One attribute to rule them all. This gives all the bells-and-whistles to a property or class, including:

  • Serialized. Loads and saves the entry.
  • SyncToView. It creates a view of the property on the client and keeps it updated.
  • AutoRPC. Creates an RPC for the client to edit this parameter.
  • AutoGen. Tags the member to have UI generated for it automatically created on the client.
  • Property Scanning. The Property Scanner will traverse into it to update validity.
  • PropertyExplanation. Explains the property.
Inheritance
System.Object
ProfanityAttribute
EcoAttribute
Implements
IRPCAttribute
Inherited Members
ProfanityAttribute.Filter
Namespace: Eco.Shared.Networking
Assembly: Eco.Shared.dll
Syntax
public class EcoAttribute : ProfanityAttribute, IRPCAttribute

Constructors

EcoAttribute(AccessType)

Declaration
public EcoAttribute(AccessType requiredAccess)
Parameters
Type Name Description
AccessType requiredAccess

EcoAttribute(SyncFlags)

Declaration
public EcoAttribute(SyncFlags flags)
Parameters
Type Name Description
SyncFlags flags

EcoAttribute(Boolean)

Declaration
public EcoAttribute(bool serialized = true)
Parameters
Type Name Description
System.Boolean serialized

Fields

Flags

Declaration
public SyncFlags Flags
Field Value
Type Description
SyncFlags

Properties

RequiredAccess

Declaration
public AccessType RequiredAccess { get; set; }
Property Value
Type Description
AccessType

Serialized

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

Explicit Interface Implementations

IRPCAttribute.ExtraAuthAttributes

Declaration
List<ExtraRPCAuthAttribute> IRPCAttribute.ExtraAuthAttributes { get; set; }
Returns
Type Description
System.Collections.Generic.List<ExtraRPCAuthAttribute>

Implements

IRPCAttribute

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