2021-03-28 17:53:05 +01:00
|
|
|
|
using QSB.WorldSync;
|
|
|
|
|
|
|
|
|
|
namespace QSB.PoolSync
|
|
|
|
|
{
|
2021-03-29 23:37:36 +01:00
|
|
|
|
internal class PoolManager : WorldObjectManager
|
2021-03-28 17:53:05 +01:00
|
|
|
|
{
|
2021-12-20 18:41:12 -08:00
|
|
|
|
public override WorldObjectType WorldObjectType => WorldObjectType.SolarSystem;
|
|
|
|
|
|
2021-03-28 17:53:05 +01:00
|
|
|
|
protected override void RebuildWorldObjects(OWScene scene)
|
|
|
|
|
{
|
2021-11-14 03:51:22 -08:00
|
|
|
|
foreach (var streaming in QSBWorldSync.GetUnityObjects<NomaiRemoteCameraStreaming>())
|
2021-03-28 17:53:05 +01:00
|
|
|
|
{
|
|
|
|
|
streaming.gameObject.AddComponent<CustomNomaiRemoteCameraStreaming>();
|
|
|
|
|
}
|
2021-06-18 22:38:32 +01:00
|
|
|
|
|
2021-11-14 03:51:22 -08:00
|
|
|
|
foreach (var camera in QSBWorldSync.GetUnityObjects<NomaiRemoteCamera>())
|
2021-03-28 17:53:05 +01:00
|
|
|
|
{
|
|
|
|
|
camera.gameObject.AddComponent<CustomNomaiRemoteCamera>();
|
|
|
|
|
}
|
2021-06-18 22:38:32 +01:00
|
|
|
|
|
2021-11-14 03:51:22 -08:00
|
|
|
|
foreach (var platform in QSBWorldSync.GetUnityObjects<NomaiRemoteCameraPlatform>())
|
2021-03-28 17:53:05 +01:00
|
|
|
|
{
|
|
|
|
|
platform.gameObject.AddComponent<CustomNomaiRemoteCameraPlatform>();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|