adding multiplayer

This commit is contained in:
2025-06-30 21:27:55 +02:00
parent 5a813f212c
commit e5616474f1
35 changed files with 712 additions and 525 deletions

View File

@@ -1,11 +1,8 @@
using RebootKit.Engine.Foundation;
using Unity.Collections;
using UnityEngine;
namespace RebootKit.Engine.Services.Simulation {
namespace RebootKit.Engine.Simulation {
public abstract class Actor : MonoBehaviour {
[field: SerializeField]
public SerializableGuid ActorGuid { get; private set; } = SerializableGuid.New();
bool m_IsPlaying = false;
public bool IsPlaying {
get {
@@ -39,7 +36,13 @@ namespace RebootKit.Engine.Services.Simulation {
public virtual void OnEndPlay() {
}
public virtual void OnTick(float deltaTime) {
public virtual void Tick(float deltaTime) {
}
public virtual void SerializeNetworkState(ref DataStreamWriter writer) {
}
public virtual void DeserializeNetworkState(ref DataStreamReader reader) {
}
}
}