Allowing player to perform action

This commit is contained in:
hz
2025-06-09 09:28:24 -05:00
parent d16ecac876
commit e1b489dbc8
4 changed files with 103 additions and 0 deletions
+5
View File
@@ -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);