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:
committed by
GitHub
parent
7597cd9172
commit
6f89d0672d
@@ -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>
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
namespace Content.Shared.GameObjects
|
||||
{
|
||||
public static class ContentNetIDs
|
||||
{
|
||||
public const uint HANDS = 1000;
|
||||
}
|
||||
}
|
||||
11
Content.Shared/GameObjects/ContentNetIDs.cs
Normal file
11
Content.Shared/GameObjects/ContentNetIDs.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
10
Content.Shared/GameObjects/PhysicalConstants.cs
Normal file
10
Content.Shared/GameObjects/PhysicalConstants.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
10
Content.Shared/Maths/PhysicalConstants.cs
Normal file
10
Content.Shared/Maths/PhysicalConstants.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user