Initial Commit
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
namespace Zenject.Tests.Installers.ScriptableObjectInstallers
|
||||
{
|
||||
//[CreateAssetMenu(fileName = "BarInstaller", menuName = "Installers/BarInstaller")]
|
||||
public class BarInstaller : ScriptableObjectInstaller<string, BarInstaller>
|
||||
{
|
||||
string _value;
|
||||
|
||||
[Inject]
|
||||
public void Construct(string value)
|
||||
{
|
||||
_value = value;
|
||||
}
|
||||
|
||||
public override void InstallBindings()
|
||||
{
|
||||
Container.BindInstance(_value);
|
||||
}
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8ad54a4699841ca4b83c660b1e5b1205
|
||||
timeCreated: 1465573014
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
namespace Zenject.Tests.Installers.ScriptableObjectInstallers
|
||||
{
|
||||
public class Foo
|
||||
{
|
||||
}
|
||||
|
||||
//[CreateAssetMenu(fileName = "FooInstaller", menuName = "Installers/FooInstaller")]
|
||||
public class FooInstaller : ScriptableObjectInstaller<FooInstaller>
|
||||
{
|
||||
public override void InstallBindings()
|
||||
{
|
||||
Container.Bind<Foo>().AsSingle().NonLazy();
|
||||
}
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 86b0c5429fd52904bb98fbccd1e6f2b6
|
||||
timeCreated: 1465571499
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
namespace Zenject.Tests.Installers.ScriptableObjectInstallers
|
||||
{
|
||||
//[CreateAssetMenu(fileName = "QuxInstaller", menuName = "Installers/QuxInstaller")]
|
||||
public class QuxInstaller : ScriptableObjectInstaller<string, float, int, QuxInstaller>
|
||||
{
|
||||
string _p1;
|
||||
|
||||
[Inject]
|
||||
public void Construct(string p1, float p2, int p3)
|
||||
{
|
||||
_p1 = p1;
|
||||
}
|
||||
|
||||
public override void InstallBindings()
|
||||
{
|
||||
Container.BindInstance(_p1);
|
||||
}
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2d651675af1c6f14a8e56772e1f69e25
|
||||
timeCreated: 1465573495
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user