IMovementController Added

This commit is contained in:
Syntriax 2022-03-05 18:59:41 +03:00
parent 619aba0a2e
commit 91839d2323
13 changed files with 39 additions and 26 deletions

View File

@ -1,7 +1,3 @@
using System;
using System.Linq;
using UnityEngine;
namespace Syntriax.Modules.Movement.ColliderCheck namespace Syntriax.Modules.Movement.ColliderCheck
{ {
public class ColliderCheckFactory : TypeFactoryBaseMonoBehaviour<ColliderCheckFactory, IColliderCheck> public class ColliderCheckFactory : TypeFactoryBaseMonoBehaviour<ColliderCheckFactory, IColliderCheck>

4
IMovementController.cs Normal file
View File

@ -0,0 +1,4 @@
namespace Syntriax.Modules.Movement
{
public interface IMovementController : IState { }
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 5764f99e19c73b2478a0d7d183a9bfc9
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
namespace Syntriax.Modules.Movement
{
public class MovementControllerFactory : TypeFactoryBaseMonoBehaviour<MovementControllerFactory, IMovementController>
{
protected override int InitialCapacity => 8;
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 975e4749036474b48a4a3fb36949be3f
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,6 +1,3 @@
using System;
using System.Linq;
namespace Syntriax.Modules.Movement namespace Syntriax.Modules.Movement
{ {
public class MovementFactory : TypeFactoryBaseMonoBehaviour<MovementFactory, IMovement> public class MovementFactory : TypeFactoryBaseMonoBehaviour<MovementFactory, IMovement>

View File

@ -1,6 +1,3 @@
using System;
using System.Linq;
namespace Syntriax.Modules.Movement.SpecialAction namespace Syntriax.Modules.Movement.SpecialAction
{ {
public class SpecialActionDeactivateFactory : TypeFactoryBaseMonoBehaviour<SpecialActionDeactivateFactory, ISpecialActionDeactivate> public class SpecialActionDeactivateFactory : TypeFactoryBaseMonoBehaviour<SpecialActionDeactivateFactory, ISpecialActionDeactivate>

View File

@ -1,6 +1,3 @@
using System;
using System.Linq;
namespace Syntriax.Modules.Movement.SpecialAction namespace Syntriax.Modules.Movement.SpecialAction
{ {
public class SpecialActionActivateFactory : TypeFactoryBaseMonoBehaviour<SpecialActionActivateFactory, ISpecialActionActivate> public class SpecialActionActivateFactory : TypeFactoryBaseMonoBehaviour<SpecialActionActivateFactory, ISpecialActionActivate>

View File

@ -88,6 +88,11 @@ namespace Syntriax.Modules.Movement
return gameObject.AddComponent(Types[className]) as T2; return gameObject.AddComponent(Types[className]) as T2;
} }
private static string GetTypeClassName(Type type) => $"{ type.Namespace }.{ type.Name }"; public static string GetTypeClassName(Type type)
{
if (string.IsNullOrEmpty(type.Namespace))
return type.Name;
return $"{ type.Namespace }.{ type.Name }";
}
} }
} }

View File

@ -1,6 +1,3 @@
using System;
using System.Linq;
namespace Syntriax.Modules.Movement.VariableMovement namespace Syntriax.Modules.Movement.VariableMovement
{ {
public class VariableMovementAssetFactory : TypeFactoryBaseMonoBehaviour<VariableMovementAssetFactory, IVariableMovementAsset> public class VariableMovementAssetFactory : TypeFactoryBaseMonoBehaviour<VariableMovementAssetFactory, IVariableMovementAsset>

View File

@ -1,6 +1,3 @@
using System;
using System.Linq;
namespace Syntriax.Modules.Movement.VariableMovement namespace Syntriax.Modules.Movement.VariableMovement
{ {
public class VariableMovementCollectionFactory : TypeFactoryBaseMonoBehaviour<VariableMovementCollectionFactory, IVariableMovementCollection> public class VariableMovementCollectionFactory : TypeFactoryBaseMonoBehaviour<VariableMovementCollectionFactory, IVariableMovementCollection>

View File

@ -1,6 +1,3 @@
using System;
using System.Linq;
namespace Syntriax.Modules.Movement.VariableMovement namespace Syntriax.Modules.Movement.VariableMovement
{ {
public class VariableMovementControllerFactory : TypeFactoryBaseMonoBehaviour<VariableMovementControllerFactory, IVariableMovementController> public class VariableMovementControllerFactory : TypeFactoryBaseMonoBehaviour<VariableMovementControllerFactory, IVariableMovementController>

View File

@ -1,6 +1,3 @@
using System;
using System.Linq;
namespace Syntriax.Modules.Movement.VariableMovement namespace Syntriax.Modules.Movement.VariableMovement
{ {
public class VariableMovementFactory : TypeFactoryBaseMonoBehaviour<VariableMovementFactory, IVariableMovement> public class VariableMovementFactory : TypeFactoryBaseMonoBehaviour<VariableMovementFactory, IVariableMovement>