Skip to content

Commit

Permalink
Runtime assembly
Browse files Browse the repository at this point in the history
  • Loading branch information
neon-age committed Apr 8, 2021
1 parent b081a7d commit f5d3041
Show file tree
Hide file tree
Showing 11 changed files with 85 additions and 37 deletions.
7 changes: 4 additions & 3 deletions AV.Hierarchy.asmdef
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "AV.Hierarchy",
"rootNamespace": "AV.Hierarchy",
"references": [],
"references": [
"GUID:35739e21ec434a844bd7b2b7ed9bd7ac"
],
"includePlatforms": [
"Editor",
"Stadia"
"Editor"
],
"excludePlatforms": [],
"allowUnsafeCode": false,
Expand Down
33 changes: 0 additions & 33 deletions Base/Icons/ColorTags.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,39 +5,6 @@

namespace AV.Hierarchy
{
public enum ColorTag
{
// https://chir.ag/projects/name-that-color/
/// <summary>Silver / Emperor. UI</summary>
Gray,
/// <summary>
/// Burning Orange / Milano Red. Navigation
/// </summary>
Red,
/// <summary>
/// Amber / Buddha Gold. Audio
/// </summary>
Orange,
/// <summary>
/// Green Yellow / Sea Green. Environment
/// </summary>
Green,
/// <summary>
/// Aquamarine / Surfie Green. Animation
/// </summary>
Aquamarine,
/// <summary>
/// Malibu / Denim. Rendering
/// </summary>
Blue,
/// <summary>
/// Portage / Royal Purple. Sprites
/// </summary>
Purple,
/// <summary>Light Orchid / Cerise. Constraints</summary>
Pink,
}

public static class ColorTags
{
private static Dictionary<ColorTag, (Color dark, Color light)> colorTable;
Expand Down
8 changes: 8 additions & 0 deletions Items/Runtime.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Items/Runtime/--- Reason ---.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

Runtime assembly is required to avoid error when trying to add component from Editor-only assembly.
We have to move MonoBehaviours (and referenced types in them) into this folder.

This assembly is referenced in AV.Hierarchy
7 changes: 7 additions & 0 deletions Items/Runtime/--- Reason ---.txt.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions Items/Runtime/AV.Hierarchy.Runtime.asmdef
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "AV.Hierarchy.Runtime",
"rootNamespace": "AV.Hierarchy",
"references": [],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": true,
"precompiledReferences": [],
"autoReferenced": false,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}
7 changes: 7 additions & 0 deletions Items/Runtime/AV.Hierarchy.Runtime.asmdef.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace AV.Hierarchy
{
[AddComponentMenu("GameObject/Collection")]
internal class Collection : MonoBehaviour
public class Collection : MonoBehaviour
{
[Tooltip("Will skip collection stripping during scene process.\n" +
"Use only when you know that transform overhead is doable.")]
Expand Down
File renamed without changes.
36 changes: 36 additions & 0 deletions Items/Runtime/ColorTag.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

namespace AV.Hierarchy
{
public enum ColorTag
{
// https://chir.ag/projects/name-that-color/
/// <summary>Silver / Emperor. UI</summary>
Gray,
/// <summary>
/// Burning Orange / Milano Red. Navigation
/// </summary>
Red,
/// <summary>
/// Amber / Buddha Gold. Audio
/// </summary>
Orange,
/// <summary>
/// Green Yellow / Sea Green. Environment
/// </summary>
Green,
/// <summary>
/// Aquamarine / Surfie Green. Animation
/// </summary>
Aquamarine,
/// <summary>
/// Malibu / Denim. Rendering
/// </summary>
Blue,
/// <summary>
/// Portage / Royal Purple. Sprites
/// </summary>
Purple,
/// <summary>Light Orchid / Cerise. Constraints</summary>
Pink,
}
}
3 changes: 3 additions & 0 deletions Items/Runtime/ColorTag.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f5d3041

Please sign in to comment.