enemy spawner
This commit is contained in:
8
Game/Scripts/Runtime/Abstractions/IClock.cs
Normal file
8
Game/Scripts/Runtime/Abstractions/IClock.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace Game.Scripts.Runtime.Abstractions
|
||||
{
|
||||
public interface IClock
|
||||
{
|
||||
float Elapsed { get; }
|
||||
bool IsRunning { get; }
|
||||
}
|
||||
}
|
||||
2
Game/Scripts/Runtime/Abstractions/IClock.cs.meta
Normal file
2
Game/Scripts/Runtime/Abstractions/IClock.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 571bdb1b643aa3ca9a685d437bfa198e
|
||||
11
Game/Scripts/Runtime/Abstractions/IEnemyFactory.cs
Normal file
11
Game/Scripts/Runtime/Abstractions/IEnemyFactory.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using Game.Scripts.Runtime.Data;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Game.Scripts.Runtime.Abstractions
|
||||
{
|
||||
public interface IEnemyFactory
|
||||
{
|
||||
GameObject Spawn(EnemyDefinition definition, Vector3 position, Quaternion rotation);
|
||||
void Despawn(GameObject instance);
|
||||
}
|
||||
}
|
||||
2
Game/Scripts/Runtime/Abstractions/IEnemyFactory.cs.meta
Normal file
2
Game/Scripts/Runtime/Abstractions/IEnemyFactory.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9cd9bf4b38832adc09d08d55b0cf1503
|
||||
9
Game/Scripts/Runtime/Abstractions/IPool.cs
Normal file
9
Game/Scripts/Runtime/Abstractions/IPool.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace Game.Scripts.Runtime.Abstractions
|
||||
{
|
||||
public interface IPool<TKey, TValue>
|
||||
{
|
||||
void Prewarm(TKey key, int count);
|
||||
TValue Get(TKey key);
|
||||
void Release(TKey key, TValue value);
|
||||
}
|
||||
}
|
||||
2
Game/Scripts/Runtime/Abstractions/IPool.cs.meta
Normal file
2
Game/Scripts/Runtime/Abstractions/IPool.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d1a3c285bb7769484ba53b11d2d4dbea
|
||||
10
Game/Scripts/Runtime/Abstractions/ISpawnRule.cs
Normal file
10
Game/Scripts/Runtime/Abstractions/ISpawnRule.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using Game.Scripts.Runtime.Data;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Game.Scripts.Runtime.Abstractions
|
||||
{
|
||||
public interface ISpawnRule
|
||||
{
|
||||
bool CanSpawn(EnemyDefinition definition, Vector3 position);
|
||||
}
|
||||
}
|
||||
2
Game/Scripts/Runtime/Abstractions/ISpawnRule.cs.meta
Normal file
2
Game/Scripts/Runtime/Abstractions/ISpawnRule.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 53678779ec0e460ac88698b25fc991f6
|
||||
Reference in New Issue
Block a user