Changed namespaces

This commit is contained in:
Stedd 2023-10-08 14:54:33 +02:00
parent f2355fc782
commit c473d58817
15 changed files with 89 additions and 11 deletions

View File

@ -1,9 +1,7 @@
{ {
"name": "CoreSystems", "name": "CoreSystems",
"rootNamespace": "AsteroidGame", "rootNamespace": "GameDev",
"references": [ "references": [],
"GUID:eb3099ff524d60545a136315a154d67b"
],
"includePlatforms": [], "includePlatforms": [],
"excludePlatforms": [], "excludePlatforms": [],
"allowUnsafeCode": false, "allowUnsafeCode": false,

View File

@ -1,4 +1,4 @@
namespace AsteroidGame.CoreSystems namespace GameDev.CoreSystems
{ {
public interface IBuildable public interface IBuildable
{ {

View File

@ -1,4 +1,4 @@
namespace AsteroidGame.CoreSystems namespace GameDev.CoreSystems
{ {
public interface IDamageable public interface IDamageable
{ {

View File

@ -1,4 +1,4 @@
namespace AsteroidGame.CoreSystems namespace GameDev.CoreSystems
{ {
public interface IPowerSystem public interface IPowerSystem
{ {

View File

@ -1,6 +1,6 @@
using UnityEngine; using UnityEngine;
namespace AsteroidGame.CoreSystems namespace GameDev.CoreSystems
{ {
public interface ITargetable public interface ITargetable
{ {

View File

@ -1,4 +1,4 @@
namespace AsteroidGame.CoreSystems namespace GameDev.CoreSystems
{ {
public interface IWeapon public interface IWeapon
{ {

8
ScriptableObjects.meta Normal file
View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 69fd32df12e214d4f92a17dbbe677a7d
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,20 @@
using System.Collections.Generic;
using UnityEngine;
namespace GameDev.CoreSystems
{
public abstract class SRuntimeSet<T> : ScriptableObject
{
public List<T> _list;
public void Add(T component)
{
_list.Add(component);
}
public void Remove(T component)
{
_list.Remove(component);
}
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 1e81b384c7f010b4fa3c1b8f293a4c42
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,10 @@
using UnityEngine;
namespace GameDev.CoreSystems
{
[CreateAssetMenu(fileName = "newDamageableRuntimeSet", menuName = "RuntimeSet/Damageable")]
public class SoDamageableRuntimeSet : SRuntimeSet<Damageable>
{
//asdf
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 9d4c8ce856b06db4c9a892b981e516e7
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,9 @@
using UnityEngine;
namespace GameDev.CoreSystems
{
[CreateAssetMenu(fileName = "newDamageableRuntimeSet", menuName = "RuntimeSet/Damageable")]
public class SoTargetableRuntimeSet : SRuntimeSet<Targetable>
{
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 7d76ef79c960c1845a914468e30d036b
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,6 +1,6 @@
using UnityEngine; using UnityEngine;
namespace AsteroidGame.CoreSystems namespace GameDev.CoreSystems
{ {
public class Damageable : MonoBehaviour, IDamageable public class Damageable : MonoBehaviour, IDamageable
{ {

View File

@ -1,6 +1,6 @@
using UnityEngine; using UnityEngine;
namespace AsteroidGame.CoreSystems namespace GameDev.CoreSystems
{ {
public class Targetable : MonoBehaviour, ITargetable public class Targetable : MonoBehaviour, ITargetable
{ {