Skip to content

Commit cbf7ea3

Browse files
committed
Added transforms plugin
1 parent bb31b10 commit cbf7ea3

File tree

6 files changed

+80
-4
lines changed

6 files changed

+80
-4
lines changed

build/pack.bat

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
set version=3.2.0
2-
dotnet pack ../src/SystemsRx.MicroRx -c Release -o ../../_dist /p:version=%version%
3-
dotnet pack ../src/SystemsRx -c Release -o ../../_dist /p:version=%version%
4-
dotnet pack ../src/SystemsRx.Infrastructure -c Release -o ../../_dist /p:version=%version%
1+
set version=7.0.0
52
dotnet pack ../src/EcsRx -c Release -o ../../_dist /p:version=%version%
63
dotnet pack ../src/EcsRx.Plugins.ReactiveSystems -c Release -o ../../_dist /p:version=%version%
74
dotnet pack ../src/EcsRx.Plugins.Views -c Release -o ../../_dist /p:version=%version%
85
dotnet pack ../src/EcsRx.Plugins.Computeds -c Release -o ../../_dist /p:version=%version%
96
dotnet pack ../src/EcsRx.Plugins.GroupBinding -c Release -o ../../_dist /p:version=%version%
107
dotnet pack ../src/EcsRx.Plugins.Batching -c Release -o ../../_dist /p:version=%version%
8+
dotnet pack ../src/EcsRx.Plugins.Transforms -c Release -o ../../_dist /p:version=%version%
119
dotnet pack ../src/EcsRx.Infrastructure -c Release -o ../../_dist /p:version=%version%
1210
dotnet pack ../src/EcsRx.Infrastructure.Ninject -c Release -o ../../_dist /p:version=%version%
1311
dotnet pack ../src/EcsRx.ReactiveData -c Release -o ../../_dist /p:version=%version%
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using EcsRx.Components;
2+
using SystemsRx.Plugins.Transforms.Models;
3+
4+
namespace EcsRx.Plugins.Transforms.Components
5+
{
6+
public class Transform2DComponent : IComponent
7+
{
8+
/// <summary>
9+
/// The transform of the component
10+
/// </summary>
11+
public Transform2D Transform { get; set; }
12+
}
13+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using EcsRx.Components;
2+
using SystemsRx.Plugins.Transforms.Models;
3+
4+
namespace EcsRx.Plugins.Transforms.Components
5+
{
6+
public class TransformComponent : IComponent
7+
{
8+
/// <summary>
9+
/// The transform of the component
10+
/// </summary>
11+
public Transform Transform { get; set; }
12+
}
13+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<Version>0.0.0</Version>
5+
<TargetFramework>netstandard2.1</TargetFramework>
6+
<Title>EcsRx.Plugins.Transforms</Title>
7+
<Authors>Grofit (LP)</Authors>
8+
<PackageLicenseUrl>https://github.com/ecsrx/ecsrx/blob/master/LICENSE</PackageLicenseUrl>
9+
<PackageProjectUrl>https://github.com/ecsrx/ecsrx</PackageProjectUrl>
10+
<Description>A plugin to provide a consistent way to represent 2d/3d transforms</Description>
11+
<PackageTags>ecs rx reactive patterns ioc game-development xna monogame unity</PackageTags>
12+
<LangVersion>8</LangVersion>
13+
</PropertyGroup>
14+
15+
<ItemGroup>
16+
<PackageReference Include="SystemsRx.Infrastructure" Version="7.0.40" />
17+
<PackageReference Include="SystemsRx.Plugins.Transforms" Version="7.0.0" />
18+
</ItemGroup>
19+
20+
<ItemGroup>
21+
<ProjectReference Include="..\EcsRx\EcsRx.csproj" />
22+
</ItemGroup>
23+
24+
</Project>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using SystemsRx.Infrastructure.Dependencies;
4+
using SystemsRx.Infrastructure.Plugins;
5+
using SystemsRx.Systems;
6+
7+
namespace EcsRx.Plugins.Transforms
8+
{
9+
public class TransformsPlugin : ISystemsRxPlugin
10+
{
11+
public string Name => "EcsRx Transforms";
12+
public Version Version { get; } = new Version("1.0.0");
13+
14+
public void SetupDependencies(IDependencyRegistry registry)
15+
{
16+
// Nothing needs registering
17+
}
18+
19+
public IEnumerable<ISystem> GetSystemsForRegistration(IDependencyResolver resolver) => Array.Empty<ISystem>();
20+
}
21+
}

src/EcsRx.sln

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EcsRx.Plugins.GroupBinding"
3333
EndProject
3434
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EcsRx.Benchmarks", "EcsRx.Benchmarks\EcsRx.Benchmarks.csproj", "{4037E761-E07D-42B1-91B8-69798CF0B678}"
3535
EndProject
36+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EcsRx.Plugins.Transforms", "EcsRx.Plugins.Transforms\EcsRx.Plugins.Transforms.csproj", "{24C7B610-18FE-412E-913A-32D49BA032CE}"
37+
EndProject
3638
Global
3739
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3840
Debug|Any CPU = Debug|Any CPU
@@ -83,6 +85,10 @@ Global
8385
{4037E761-E07D-42B1-91B8-69798CF0B678}.Debug|Any CPU.Build.0 = Debug|Any CPU
8486
{4037E761-E07D-42B1-91B8-69798CF0B678}.Release|Any CPU.ActiveCfg = Release|Any CPU
8587
{4037E761-E07D-42B1-91B8-69798CF0B678}.Release|Any CPU.Build.0 = Release|Any CPU
88+
{24C7B610-18FE-412E-913A-32D49BA032CE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
89+
{24C7B610-18FE-412E-913A-32D49BA032CE}.Debug|Any CPU.Build.0 = Debug|Any CPU
90+
{24C7B610-18FE-412E-913A-32D49BA032CE}.Release|Any CPU.ActiveCfg = Release|Any CPU
91+
{24C7B610-18FE-412E-913A-32D49BA032CE}.Release|Any CPU.Build.0 = Release|Any CPU
8692
EndGlobalSection
8793
GlobalSection(SolutionProperties) = preSolution
8894
HideSolutionNode = FALSE
@@ -99,6 +105,7 @@ Global
99105
{D63A4C86-6515-4A3C-9473-45947D34DE21} = {48050703-1E4C-4179-9539-90212854B3F7}
100106
{3DD20735-C1F5-4033-A909-2E1BD9EA075F} = {48050703-1E4C-4179-9539-90212854B3F7}
101107
{4037E761-E07D-42B1-91B8-69798CF0B678} = {4197CF20-C162-449D-A3A5-D50BF9476796}
108+
{24C7B610-18FE-412E-913A-32D49BA032CE} = {48050703-1E4C-4179-9539-90212854B3F7}
102109
EndGlobalSection
103110
GlobalSection(ExtensibilityGlobals) = postSolution
104111
SolutionGuid = {C9292D27-B07F-42D9-94D7-38263CA662DB}

0 commit comments

Comments
 (0)