mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-04 02:47:22 +00:00
fix stuff
This commit is contained in:
parent
eaddda8bc1
commit
f9ee46f469
@ -1,5 +1,7 @@
|
||||
using QSB.EchoesOfTheEye.SlideProjectors.WorldObjects;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using QSB.EchoesOfTheEye.SlideProjectors.WorldObjects;
|
||||
using QSB.WorldSync;
|
||||
using System.Threading;
|
||||
|
||||
namespace QSB.EchoesOfTheEye.SlideProjectors
|
||||
{
|
||||
@ -7,6 +9,6 @@ namespace QSB.EchoesOfTheEye.SlideProjectors
|
||||
{
|
||||
public override WorldObjectType WorldObjectType => WorldObjectType.SolarSystem;
|
||||
|
||||
public override void BuildWorldObjects(OWScene scene) => QSBWorldSync.Init<QSBSlideProjector, SlideProjector>();
|
||||
public override async UniTask BuildWorldObjects(OWScene scene, CancellationToken ct) => QSBWorldSync.Init<QSBSlideProjector, SlideProjector>();
|
||||
}
|
||||
}
|
||||
|
@ -1,27 +1,27 @@
|
||||
using QSB.Player;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using QSB.Utility;
|
||||
using QSB.WorldSync;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Threading;
|
||||
|
||||
namespace QSB.EchoesOfTheEye.SlideProjectors.WorldObjects
|
||||
{
|
||||
public class QSBSlideProjector : WorldObject<SlideProjector>
|
||||
{
|
||||
public override void Init()
|
||||
public override async UniTask Init(CancellationToken ct)
|
||||
{
|
||||
base.Init();
|
||||
DebugLog.DebugWrite($"Init {LogName}");
|
||||
DebugLog.DebugWrite($"Init {this}");
|
||||
}
|
||||
|
||||
public uint ControllingPlayer;
|
||||
|
||||
public void OnChangeAuthority(uint newOwner)
|
||||
{
|
||||
DebugLog.DebugWrite($"{LogName} change ControllingPlayer to {newOwner}");
|
||||
DebugLog.DebugWrite($"{this} change ControllingPlayer to {newOwner}");
|
||||
}
|
||||
|
||||
public override void SendInitialState(uint to)
|
||||
{
|
||||
// todo SendInitialState
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user