chore: added default instantiate for hierarchy object factory
This commit is contained in:
parent
fabc485689
commit
c135035d5b
@ -5,9 +5,11 @@ namespace Syntriax.Engine.Core.Factory;
|
|||||||
|
|
||||||
public class HierarchyObjectFactory
|
public class HierarchyObjectFactory
|
||||||
{
|
{
|
||||||
|
public static IHierarchyObject Instantiate() => Instantiate<HierarchyObject>();
|
||||||
public static T Instantiate<T>(params object?[]? args) where T : class, IHierarchyObject
|
public static T Instantiate<T>(params object?[]? args) where T : class, IHierarchyObject
|
||||||
=> Instantiate<T>(behaviourController: null, stateEnable: null, args);
|
=> Instantiate<T>(behaviourController: null, stateEnable: null, args);
|
||||||
|
|
||||||
|
public static IHierarchyObject Instantiate(IBehaviourController? behaviourController = null, IStateEnable? stateEnable = null) => Instantiate<HierarchyObject>(behaviourController, stateEnable);
|
||||||
public static T Instantiate<T>(
|
public static T Instantiate<T>(
|
||||||
IBehaviourController? behaviourController = null,
|
IBehaviourController? behaviourController = null,
|
||||||
IStateEnable? stateEnable = null,
|
IStateEnable? stateEnable = null,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user