Skip to content

Commit

Permalink
Generated Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sschmid committed Jan 12, 2018
1 parent 9b74c03 commit 50e4c31
Show file tree
Hide file tree
Showing 7 changed files with 102 additions and 45 deletions.
10 changes: 0 additions & 10 deletions Readme/Entitas.properties

This file was deleted.

43 changes: 43 additions & 0 deletions Readme/Prefrences.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
CodeGenerator.SearchPaths = ../Addons/Entitas.CodeGeneration.Plugins/bin/Release, \
../../DesperateDevs/DesperateDevs.CodeGeneration.Plugins/bin/Release

CodeGenerator.Plugins = Entitas.CodeGeneration.Plugins, \
DesperateDevs.CodeGeneration.Plugins

CodeGenerator.PreProcessors = DesperateDevs.CodeGeneration.Plugins.TargetFrameworkProfilePreProcessor
CodeGenerator.DataProviders = Entitas.CodeGeneration.Plugins.ComponentDataProvider, \
Entitas.CodeGeneration.Plugins.ContextDataProvider, \
Entitas.CodeGeneration.Plugins.EntityIndexDataProvider

CodeGenerator.CodeGenerators = Entitas.CodeGeneration.Plugins.ComponentContextGenerator, \
Entitas.CodeGeneration.Plugins.ComponentEntityGenerator, \
Entitas.CodeGeneration.Plugins.ComponentEntityInterfaceGenerator, \
Entitas.CodeGeneration.Plugins.ComponentGenerator, \
Entitas.CodeGeneration.Plugins.ComponentMatcherGenerator, \
Entitas.CodeGeneration.Plugins.ComponentsLookupGenerator, \
Entitas.CodeGeneration.Plugins.ContextAttributeGenerator, \
Entitas.CodeGeneration.Plugins.ContextGenerator, \
Entitas.CodeGeneration.Plugins.ContextMatcherGenerator, \
Entitas.CodeGeneration.Plugins.ContextsGenerator, \
Entitas.CodeGeneration.Plugins.EntityGenerator, \
Entitas.CodeGeneration.Plugins.EntityIndexGenerator

CodeGenerator.PostProcessors = DesperateDevs.CodeGeneration.Plugins.AddFileHeaderPostProcessor, \
DesperateDevs.CodeGeneration.Plugins.CleanTargetDirectoryPostProcessor, \
DesperateDevs.CodeGeneration.Plugins.MergeFilesPostProcessor, \
DesperateDevs.CodeGeneration.Plugins.NewLinePostProcessor, \
DesperateDevs.CodeGeneration.Plugins.UpdateCSProjPostProcessor, \
DesperateDevs.CodeGeneration.Plugins.WriteToDiskPostProcessor, \
DesperateDevs.CodeGeneration.Plugins.ConsoleWriteLinePostProcessor

CodeGenerator.Server.Port = 3333
CodeGenerator.Client.Host = localhost
Ignore.Keys =
DesperateDevs.CodeGeneration.Plugins.ProjectPath = Readme.csproj
Entitas.CodeGeneration.Plugins.Assemblies = bin/Release/Readme.exe
Entitas.CodeGeneration.Plugins.Contexts = Game, \
GameState, \
Input

Entitas.CodeGeneration.Plugins.IgnoreNamespaces = false
DesperateDevs.CodeGeneration.Plugins.TargetDirectory = Readme
54 changes: 27 additions & 27 deletions Readme/Readme.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
Expand Down Expand Up @@ -34,32 +34,32 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Readme\Generated\GameState\Components\GameStateScoreComponent.cs" />
<Compile Include="Readme\Generated\Game\Components\GameUserComponent.cs" />
<Compile Include="Readme\Generated\Game\Components\GameAnimatingComponent.cs" />
<Compile Include="Readme\Generated\Game\Components\GameAssetComponent.cs" />
<Compile Include="Readme\Generated\Game\Components\GameGameBoardElementComponent.cs" />
<Compile Include="Readme\Generated\Game\Components\GameInteractiveComponent.cs" />
<Compile Include="Readme\Generated\Game\Components\GameMovableComponent.cs" />
<Compile Include="Readme\Generated\Game\Components\GamePositionComponent.cs" />
<Compile Include="Readme\Generated\Game\Components\GameViewComponent.cs" />
<Compile Include="Readme\Generated\Game\Components\GameVelocityComponent.cs" />
<Compile Include="Readme\Generated\Game\Components\GameHealthComponent.cs" />
<Compile Include="Readme\Generated\Input\InputComponentsLookup.cs" />
<Compile Include="Readme\Generated\Game\GameComponentsLookup.cs" />
<Compile Include="Readme\Generated\GameState\GameStateComponentsLookup.cs" />
<Compile Include="Readme\Generated\Game\GameAttribute.cs" />
<Compile Include="Readme\Generated\GameState\GameStateAttribute.cs" />
<Compile Include="Readme\Generated\Input\InputAttribute.cs" />
<Compile Include="Readme\Generated\Game\GameContext.cs" />
<Compile Include="Readme\Generated\GameState\GameStateContext.cs" />
<Compile Include="Readme\Generated\Input\InputContext.cs" />
<Compile Include="Readme\Generated\Game\GameMatcher.cs" />
<Compile Include="Readme\Generated\GameState\GameStateMatcher.cs" />
<Compile Include="Readme\Generated\Input\InputMatcher.cs" />
<Compile Include="Readme\Generated\Contexts.cs" />
<Compile Include="Readme\Generated\Game\GameEntity.cs" />
<Compile Include="Readme\Generated\GameState\GameStateEntity.cs" />
<Compile Include="Readme\Generated\GameState\Components\GameStateScoreComponent.cs" />
<Compile Include="Readme\Generated\Game\Components\GameUserComponent.cs" />
<Compile Include="Readme\Generated\Game\Components\GameAnimatingComponent.cs" />
<Compile Include="Readme\Generated\Game\Components\GameAssetComponent.cs" />
<Compile Include="Readme\Generated\Game\Components\GameGameBoardElementComponent.cs" />
<Compile Include="Readme\Generated\Game\Components\GameInteractiveComponent.cs" />
<Compile Include="Readme\Generated\Game\Components\GameMovableComponent.cs" />
<Compile Include="Readme\Generated\Game\Components\GamePositionComponent.cs" />
<Compile Include="Readme\Generated\Game\Components\GameViewComponent.cs" />
<Compile Include="Readme\Generated\Game\Components\GameVelocityComponent.cs" />
<Compile Include="Readme\Generated\Game\Components\GameHealthComponent.cs" />
<Compile Include="Readme\Generated\Input\InputComponentsLookup.cs" />
<Compile Include="Readme\Generated\Game\GameComponentsLookup.cs" />
<Compile Include="Readme\Generated\GameState\GameStateComponentsLookup.cs" />
<Compile Include="Readme\Generated\Game\GameAttribute.cs" />
<Compile Include="Readme\Generated\GameState\GameStateAttribute.cs" />
<Compile Include="Readme\Generated\Input\InputAttribute.cs" />
<Compile Include="Readme\Generated\Game\GameContext.cs" />
<Compile Include="Readme\Generated\GameState\GameStateContext.cs" />
<Compile Include="Readme\Generated\Input\InputContext.cs" />
<Compile Include="Readme\Generated\Game\GameMatcher.cs" />
<Compile Include="Readme\Generated\GameState\GameStateMatcher.cs" />
<Compile Include="Readme\Generated\Input\InputMatcher.cs" />
<Compile Include="Readme\Generated\Contexts.cs" />
<Compile Include="Readme\Generated\Game\GameEntity.cs" />
<Compile Include="Readme\Generated\GameState\GameStateEntity.cs" />
<Compile Include="Readme\Generated\Input\InputEntity.cs" />
</ItemGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,16 @@ public bool isAnimating {
get { return HasComponent(GameComponentsLookup.Animating); }
set {
if (value != isAnimating) {
var index = GameComponentsLookup.Animating;
if (value) {
AddComponent(GameComponentsLookup.Animating, animatingComponent);
var componentPool = GetComponentPool(index);
var component = componentPool.Count > 0
? componentPool.Pop()
: animatingComponent;

AddComponent(index, component);
} else {
RemoveComponent(GameComponentsLookup.Animating);
RemoveComponent(index);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@ public bool isGameBoardElement {
get { return HasComponent(GameComponentsLookup.GameBoardElement); }
set {
if (value != isGameBoardElement) {
var index = GameComponentsLookup.GameBoardElement;
if (value) {
AddComponent(GameComponentsLookup.GameBoardElement, gameBoardElementComponent);
var componentPool = GetComponentPool(index);
var component = componentPool.Count > 0
? componentPool.Pop()
: gameBoardElementComponent;

AddComponent(index, component);
} else {
RemoveComponent(GameComponentsLookup.GameBoardElement);
RemoveComponent(index);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@ public bool isInteractive {
get { return HasComponent(GameComponentsLookup.Interactive); }
set {
if (value != isInteractive) {
var index = GameComponentsLookup.Interactive;
if (value) {
AddComponent(GameComponentsLookup.Interactive, interactiveComponent);
var componentPool = GetComponentPool(index);
var component = componentPool.Count > 0
? componentPool.Pop()
: interactiveComponent;

AddComponent(index, component);
} else {
RemoveComponent(GameComponentsLookup.Interactive);
RemoveComponent(index);
}
}
}
Expand Down
10 changes: 8 additions & 2 deletions Readme/Readme/Generated/Game/Components/GameMovableComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@ public bool isMovable {
get { return HasComponent(GameComponentsLookup.Movable); }
set {
if (value != isMovable) {
var index = GameComponentsLookup.Movable;
if (value) {
AddComponent(GameComponentsLookup.Movable, movableComponent);
var componentPool = GetComponentPool(index);
var component = componentPool.Count > 0
? componentPool.Pop()
: movableComponent;

AddComponent(index, component);
} else {
RemoveComponent(GameComponentsLookup.Movable);
RemoveComponent(index);
}
}
}
Expand Down

0 comments on commit 50e4c31

Please sign in to comment.