Allowing player to perform action
This commit is contained in:
@@ -36,6 +36,11 @@ public class SpawnableService
|
||||
return await _spawnables.Find(s => s.Id == id).FirstOrDefaultAsync();
|
||||
}
|
||||
|
||||
public virtual async Task<Spawnable> GetByNameAsync(string name)
|
||||
{
|
||||
return await _spawnables.Find(s => s.Name == name).FirstOrDefaultAsync();
|
||||
}
|
||||
|
||||
public virtual async Task DeleteAsync(string id)
|
||||
{
|
||||
await _spawnables.DeleteOneAsync(s => s.Id == id);
|
||||
|
||||
Reference in New Issue
Block a user