2022-01-29 04:49:07 +00:00
|
|
|
|
using Cysharp.Threading.Tasks;
|
|
|
|
|
using OWML.Common;
|
2021-11-01 15:49:00 +00:00
|
|
|
|
using QSB.ItemSync.WorldObjects.Items;
|
|
|
|
|
using QSB.ItemSync.WorldObjects.Sockets;
|
2021-02-23 14:42:18 +00:00
|
|
|
|
using QSB.Utility;
|
|
|
|
|
using QSB.WorldSync;
|
2022-01-29 04:49:07 +00:00
|
|
|
|
using System.Threading;
|
2021-02-23 14:42:18 +00:00
|
|
|
|
|
2022-03-03 03:46:33 +00:00
|
|
|
|
namespace QSB.ItemSync;
|
|
|
|
|
|
|
|
|
|
internal class ItemManager : WorldObjectManager
|
2021-02-23 14:42:18 +00:00
|
|
|
|
{
|
2022-03-03 03:46:33 +00:00
|
|
|
|
public override WorldObjectScene WorldObjectScene => WorldObjectScene.Both;
|
2022-02-27 12:40:44 +00:00
|
|
|
|
|
2022-03-03 03:46:33 +00:00
|
|
|
|
public override async UniTask BuildWorldObjects(OWScene scene, CancellationToken ct)
|
|
|
|
|
{
|
|
|
|
|
DebugLog.DebugWrite("Building OWItems...", MessageType.Info);
|
2021-11-01 15:49:00 +00:00
|
|
|
|
|
2022-03-03 03:46:33 +00:00
|
|
|
|
// Items
|
|
|
|
|
QSBWorldSync.Init<QSBDreamLanternItem, DreamLanternItem>();
|
|
|
|
|
QSBWorldSync.Init<QSBNomaiConversationStone, NomaiConversationStone>();
|
|
|
|
|
QSBWorldSync.Init<QSBScrollItem, ScrollItem>();
|
|
|
|
|
QSBWorldSync.Init<QSBSharedStone, SharedStone>();
|
|
|
|
|
QSBWorldSync.Init<QSBSimpleLanternItem, SimpleLanternItem>();
|
|
|
|
|
QSBWorldSync.Init<QSBSlideReelItem, SlideReelItem>();
|
|
|
|
|
QSBWorldSync.Init<QSBVisionTorchItem, VisionTorchItem>();
|
|
|
|
|
QSBWorldSync.Init<QSBWarpCoreItem, WarpCoreItem>();
|
2021-11-01 15:49:00 +00:00
|
|
|
|
|
2022-03-03 03:46:33 +00:00
|
|
|
|
// Sockets
|
|
|
|
|
QSBWorldSync.Init<QSBItemSocket, OWItemSocket>();
|
2021-02-23 14:42:18 +00:00
|
|
|
|
}
|
2022-02-25 06:04:54 +00:00
|
|
|
|
}
|