More inventory work. APIs implemented.

Still need to do prototype loading and test cases.
This commit is contained in:
PJB3005
2017-09-24 23:19:47 +02:00
parent 66483bdd72
commit 73ae408e20
5 changed files with 148 additions and 8 deletions

View File

@@ -1,4 +1,8 @@
using SS14.Shared.ContentPack;
using Content.Server.GameObjects;
using Content.Server.Interfaces.GameObjects;
using SS14.Shared.ContentPack;
using SS14.Shared.Interfaces.GameObjects;
using SS14.Shared.IoC;
namespace Content.Server
{
@@ -6,7 +10,16 @@ namespace Content.Server
{
public override void Init()
{
// TODO: Anything at all.
var factory = IoCManager.Resolve<IComponentFactory>();
factory.Register<HandsComponent>();
factory.RegisterReference<HandsComponent, IHandsComponent>();
factory.Register<InventoryComponent>();
factory.RegisterReference<InventoryComponent, IInventoryComponent>();
factory.Register<ItemComponent>();
factory.RegisterReference<ItemComponent, IItemComponent>();
}
}
}