Implement RPC Node
This commit is contained in:
parent
f7ee533d5a
commit
605e43273e
13 changed files with 524 additions and 206 deletions
|
|
@ -5,8 +5,6 @@ public class Star(Sector sector, Vector3 localCoordinates) : GameObject(sector,
|
|||
public override void Simulate(double delta)
|
||||
{
|
||||
base.Simulate(delta);
|
||||
|
||||
//SetCoordinatesFromGlobal(new(GlobalCoordinates.X, GlobalCoordinates.Y, GlobalCoordinates.Z + 1 * (decimal)delta));
|
||||
}
|
||||
|
||||
public override Node3D Instantiate(Sector sector)
|
||||
|
|
@ -20,4 +18,22 @@ public class Star(Sector sector, Vector3 localCoordinates) : GameObject(sector,
|
|||
|
||||
return instance;
|
||||
}
|
||||
|
||||
public override Godot.Collections.Dictionary NetworkWrite(long id, bool full)
|
||||
{
|
||||
Godot.Collections.Dictionary gameObjectData = base.NetworkWrite(id, full);
|
||||
|
||||
if (gameObjectData != null)
|
||||
{
|
||||
QueueManager.NetworkSyncQueue.Enqueue((id, gameObjectData));
|
||||
}
|
||||
DirtyBits = DirtyFlags.None;
|
||||
|
||||
return gameObjectData;
|
||||
}
|
||||
|
||||
public override void NetworkRead(Godot.Collections.Dictionary gameObjectData)
|
||||
{
|
||||
base.NetworkRead(gameObjectData);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue