Skip to content

Commit d6aefef

Browse files
committed
업데이트
1 parent fdd885c commit d6aefef

File tree

94 files changed

+4054
-216
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+4054
-216
lines changed

LICENSE.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Runtime/ServiceLocatorBehaviour.meta renamed to Runtime/Attribute.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using System;
2+
3+
namespace UNKO.ServiceLocator
4+
{
5+
/// <summary>
6+
/// <see cref="FromServiceLocatorAttribute"/>와 기능 동일
7+
/// </summary>
8+
public class FromSLAttribute : Attribute, IFromServiceLocatorAttribute
9+
{
10+
FromWhere _where; public FromWhere Where => _where;
11+
bool _lazyable; public bool Lazyable => _lazyable;
12+
13+
public FromSLAttribute(FromWhere where = FromWhere.Global, bool lazy = true)
14+
{
15+
_where = where;
16+
_lazyable = lazy;
17+
}
18+
}
19+
}
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using System;
2+
3+
namespace UNKO.ServiceLocator
4+
{
5+
/// <summary>
6+
/// <see cref="FromServiceLocatorAttribute"/>에서 <see cref="FromWhere.GameObject"/>로 지정한 것, 휴먼 에러가 많아서 만듦
7+
/// </summary>
8+
public class FromSLGameObjectAttribute : Attribute, IFromServiceLocatorAttribute
9+
{
10+
public FromWhere Where => FromWhere.GameObject;
11+
bool _lazyable; public bool Lazyable => _lazyable;
12+
13+
public FromSLGameObjectAttribute(bool lazy = true)
14+
{
15+
_lazyable = lazy;
16+
}
17+
}
18+
}

Runtime/ServiceLocatorBehaviour/ServiceLocatorBehaviourBase.cs.meta renamed to Runtime/Attribute/FromSLGameObjectAttribute.cs.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Runtime/Attribute/FromSLScene.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using System;
2+
3+
namespace UNKO.ServiceLocator
4+
{
5+
/// <summary>
6+
/// <see cref="FromServiceLocatorAttribute"/>에서 <see cref="FromWhere.Scene"/>로 지정한 것, 휴먼 에러가 많아서 만듦
7+
/// </summary>
8+
public class FromSLScene : Attribute, IFromServiceLocatorAttribute
9+
{
10+
public FromWhere Where => FromWhere.Scene;
11+
bool _lazyable; public bool Lazyable => _lazyable;
12+
13+
public FromSLScene(bool lazy = true)
14+
{
15+
_lazyable = lazy;
16+
}
17+
}
18+
}

Runtime/Attribute/FromSLScene.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using System;
2+
3+
namespace UNKO.ServiceLocator
4+
{
5+
public class FromServiceLocatorAttribute : Attribute, IFromServiceLocatorAttribute
6+
{
7+
FromWhere _where; public FromWhere Where => _where;
8+
bool _lazyable; public bool Lazyable => _lazyable;
9+
10+
public FromServiceLocatorAttribute(FromWhere where = FromWhere.Global, bool lazy = true)
11+
{
12+
_where = where;
13+
_lazyable = lazy;
14+
}
15+
}
16+
}

Runtime/Attribute/FromServiceLocatorAttribute.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)