35 lines
937 B
C#
35 lines
937 B
C#
using System.Collections.Generic;
|
|
using TBF.Rig.Generic;
|
|
|
|
namespace TBF.Rig.BridgeComponents.GciBridge
|
|
{
|
|
public class Factory : IComponentFactory
|
|
{
|
|
public string ClassName { get { return GetType().Namespace.Substring(12); } }
|
|
|
|
public override string ToString()
|
|
{
|
|
return ClassName;
|
|
}
|
|
|
|
public IComponent DummyComponent()
|
|
{
|
|
return new GciBridge();
|
|
}
|
|
|
|
public IComponent GetComponent(IComponentCfg cfg, IList<IComponent> components)
|
|
{
|
|
return new GciBridge(cfg, components);
|
|
}
|
|
|
|
public IComponentCfg DefaultConfig()
|
|
{
|
|
return new GciBridgeCfg("GCI Bridge", this);
|
|
}
|
|
|
|
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
|
|
{
|
|
return ComponentCfgBase.CreateFromDbEntity(GciBridgeCfg.Serializer, component, this);
|
|
}
|
|
}
|
|
} |