Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Worflow/refactoring #2

Merged
merged 6 commits into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Next Next commit
renaming unityutility namespace to OlegHcp
  • Loading branch information
oleghcp committed Feb 27, 2024
commit 2051d0386b693baad085aa8cbf3670a05cbaf80c
2 changes: 1 addition & 1 deletion Code/Editor/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Reflection;

[assembly: AssemblyTitle(nameof(UnityUtilityEditor))]
[assembly: AssemblyTitle(nameof(OlegHcpEditor))]
[assembly: AssemblyDescription("Some helpful code stuff for Unity editor")]
[assembly: AssemblyCompany("Oleg Pulkin the Individual Coder")]
[assembly: AssemblyProduct("Utility Library for Unity Editor")]
Expand Down
11 changes: 1 addition & 10 deletions Code/Editor/AssemblyInfo.cs.meta

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

10 changes: 5 additions & 5 deletions Code/Editor/AssetOpenEditor.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using UnityEditor;
using UnityEditor.Callbacks;
using UnityEngine;
using UnityUtility.NodeBased.Service;
using UnityUtilityEditor.Configs;
using UnityUtilityEditor.Engine;
using UnityUtilityEditor.Window;
using OlegHcp.NodeBased.Service;
using OlegHcpEditor.Configs;
using OlegHcpEditor.Engine;
using OlegHcpEditor.Window;
using UnityObject = UnityEngine.Object;

namespace UnityUtilityEditor
namespace OlegHcpEditor
{
#pragma warning disable IDE0051
internal static class AssetOpenEditor
Expand Down
11 changes: 1 addition & 10 deletions Code/Editor/AssetOpenEditor.cs.meta

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

4 changes: 2 additions & 2 deletions Code/Editor/CodeGenerating/EnumGenerator.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityUtility.CSharp;
using OlegHcp.CSharp;

namespace UnityUtilityEditor.CodeGenerating
namespace OlegHcpEditor.CodeGenerating
{
public static class EnumGenerator
{
Expand Down
2 changes: 1 addition & 1 deletion Code/Editor/CodeGenerating/GeneratingTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Text;
using UnityEditor;

namespace UnityUtilityEditor.CodeGenerating
namespace OlegHcpEditor.CodeGenerating
{
public static class GeneratingTools
{
Expand Down
15 changes: 9 additions & 6 deletions Code/Editor/CodeGenerating/LayerSetClassGenerator.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System.Text;
using OlegHcp;
using OlegHcp.CSharp;
using OlegHcpEditor.Configs;
using OlegHcpEditor.Engine;
using UnityEditor;
using UnityEngine;
using UnityUtility;
using UnityUtility.CSharp;
using UnityUtilityEditor.Configs;
using UnityUtilityEditor.Engine;

namespace UnityUtilityEditor.CodeGenerating
namespace OlegHcpEditor.CodeGenerating
{
internal static class LayerSetClassGenerator
{
Expand All @@ -32,7 +32,10 @@ public static string Generate(LayerSetConfig config, SerializedObject tagManager

case LayerSetConfig.LayerMaskFieldType.IntMask:
builder.AppendLine()
.AppendLine("using UnityUtility;");
.Append("using ")
.Append(nameof(OlegHcp))
.Append(';')
.AppendLine();
break;

default:
Expand Down
4 changes: 2 additions & 2 deletions Code/Editor/Configs/LayerSetConfig.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using UnityUtilityEditor.Engine;
using OlegHcpEditor.Engine;

namespace UnityUtilityEditor.Configs
namespace OlegHcpEditor.Configs
{
[Serializable]
internal class LayerSetConfig
Expand Down
6 changes: 3 additions & 3 deletions Code/Editor/Configs/LibrarySettings.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using System;
using System.IO;
using UnityEngine;
using UnityUtility.Mathematics;
using UnityUtilityEditor.Engine;
using OlegHcp.Mathematics;
using OlegHcpEditor.Engine;

namespace UnityUtilityEditor.Configs
namespace OlegHcpEditor.Configs
{
[Serializable]
internal class LibrarySettings
Expand Down
4 changes: 2 additions & 2 deletions Code/Editor/CsprojFilePostprocessor.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.Xml.Linq;
using UnityEditor;
using UnityUtilityEditor.Configs;
using OlegHcpEditor.Configs;

namespace UnityUtilityEditor
namespace OlegHcpEditor
{
public class CsprojFilePostprocessor : AssetPostprocessor
{
Expand Down
6 changes: 3 additions & 3 deletions Code/Editor/Drawers/AiSimulation/BehaviorStateDrawer.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using System;
using UnityEditor;
using UnityEngine;
using UnityUtility.AiSimulation.Simple;
using UnityUtilityEditor.Drawers.Attributes;
using OlegHcp.AiSimulation.Simple;
using OlegHcpEditor.Drawers.Attributes;

namespace UnityUtilityEditor.Drawers.AiSimulation
namespace OlegHcpEditor.Drawers.AiSimulation
{
[CustomPropertyDrawer(typeof(BehaviorState), true)]
internal class BehaviorStateDrawer : ReferenceSelectionDrawer
Expand Down
10 changes: 5 additions & 5 deletions Code/Editor/Drawers/AiSimulation/CompleteHandlerDrawer.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System;
using UnityEditor;
using UnityEngine;
using UnityUtility.AiSimulation;
using UnityUtility.AiSimulation.NodeBased;
using UnityUtility.AiSimulation.Simple;
using UnityUtilityEditor.Drawers.Attributes;
using OlegHcp.AiSimulation;
using OlegHcp.AiSimulation.NodeBased;
using OlegHcp.AiSimulation.Simple;
using OlegHcpEditor.Drawers.Attributes;

namespace UnityUtilityEditor.Drawers.AiSimulation
namespace OlegHcpEditor.Drawers.AiSimulation
{
[CustomPropertyDrawer(typeof(CompleteHandler), true)]
internal class CompleteHandlerDrawer : ReferenceSelectionDrawer
Expand Down
8 changes: 4 additions & 4 deletions Code/Editor/Drawers/AiSimulation/StateConditionDrawer.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using System;
using UnityEditor;
using UnityEngine;
using UnityUtility.AiSimulation.Simple;
using UnityUtilityEditor.Drawers.Attributes;
using UnityUtilityEditor.Engine;
using OlegHcp.AiSimulation.Simple;
using OlegHcpEditor.Drawers.Attributes;
using OlegHcpEditor.Engine;

namespace UnityUtilityEditor.Drawers.AiSimulation
namespace OlegHcpEditor.Drawers.AiSimulation
{
[CustomPropertyDrawer(typeof(StateCondition), true)]
internal class StateConditionDrawer : ReferenceSelectionDrawer
Expand Down
8 changes: 4 additions & 4 deletions Code/Editor/Drawers/AssetRefDrawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
using System.Linq;
using UnityEditor;
using UnityEngine;
using UnityUtility;
using UnityUtility.CSharp;
using UnityUtilityEditor.Engine;
using OlegHcp;
using OlegHcp.CSharp;
using OlegHcpEditor.Engine;
using UnityObject = UnityEngine.Object;

namespace UnityUtilityEditor.Drawers
namespace OlegHcpEditor.Drawers
{
[CustomPropertyDrawer(typeof(AssetRef<>))]
internal class AssetRefDrawer : PropertyDrawer
Expand Down
8 changes: 4 additions & 4 deletions Code/Editor/Drawers/Attributes/CertainTypesDrawer.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System;
using UnityEditor;
using UnityEngine;
using UnityUtility.CSharp;
using UnityUtility.Inspector;
using UnityUtilityEditor.Engine;
using OlegHcp.CSharp;
using OlegHcp.Inspector;
using OlegHcpEditor.Engine;
using UnityObject = UnityEngine.Object;

namespace UnityUtilityEditor.Drawers.Attributes
namespace OlegHcpEditor.Drawers.Attributes
{
[CustomPropertyDrawer(typeof(CertainTypesAttribute))]
public class CertainTypesDrawer : AttributeDrawer<CertainTypesAttribute>
Expand Down
10 changes: 5 additions & 5 deletions Code/Editor/Drawers/Attributes/ClampDiapasonDrawer.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System;
using UnityEditor;
using UnityEngine;
using UnityUtility.Inspector;
using UnityUtility.Mathematics;
using UnityUtility.NumericEntities;
using UnityUtilityEditor.Engine;
using OlegHcp.Inspector;
using OlegHcp.Mathematics;
using OlegHcp.NumericEntities;
using OlegHcpEditor.Engine;

namespace UnityUtilityEditor.Drawers.Attributes
namespace OlegHcpEditor.Drawers.Attributes
{
[CustomPropertyDrawer(typeof(ClampDiapasonAttribute))]
internal class ClampDiapasonDrawer : AttributeDrawer<ClampDiapasonAttribute>
Expand Down
4 changes: 2 additions & 2 deletions Code/Editor/Drawers/Attributes/DisableEditingDrawer.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using UnityEditor;
using UnityEngine;
using UnityUtility.Inspector;
using OlegHcp.Inspector;

namespace UnityUtilityEditor.Drawers.Attributes
namespace OlegHcpEditor.Drawers.Attributes
{
[CustomPropertyDrawer(typeof(DisableEditingAttribute))]
internal class DisableEditingDrawer : PropertyDrawer
Expand Down
16 changes: 8 additions & 8 deletions Code/Editor/Drawers/Attributes/DrawFlagsDrawer.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
using System;
using UnityEditor;
using UnityEngine;
using UnityUtility;
using UnityUtility.Collections;
using UnityUtility.CSharp;
using UnityUtility.Inspector;
using UnityUtilityEditor.Engine;
using UnityUtilityEditor.Window;

namespace UnityUtilityEditor.Drawers.Attributes
using OlegHcp;
using OlegHcp.Collections;
using OlegHcp.CSharp;
using OlegHcp.Inspector;
using OlegHcpEditor.Engine;
using OlegHcpEditor.Window;

namespace OlegHcpEditor.Drawers.Attributes
{
[CustomPropertyDrawer(typeof(DrawFlagsAttribute))]
internal class DrawFlagsDrawer : AttributeDrawer<DrawFlagsAttribute>
Expand Down
10 changes: 5 additions & 5 deletions Code/Editor/Drawers/Attributes/DrawObjectFieldsDrawer.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using UnityEditor;
using UnityEngine;
using UnityUtility.CSharp;
using UnityUtility.Inspector;
using UnityUtility.Tools;
using UnityUtilityEditor.Engine;
using OlegHcp.CSharp;
using OlegHcp.Inspector;
using OlegHcp.Tools;
using OlegHcpEditor.Engine;

namespace UnityUtilityEditor.Drawers.Attributes
namespace OlegHcpEditor.Drawers.Attributes
{
[CustomPropertyDrawer(typeof(DrawObjectFieldsAttribute))]
internal class DrawObjectFieldsDrawer : AttributeDrawer<DrawObjectFieldsAttribute>
Expand Down
8 changes: 4 additions & 4 deletions Code/Editor/Drawers/Attributes/DrawTypenameDrawer.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using System;
using UnityEditor;
using UnityEngine;
using UnityUtility;
using UnityUtility.Inspector;
using UnityUtilityEditor.Engine;
using OlegHcp;
using OlegHcp.Inspector;
using OlegHcpEditor.Engine;

namespace UnityUtilityEditor.Drawers.Attributes
namespace OlegHcpEditor.Drawers.Attributes
{
[CustomPropertyDrawer(typeof(DrawTypenameAttribute))]
internal class DrawTypenameDrawer : SerializeReferenceDrawer
Expand Down
6 changes: 3 additions & 3 deletions Code/Editor/Drawers/Attributes/EnumMenuDrawer.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using System;
using UnityEditor;
using UnityEngine;
using UnityUtility.Inspector;
using UnityUtilityEditor.Engine;
using OlegHcp.Inspector;
using OlegHcpEditor.Engine;

namespace UnityUtilityEditor.Drawers.Attributes
namespace OlegHcpEditor.Drawers.Attributes
{
[CustomPropertyDrawer(typeof(EnumMenuAttribute), true)]
internal sealed class EnumMenuDrawer : PropertyDrawer
Expand Down
6 changes: 3 additions & 3 deletions Code/Editor/Drawers/Attributes/FolderRequiredDrawer.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using UnityEditor;
using UnityEngine;
using UnityUtility.Inspector;
using UnityUtilityEditor.Engine;
using OlegHcp.Inspector;
using OlegHcpEditor.Engine;

namespace UnityUtilityEditor.Drawers.Attributes
namespace OlegHcpEditor.Drawers.Attributes
{
[CustomPropertyDrawer(typeof(FolderRequiredAttribute))]
internal class FolderRequiredDrawer : PropertyDrawer
Expand Down
8 changes: 4 additions & 4 deletions Code/Editor/Drawers/Attributes/IdentifierDrawer.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using System;
using UnityEditor;
using UnityEngine;
using UnityUtility.CSharp;
using UnityUtility.Inspector;
using UnityUtilityEditor.Engine;
using OlegHcp.CSharp;
using OlegHcp.Inspector;
using OlegHcpEditor.Engine;

namespace UnityUtilityEditor.Drawers.Attributes
namespace OlegHcpEditor.Drawers.Attributes
{
[CustomPropertyDrawer(typeof(IdentifierAttribute))]
internal class IdentifierDrawer : AttributeDrawer<IdentifierAttribute>
Expand Down
8 changes: 4 additions & 4 deletions Code/Editor/Drawers/Attributes/InitListDrawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
using System.Reflection;
using UnityEditor;
using UnityEngine;
using UnityUtility.CSharp;
using UnityUtility.Inspector;
using UnityUtilityEditor.Engine;
using OlegHcp.CSharp;
using OlegHcp.Inspector;
using OlegHcpEditor.Engine;

namespace UnityUtilityEditor.Drawers.Attributes
namespace OlegHcpEditor.Drawers.Attributes
{
[CustomPropertyDrawer(typeof(InitListAttribute))]
internal class InitListDrawer : SerializeReferenceDrawer
Expand Down
6 changes: 3 additions & 3 deletions Code/Editor/Drawers/Attributes/InitToggleDrawer.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using System;
using UnityEditor;
using UnityEngine;
using UnityUtility.Inspector;
using UnityUtilityEditor.Engine;
using OlegHcp.Inspector;
using OlegHcpEditor.Engine;

namespace UnityUtilityEditor.Drawers.Attributes
namespace OlegHcpEditor.Drawers.Attributes
{
[CustomPropertyDrawer(typeof(InitToggleAttribute))]
internal class InitToggleDrawer : SerializeReferenceDrawer
Expand Down
8 changes: 4 additions & 4 deletions Code/Editor/Drawers/Attributes/LayerFieldDrawer.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using System;
using UnityEditor;
using UnityEngine;
using UnityUtility.CSharp;
using UnityUtility.Inspector;
using UnityUtilityEditor.Engine;
using OlegHcp.CSharp;
using OlegHcp.Inspector;
using OlegHcpEditor.Engine;

namespace UnityUtilityEditor.Drawers.Attributes
namespace OlegHcpEditor.Drawers.Attributes
{
[CustomPropertyDrawer(typeof(LayerFieldAttribute))]
internal class LayerFieldDrawer : AttributeDrawer<LayerFieldAttribute>
Expand Down
Loading