Urist's damage and health thing. (#10)

* Add prototype for temperature testing entity.

* Add Damageable, Destructible, Temperature. Add a prototype based on those.

* Works and cleaned up.

* Nerf
This commit is contained in:
Pieter-Jan Briers
2017-10-07 15:15:29 +02:00
committed by GitHub
parent 7597cd9172
commit 6f89d0672d
16 changed files with 618 additions and 34 deletions

View File

@@ -55,9 +55,11 @@
</ItemGroup>
<ItemGroup>
<Compile Include="EntryPoint.cs" />
<Compile Include="GameObjects\ContentNetIDs.cs" />
<Compile Include="GameObjects\PhysicalConstants.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="GameObjects\Components\Items\SharedHandsComponent.cs" />
<Compile Include="GameObjects\Components\NetIDs.cs" />
<Compile Include="Maths\PhysicalConstants.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\engine\Lidgren.Network\Lidgren.Network.csproj">
@@ -97,4 +99,4 @@
<Copy SourceFiles="@(Resource)" DestinationFiles="..\bin\Server\Resources\%(Prefix)%(RecursiveDir)%(Filename)%(Extension)" />
</Target>
<Target Name="AfterBuild" DependsOnTargets="CopyResources" />
</Project>
</Project>

View File

@@ -1,7 +0,0 @@
namespace Content.Shared.GameObjects
{
public static class ContentNetIDs
{
public const uint HANDS = 1000;
}
}

View File

@@ -0,0 +1,11 @@
namespace Content.Shared.GameObjects
{
// Starting from 1000 to avoid crossover with engine.
public static class ContentNetIDs
{
public const uint DAMAGEABLE = 1000;
public const uint DESTRUCTIBLE = 1001;
public const uint TEMPERATURE = 1002;
public const uint HANDS = 1003;
}
}

View File

@@ -0,0 +1,10 @@
namespace Content.Shared.GameObjects
{
/// <summary>
/// Contains physical constants used in calculations.
/// </summary>
class PhysicalConstants
{
public const float ZERO_CELCIUS = 273.15f;
}
}

View File

@@ -0,0 +1,10 @@
namespace Content.Shared.Maths
{
/// <summary>
/// Contains physical constants used in calculations.
/// </summary>
public static class PhysicalConstants
{
public const float ZERO_CELCIUS = 273.15f;
}
}