Skip to content

Commit

Permalink
Migrate sample project
Browse files Browse the repository at this point in the history
  • Loading branch information
sschmid committed Jul 27, 2023
1 parent 0167f3f commit 4bb0b8a
Show file tree
Hide file tree
Showing 106 changed files with 494 additions and 1,022 deletions.
39 changes: 34 additions & 5 deletions samples/Unity/.editorconfig
Original file line number Diff line number Diff line change
@@ -1,8 +1,37 @@
root = true

[*]
charset=utf-8
end_of_line=lf
trim_trailing_whitespace=true
insert_final_newline=true
indent_style=space
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
tab_width = 4
trim_trailing_whitespace = true

[*.sln]
indent_style = tab

[*.csproj]
indent_size = 2
ij_xml_space_inside_empty_tag = true

[*.DotSettings]
indent_style = tab
ij_xml_attribute_wrap = off

# [*.cs]
# entitas_generator.component.cleanup_systems = false
# entitas_generator.component.component_index = false
# entitas_generator.component.context_extension = false
# entitas_generator.component.context_initialization_method = false
# entitas_generator.component.entity_extension = false
# entitas_generator.component.entity_index_extension = false
# entitas_generator.component.events = false
# entitas_generator.component.event_systems_extension = false
# entitas_generator.component.matcher = false
#
# entitas_generator.context.component_index = false
# entitas_generator.context.context = false
# entitas_generator.context.entity = false
# entitas_generator.context.matcher = false
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System;
using Entitas.VisualDebugging.Unity.Editor;
using Entitas.Unity.Editor;
using UnityEditor;

public class CustomObjectDrawer : ITypeDrawer, IDefaultInstanceCreator
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using Entitas;
using Entitas.VisualDebugging.Unity.Editor;
using Entitas.Unity.Editor;
using UnityEditor;

public class PersonComponentDrawer : IComponentDrawer
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using Entitas;
using Entitas.Generators.Attributes;

[Game]
public class MyArray2DComponent : IComponent
[Context(typeof(GameContext))]
public sealed class MyArray2DComponent : IComponent
{
public string[,] Value;
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using Entitas;
using Entitas.Generators.Attributes;

[Game]
public class MyArray3DComponent : IComponent
[Context(typeof(GameContext))]
public sealed class MyArray3DComponent : IComponent
{
public string[,,] Value;
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using Entitas;
using Entitas.Generators.Attributes;

[Game]
public class MyArrayComponent : IComponent
[Context(typeof(GameContext))]
public sealed class MyArrayComponent : IComponent
{
public string[] Value;
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using Entitas;
using Entitas.Generators.Attributes;

[Game]
public class MyCharComponent : IComponent
[Context(typeof(GameContext))]
public sealed class MyCharComponent : IComponent
{
public char Value;
}
10 changes: 0 additions & 10 deletions samples/Unity/Assets/VisualDebugging/Runtime/Components/MyClass.cs

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using Entitas;
using Entitas.Generators.Attributes;

[Game]
public class MyCustomObjectComponent : IComponent
[Context(typeof(GameContext))]
public sealed class MyCustomObjectComponent : IComponent
{
public MyCustomObject Value;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
using System;
using Entitas;
using Entitas.Generators.Attributes;

[Game]
public class MyDateTimeComponent : IComponent
[Context(typeof(GameContext))]
public sealed class MyDateTimeComponent : IComponent
{
public DateTime Value;
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
using System.Collections.Generic;
using Entitas;
using Entitas.Generators.Attributes;

[Game]
public class MyDictArrayComponent : IComponent
[Context(typeof(GameContext))]
public sealed class MyDictArrayComponent : IComponent
{
public Dictionary<int, string[]> Dict;
public Dictionary<int, string[]>[] DictArray;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
using System.Collections.Generic;
using Entitas;
using Entitas.Generators.Attributes;

[Game]
public class MyDictionaryComponent : IComponent
[Context(typeof(GameContext))]
public sealed class MyDictionaryComponent : IComponent
{
public Dictionary<string, string> Value;
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
using Entitas;
using Entitas.VisualDebugging.Unity;
using Entitas.Generators.Attributes;
using Entitas.Unity;

[Game, DontDrawComponent]
public class MyDontDrawComponent : IComponent
[Context(typeof(GameContext)), DontDrawComponent]
public sealed class MyDontDrawComponent : IComponent
{
public MySimpleObject Value;
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Entitas;
using Entitas.Generators.Attributes;

[Game]
public class MyFlagComponent : IComponent { }
[Context(typeof(GameContext))]
public sealed class MyFlagComponent : IComponent { }

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
using System.Collections.Generic;
using Entitas;
using Entitas.Generators.Attributes;

[Game]
public class MyHashSetComponent : IComponent
[Context(typeof(GameContext))]
public sealed class MyHashSetComponent : IComponent
{
public HashSet<string> Value;
}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using Entitas;
using Entitas.Generators.Attributes;

[Game]
public class MyJaggedArrayComponent : IComponent
[Context(typeof(GameContext))]
public sealed class MyJaggedArrayComponent : IComponent
{
public string[][] Value;
}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
using System.Collections.Generic;
using Entitas;
using Entitas.Generators.Attributes;

[Game]
public class MyListArrayComponent : IComponent
[Context(typeof(GameContext))]
public sealed class MyListArrayComponent : IComponent
{
public List<string>[] Value;
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
using System.Collections.Generic;
using Entitas;
using Entitas.Generators.Attributes;

[Game]
public class MyListComponent : IComponent
[Context(typeof(GameContext))]
public sealed class MyListComponent : IComponent
{
public List<string> Value;
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using Entitas;
using Entitas.Generators.Attributes;

[Game]
public class MyMemberListComponent : IComponent
[Context(typeof(GameContext))]
public sealed class MyMemberListComponent : IComponent
{
public string Field1;
public string Field2;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
using Entitas;
using Entitas.Generators.Attributes;
using UnityEngine;

[Game]
public class MyMonoBehaviourSubClassComponent : IComponent
[Context(typeof(GameContext))]
public sealed class MyMonoBehaviourSubClassComponent : IComponent
{
public MyMonoBehaviourSubClass Value;
}
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using Entitas;
using Entitas.Generators.Attributes;

[Game]
public class MyPersonComponent : IComponent
[Context(typeof(GameContext))]
public sealed class MyPersonComponent : IComponent
{
public string Name;
public string Gender;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using Entitas;
using Entitas.Generators.Attributes;

[Game]
public class MyPropertyComponent : IComponent
[Context(typeof(GameContext))]
public sealed class MyPropertyComponent : IComponent
{
public string Value { get; set; }
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
using System.Collections.Generic;
using Entitas;
using Entitas.Generators.Attributes;

[Game]
public class MySimpleObjectComponent : IComponent
[Context(typeof(GameContext))]
public sealed class MySimpleObjectComponent : IComponent
{
public MySimpleObject Value;
}
Expand All @@ -13,6 +14,5 @@ public class MySimpleObject
public int Age;
public Dictionary<string, string> Data;
public MyCustomObject MyCustomObject;
public MyIntVector2 MyIntVector;
public MySimpleObject Next;
}
Loading

0 comments on commit 4bb0b8a

Please sign in to comment.