Initial commit
This commit is contained in:
19
Assets/Darkmatter/Code/App/AppAssembly.asmdef
Normal file
19
Assets/Darkmatter/Code/App/AppAssembly.asmdef
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "AppAssembly",
|
||||
"rootNamespace": "Darkmatter.App",
|
||||
"references": [
|
||||
"GUID:cf1df9e1968a94c4686f2fbe5ef907fc",
|
||||
"GUID:23f9a018fbd2e1242a0525718cc761d6",
|
||||
"GUID:00bcf444fe1ffd8468345b96caa37633",
|
||||
"GUID:b0214a6008ed146ff8f122a6a9c2f6cc"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": [],
|
||||
"versionDefines": [],
|
||||
"noEngineReferences": false
|
||||
}
|
||||
7
Assets/Darkmatter/Code/App/AppAssembly.asmdef.meta
Normal file
7
Assets/Darkmatter/Code/App/AppAssembly.asmdef.meta
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 634a2668b4427c140ab4cd0b6ff07cf0
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Darkmatter/Code/App/Installers.meta
Normal file
8
Assets/Darkmatter/Code/App/Installers.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b97998e69a0f10b49982804ea1cbc704
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
31
Assets/Darkmatter/Code/App/Installers/GameLifetimeScope.cs
Normal file
31
Assets/Darkmatter/Code/App/Installers/GameLifetimeScope.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using VContainer;
|
||||
using VContainer.Unity;
|
||||
using UnityEngine;
|
||||
using Darkmatter.Core;
|
||||
using Darkmatter.Presentation;
|
||||
using Darkmatter.Domain;
|
||||
|
||||
namespace Darkmatter.App
|
||||
{
|
||||
public class GameLifetimeScope : LifetimeScope
|
||||
{
|
||||
[SerializeField] private InputReaderSO inputReader;
|
||||
[SerializeField] private PlayerMotor playerMotor;
|
||||
[SerializeField] private PlayerAnimController playerAnim;
|
||||
[SerializeField] private PlayerConfigSO playerConfig;
|
||||
[SerializeField] private CameraConfigSO cameraConfig;
|
||||
protected override void Configure(IContainerBuilder builder)
|
||||
{
|
||||
builder.RegisterEntryPoint<PlayerController>(Lifetime.Scoped);
|
||||
|
||||
|
||||
builder.RegisterComponent<IPlayerAnim>(playerAnim);
|
||||
builder.RegisterComponent<IInputReader>(inputReader);
|
||||
builder.RegisterComponent<IPlayerPawn>(playerMotor);
|
||||
|
||||
builder.RegisterComponent(playerConfig);
|
||||
builder.RegisterComponent(cameraConfig);
|
||||
builder.Register<PlayerStateMachine>(Lifetime.Scoped);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 90318e5b70a6fc243bdcac1edeafdc26
|
||||
Reference in New Issue
Block a user