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
|
|
|
|
|
|
|
|
|
namespace QSB.ItemSync
|
|
|
|
|
{
|
2021-03-23 13:18:29 +00:00
|
|
|
|
internal class ItemManager : WorldObjectManager
|
2021-02-23 14:42:18 +00:00
|
|
|
|
{
|
2021-12-21 06:42:29 +00:00
|
|
|
|
public override WorldObjectType WorldObjectType => WorldObjectType.Both;
|
2021-12-21 02:41:12 +00:00
|
|
|
|
|
2022-01-29 04:50:34 +00:00
|
|
|
|
public override async UniTask BuildWorldObjects(OWScene scene, CancellationToken ct)
|
2021-02-23 14:42:18 +00:00
|
|
|
|
{
|
2022-01-18 08:46:27 +00:00
|
|
|
|
DebugLog.DebugWrite("Building OWItems...", MessageType.Info);
|
2021-11-01 15:49:00 +00:00
|
|
|
|
|
|
|
|
|
// Items
|
2022-01-26 08:41:39 +00:00
|
|
|
|
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
|
|
|
|
|
|
|
|
|
// Sockets
|
2022-01-26 05:38:38 +00:00
|
|
|
|
QSBWorldSync.Init<QSBItemSocket, OWItemSocket>();
|
2021-02-25 13:52:49 +00:00
|
|
|
|
}
|
2021-02-23 14:42:18 +00:00
|
|
|
|
}
|
|
|
|
|
}
|