准备server gamelogic
This commit is contained in:
1 parent
6256dcb52b
commit
6d912005a5
17 files changed
+126
-44
No files matched your search
@@ -0,0 +1,18 @@
|
||||
using Unity.Jobs;
|
||||
|
||||
namespace ECSTest.Server
|
||||
{
|
||||
public class GameLogic
|
||||
{
|
||||
public JobHandle Simulate(int beginFrameId, int frameCount, JobHandle dependency)
|
||||
{
|
||||
//TODO
|
||||
return dependency;
|
||||
}
|
||||
|
||||
private JobHandle Step(int frameId, JobHandle dependency)
|
||||
{
|
||||
return dependency;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 51ab02ddeb9e4cdbb736075b2c7b43a8
|
||||
timeCreated: 1765871132
|
||||
@@ -4,7 +4,7 @@ using Unity.Jobs;
|
||||
using Unity.Networking.Transport;
|
||||
using UnityEngine;
|
||||
|
||||
namespace ECSTest
|
||||
namespace ECSTest.Server
|
||||
{
|
||||
[BurstCompile]
|
||||
public struct ServerConnectionJob : IJob
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
using GameCore.TinyECS;
|
||||
using Unity.Burst;
|
||||
using Unity.Jobs;
|
||||
|
||||
namespace ECSTest.Server
|
||||
{
|
||||
[BurstCompile]
|
||||
public struct SpawnBulletJob : IJob
|
||||
{
|
||||
public WorldManager worldManager;
|
||||
|
||||
public void Execute()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9cfef090e4d64e91bf319abd48fe7e18
|
||||
timeCreated: 1765877986
|
||||
@@ -7,7 +7,7 @@ using Unity.Jobs;
|
||||
using Unity.Networking.Transport;
|
||||
using UnityEngine;
|
||||
|
||||
namespace ECSTest
|
||||
namespace ECSTest.Server
|
||||
{
|
||||
public class ServerMain : MonoBehaviour
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ using Unity.Jobs;
|
||||
using Unity.Networking.Transport;
|
||||
using UnityEngine;
|
||||
|
||||
namespace ECSTest
|
||||
namespace ECSTest.Server
|
||||
{
|
||||
[BurstCompile]
|
||||
public struct ServerReceiveJob : IJobParallelForDefer
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using Unity.Burst;
|
||||
using Unity.Jobs;
|
||||
|
||||
namespace ECSTest
|
||||
namespace ECSTest.Server
|
||||
{
|
||||
[BurstCompile]
|
||||
public struct ServerSendJob : IJobParallelFor
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
using GameCore.TinyECS;
|
||||
|
||||
namespace ECSTest.Server
|
||||
{
|
||||
public struct WorldManager
|
||||
{
|
||||
public EntityCollection<EntityType> entities;
|
||||
public EntityDataBlockChain chain;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 34167e4ecf924d05b9abd31eb2b2e464
|
||||
timeCreated: 1765879427
|
||||
Reference in new issue
Block a user