Syntriax.Engine/Engine.Core/Factory/TransformFactory.cs

11 lines
299 B
C#
Raw Permalink Normal View History

2023-11-23 22:07:49 +03:00
using Syntriax.Engine.Core.Abstract;
namespace Syntriax.Engine.Core.Factory;
public class TransformFactory
{
public ITransform Instantiate() => TypeFactory.Get<Transform>();
public T Instantiate<T>(params object?[]? args) where T : class, ITransform
=> TypeFactory.Get<T>(args);
}