Map Blueprint Save/Loading (#32)
* Change entry point to new system. * Map saving/loading works. * Cleans up old code. * Saving and Loading of blueprints works. * Saving and Loading of blueprints works. * Updated the nuget 'YamlDotNet' package to 4.3.0. * Submodules are trash
This commit is contained in:
@@ -51,12 +51,12 @@
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="YamlDotNet">
|
||||
<HintPath>$(SolutionDir)packages\YamlDotNet.4.2.1\lib\net35\YamlDotNet.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="OpenTK, Version=3.0.0.0, Culture=neutral, PublicKeyToken=bad199fe84eb3df4, processorArchitecture=MSIL">
|
||||
<HintPath>$(SolutionDir)packages\OpenTK.3.0.0-pre\lib\net20\OpenTK.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="YamlDotNet, Version=4.3.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>$(SolutionDir)packages\YamlDotNet.4.3.0\lib\net45\YamlDotNet.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="EntryPoint.cs" />
|
||||
@@ -99,4 +99,8 @@
|
||||
<ContentAssemblies Include="$(OutputPath)Content.Client.pdb" Condition="'$(Configuration)' == 'Debug'" />
|
||||
<ContentAssemblies Include="$(OutputPath)Content.Shared.pdb" Condition="'$(Configuration)' == 'Debug'" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
<ItemGroup>
|
||||
<None Include="app.config" />
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -4,32 +4,36 @@ using SS14.Shared.Maths;
|
||||
|
||||
namespace Content.Client.Prototypes
|
||||
{
|
||||
// Instantiated through reflection by the prototype system.
|
||||
public class DiscoBall : Entity
|
||||
{
|
||||
private PointLightComponent LightComponent;
|
||||
private float Hue;
|
||||
private PointLightComponent _lightComponent;
|
||||
private float _hue;
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
LightComponent = GetComponent<PointLightComponent>();
|
||||
_lightComponent = GetComponent<PointLightComponent>();
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void Shutdown()
|
||||
{
|
||||
base.Shutdown();
|
||||
LightComponent = null;
|
||||
_lightComponent = null;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void Update(float frameTime)
|
||||
{
|
||||
Hue += frameTime / 10;
|
||||
if (Hue > 1)
|
||||
_hue += frameTime / 10;
|
||||
if (_hue > 1)
|
||||
{
|
||||
Hue -= 1;
|
||||
_hue -= 1;
|
||||
}
|
||||
|
||||
LightComponent.Color = Color4.FromHsl(new Vector4(Hue, 1, 0.5f, 0.5f));
|
||||
_lightComponent.Color = Color4.FromHsl(new Vector4(_hue, 1, 0.5f, 0.5f));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
11
Content.Client/app.config
Normal file
11
Content.Client/app.config
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="ICSharpCode.SharpZipLib" publicKeyToken="1b03e6acf1164f73" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-0.86.0.518" newVersion="0.86.0.518" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="OpenTK" version="3.0.0-pre" targetFramework="net451" />
|
||||
<package id="YamlDotNet" version="4.2.1" targetFramework="net451" />
|
||||
<package id="System.ValueTuple" version="4.3.1" targetFramework="net451" />
|
||||
</packages>
|
||||
<package id="YamlDotNet" version="4.3.0" targetFramework="net451" />
|
||||
</packages>
|
||||
Reference in New Issue
Block a user