files arranged using assembly defn
This commit is contained in:
17
Assets/DarkMatter/Code/Core/Contracts/IAudioController.cs
Normal file
17
Assets/DarkMatter/Code/Core/Contracts/IAudioController.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Darkmatter.Core
|
||||
{
|
||||
public interface IAudioController
|
||||
{
|
||||
void PlayJumpSound();
|
||||
void PlayDeathSound();
|
||||
void PlayBtnPressedSound();
|
||||
void PlayScoredSound();
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ba1cb4ebd3658324c948dc5c3f1d3a2c
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Darkmatter.Core
|
||||
{
|
||||
public interface IDeathScreenController
|
||||
{
|
||||
void ShowDeathScreen();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7af2cae0d2a1c1f4bb8e5aa5ad630ea1
|
||||
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Darkmatter.Core
|
||||
{
|
||||
public interface IGameScreenController
|
||||
{
|
||||
void ShowGameScreen();
|
||||
void HideGameScreen();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c61899447bb6d694a93759306dee0f6d
|
||||
10
Assets/DarkMatter/Code/Core/Contracts/IGameSession.cs
Normal file
10
Assets/DarkMatter/Code/Core/Contracts/IGameSession.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Darkmatter.Core
|
||||
{
|
||||
public interface IGameSession
|
||||
{
|
||||
bool showStartScreen { get; set; }
|
||||
bool hasGameStarted { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cf4fa3bea06bcae478439f5e33b2e683
|
||||
16
Assets/DarkMatter/Code/Core/Contracts/IInputReader.cs
Normal file
16
Assets/DarkMatter/Code/Core/Contracts/IInputReader.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Darkmatter.Core
|
||||
{
|
||||
public interface IInputReader
|
||||
{
|
||||
event Action<Vector2> OnDragValueChanged;
|
||||
bool isMouseButtonPressed { get; }
|
||||
Vector2 dragInput { get; }
|
||||
|
||||
void LockInput();
|
||||
void UnlockInput();
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3694572af73cf5344988658907712552
|
||||
@@ -0,0 +1,9 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Darkmatter.Core
|
||||
{
|
||||
public interface IPauseScreenController
|
||||
{
|
||||
void ShowPauseScreen();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 531a3cefcdec354409ef858b5ea7fb55
|
||||
12
Assets/DarkMatter/Code/Core/Contracts/IPlatform.cs
Normal file
12
Assets/DarkMatter/Code/Core/Contracts/IPlatform.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Darkmatter.Core
|
||||
{
|
||||
public interface IPlatform
|
||||
{
|
||||
List<GameObject> platformPiece { get; }
|
||||
Material safeMaterial { get; }
|
||||
Material deathMaterial { get; }
|
||||
}
|
||||
}
|
||||
2
Assets/DarkMatter/Code/Core/Contracts/IPlatform.cs.meta
Normal file
2
Assets/DarkMatter/Code/Core/Contracts/IPlatform.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bfc0615b9e0d4094fa7f57342f9ba6fd
|
||||
@@ -0,0 +1,9 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Darkmatter.Core
|
||||
{
|
||||
public interface IPlatformManager
|
||||
{
|
||||
void BuildNewPlatform();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6f4ca9d11e511cc4897f702ce62c2663
|
||||
9
Assets/DarkMatter/Code/Core/Contracts/IPlatformRule.cs
Normal file
9
Assets/DarkMatter/Code/Core/Contracts/IPlatformRule.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Darkmatter.Core
|
||||
{
|
||||
public interface IPlatformRule
|
||||
{
|
||||
public void Execute(IPlatform platform);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ea78e7f773196344bbc9745acf4b5687
|
||||
13
Assets/DarkMatter/Code/Core/Contracts/IPlayer.cs
Normal file
13
Assets/DarkMatter/Code/Core/Contracts/IPlayer.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Darkmatter.Core
|
||||
{
|
||||
public interface IPlayer
|
||||
{
|
||||
bool isDead { get; }
|
||||
}
|
||||
}
|
||||
2
Assets/DarkMatter/Code/Core/Contracts/IPlayer.cs.meta
Normal file
2
Assets/DarkMatter/Code/Core/Contracts/IPlayer.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 833de72b91bdfba49997116bd87a298e
|
||||
15
Assets/DarkMatter/Code/Core/Contracts/IPool.cs
Normal file
15
Assets/DarkMatter/Code/Core/Contracts/IPool.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
using Codice.Client.Common;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Darkmatter.Core
|
||||
{
|
||||
public interface IPool <T>
|
||||
{
|
||||
IReadOnlyCollection<T> All { get; }
|
||||
void ReturnToPool(T obj);
|
||||
|
||||
T GetFromPool();
|
||||
}
|
||||
}
|
||||
2
Assets/DarkMatter/Code/Core/Contracts/IPool.cs.meta
Normal file
2
Assets/DarkMatter/Code/Core/Contracts/IPool.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e8dc86ecbdfd4124595da34516170d7b
|
||||
13
Assets/DarkMatter/Code/Core/Contracts/IScoreService.cs
Normal file
13
Assets/DarkMatter/Code/Core/Contracts/IScoreService.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Darkmatter.Core
|
||||
{
|
||||
public interface IScoreService
|
||||
{
|
||||
int score { get; }
|
||||
int highScore { get; }
|
||||
event Action<int> OnScoreChange;
|
||||
void AddScore();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 726a4c255e8801a4aad700838e98c10e
|
||||
Reference in New Issue
Block a user