Messing with stuff idk if i like
This commit is contained in:
7
Awperative/Kernel/Entities/Entity/Components.cs
Normal file
7
Awperative/Kernel/Entities/Entity/Components.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace Awperative;
|
||||
|
||||
|
||||
internal abstract partial class DockerEntity
|
||||
{
|
||||
|
||||
}
|
||||
21
Awperative/Kernel/Entities/Entity/DockerEntity.cs
Normal file
21
Awperative/Kernel/Entities/Entity/DockerEntity.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
|
||||
namespace Awperative;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Base class for all Awperative entities, manages components as a requirement because that is the job of all entities.
|
||||
/// </summary>
|
||||
internal abstract partial class DockerEntity
|
||||
{
|
||||
public Scene scene;
|
||||
|
||||
public List<Component> Components => _components.ToList();
|
||||
|
||||
|
||||
|
||||
|
||||
internal HashSet<Component> _components;
|
||||
}
|
||||
@@ -5,7 +5,7 @@ using System.Collections.Generic;
|
||||
namespace Awperative;
|
||||
|
||||
|
||||
public sealed partial class Scene
|
||||
public sealed partial class Scene : DockerEntity
|
||||
{
|
||||
|
||||
public List<Behavior> behaviors { get; private set; } = [];
|
||||
|
||||
@@ -5,7 +5,7 @@ using System.Collections.Generic;
|
||||
namespace Awperative;
|
||||
|
||||
|
||||
public sealed partial class Scene
|
||||
public sealed partial class Scene : DockerEntity
|
||||
{
|
||||
public List<Body> bodies { get; private set; } = [];
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Awperative;
|
||||
|
||||
public sealed partial class Scene
|
||||
public sealed partial class Scene : DockerEntity
|
||||
{
|
||||
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ using System;
|
||||
namespace Awperative;
|
||||
|
||||
|
||||
public sealed partial class Scene
|
||||
public sealed partial class Scene : DockerEntity
|
||||
{
|
||||
public event EventHandler<BehaviorCreateEvent> BehaviorCreatedEvent;
|
||||
public event EventHandler<BehaviorDestroyEvent> BehaviorDestroyedEvent;
|
||||
|
||||
@@ -4,7 +4,7 @@ using Microsoft.Xna.Framework;
|
||||
|
||||
namespace Awperative;
|
||||
|
||||
public sealed partial class Scene
|
||||
public sealed partial class Scene : DockerEntity
|
||||
{
|
||||
|
||||
public void Unload() {
|
||||
|
||||
Reference in New Issue
Block a user