Functional GUI!

This commit is contained in:
PJB3005
2017-09-30 16:56:19 +02:00
parent 4c4687eb8e
commit 26e9c37be1
10 changed files with 269 additions and 20 deletions

View File

@@ -56,7 +56,7 @@
<ItemGroup>
<Compile Include="EntryPoint.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="GameObjects\Components\Items\HandsComponent.cs" />
<Compile Include="GameObjects\Components\Items\SharedHandsComponent.cs" />
<Compile Include="GameObjects\Components\NetIDs.cs" />
</ItemGroup>
<ItemGroup>
@@ -97,4 +97,4 @@
<Copy SourceFiles="@(Resource)" DestinationFiles="..\bin\Server\Resources\%(Prefix)%(RecursiveDir)%(Filename)%(Extension)" />
</Target>
<Target Name="AfterBuild" DependsOnTargets="CopyResources" />
</Project>
</Project>

View File

@@ -1,4 +1,4 @@
using SS14.Shared.GameObjects;
using SS14.Shared.GameObjects;
using System;
using System.Collections.Generic;
@@ -16,10 +16,12 @@ namespace Content.Shared.GameObjects
public class HandsComponentState : ComponentState
{
public readonly Dictionary<string, int> Hands;
public readonly string ActiveIndex;
public HandsComponentState(Dictionary<string, int> hands)
public HandsComponentState(Dictionary<string, int> hands, string activeIndex) : base(ContentNetIDs.HANDS)
{
Hands = hands;
ActiveIndex = activeIndex;
}
}
}