Add Bug and conecpt of completeness

This commit is contained in:
Andrew Cooper
2022-07-12 07:41:45 +10:00
parent 6078da8c78
commit be9f0a92f8
8 changed files with 26 additions and 0 deletions

13
16_Bug/csharp/Bug.cs Normal file
View File

@@ -0,0 +1,13 @@
using BugGame.Parts;
using BugGame.Resources;
namespace BugGame;
internal class Bug
{
private readonly Body _body = new();
public bool IsComplete => _body.IsComplete;
public bool TryAdd(IPart part, out Message message) => _body.TryAdd(part, out message);
}