Show / Hide Table of Contents

Class GeneratedRegistrar<T>

Implementation of Registrar<T> for registrars generated in runtime. Works in pair with GeneratedRegistrarWrapper<TContained>.

Inheritance
System.Object
Registrar<T>
GeneratedRegistrar<T>
Implements
IRegistrar
IController
IViewController
IHasUniversalID
ITrackedEnumerable
System.Collections.IEnumerable
System.Collections.Generic.IEnumerable<T>
Inherited Members
Registrar<T>.Initializer
Registrar<T>.MinNameLength
Registrar<T>.MaxNameLength
Registrar<T>.ToString()
Registrar<T>.PreInit(LocString, Boolean, ISaveablePlugin, String, Boolean, Int32, Int32)
Registrar<T>.Verify(T)
Registrar<T>.Verify()
Registrar<T>.IRegistrar.GetByName(String)
Registrar<T>.IRegistrar.All()
Registrar<T>.IRegistrar.Add(Type, INetObject, String)
Registrar<T>.IRegistrar.Remove(IHasID)
Registrar<T>.IRegistrar.Remove(INetObject, IHasID)
Registrar<T>.IRegistrar.Insert(IHasID, INetObject, Boolean)
Registrar<T>.IRegistrar.Rename(IHasID, String, Boolean, Boolean)
Registrar<T>.Initialize()
Registrar<T>.GetByName(String)
Registrar<T>.All()
Registrar<T>.Snapshot()
Registrar<T>.OfType<TResult>()
Registrar<T>.Add()
Registrar<T>.Add(INetObject)
Registrar<T>.Add(INetObject, String, Action<T>)
Registrar<T>.Add<TImpl>(INetObject, String, Action<TImpl>)
Registrar<T>.Add(Type, INetObject, String, Action<T>)
Registrar<T>.Insert(T, INetObject, Boolean)
Registrar<T>.UpdateName(T)
Registrar<T>.IsNameValid(String)
Registrar<T>.Rename(T, String, Boolean, Boolean)
Registrar<T>.GetUniqueName(String)
Registrar<T>.SanitizeName(String, Boolean, String, Boolean)
Registrar<T>.RemoveAll(Func<T, Boolean>)
Registrar<T>.Remove(T)
Registrar<T>.Remove(INetObject, T)
Registrar<T>.Clear()
Registrar<T>.Save()
Registrar<T>.GetEnumerator()
Registrar<T>.Callbacks
Registrar<T>.OnRenamed
Registrar<T>.Objs
Registrar<T>.NameToObj
Registrar<T>.ShowInEcopedia
Registrar<T>.Hidden
Registrar<T>.SaveObject
Registrar<T>.RegistrarName
Registrar<T>.EcopediaPageName
Registrar<T>.ShareWithClient
Registrar<T>.ContainedType
Registrar<T>.Count
Registrar<T>.IRegistrar.Random
Registrar<T>.Random
Registrar<T>.ControllerID
Registrar<T>.OnContentsChangedStates
Namespace: Eco.Core.Systems
Assembly: Eco.Core.dll
Syntax
public class GeneratedRegistrar<T> : Registrar<T>, IRegistrar, IController, IViewController, IHasUniversalID, ITrackedEnumerable, IEnumerable, IEnumerable<T> where T : class, IHasID
Type Parameters
Name Description
T

Constructors

GeneratedRegistrar()

Declaration
public GeneratedRegistrar()

Methods

AddNameMapping(String, T)

Adds mapping between name and object, but doesn't allocate ID. IDs allocated when PreInit(LocString, Boolean, ISaveablePlugin, String, Boolean) called. May be only used before registrar initialized.

Declaration
public T AddNameMapping(string name, T obj)
Parameters
Type Name Description
System.String name
T obj
Returns
Type Description
T

PreInit(LocString, Boolean, ISaveablePlugin, String, Boolean)

Declaration
public void PreInit(LocString registrarName, bool shareWithClient, ISaveablePlugin save, string ecopediaPageName = null, bool hidden = false)
Parameters
Type Name Description
LocString registrarName
System.Boolean shareWithClient
ISaveablePlugin save
System.String ecopediaPageName
System.Boolean hidden

Implements

IRegistrar
IController
IViewController
IHasUniversalID
ITrackedEnumerable
System.Collections.IEnumerable
System.Collections.Generic.IEnumerable<>

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