wip: INetworkEntity & INetworkManager
This commit is contained in:
8
Game/Network/Abstract/INetworkEntity.cs
Normal file
8
Game/Network/Abstract/INetworkEntity.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace Syntriax.Engine.Network.Abstract;
|
||||
|
||||
internal interface INetworkEntity
|
||||
{
|
||||
int NetworkId { get; set; }
|
||||
|
||||
void SetNetworkId(int id);
|
||||
}
|
14
Game/Network/Abstract/INetworkManager.cs
Normal file
14
Game/Network/Abstract/INetworkManager.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Syntriax.Engine.Core.Abstract;
|
||||
|
||||
namespace Syntriax.Engine.Network.Abstract;
|
||||
|
||||
public interface INetworkManager
|
||||
{
|
||||
Action<IGameObject>? OnNetworkGameObjectInstantiated { get; set; }
|
||||
|
||||
INetworkCommunicator Communicator { get; }
|
||||
|
||||
Task<T> Instantiate<T>(params object?[]? args) where T : class, IGameObject;
|
||||
}
|
Reference in New Issue
Block a user