quantum-space-buddies/QSB/ItemSync/ItemManager.cs

35 lines
1.2 KiB
C#
Raw Normal View History

2021-02-23 14:42:18 +00:00
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;
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-03-23 13:18:29 +00:00
protected override void RebuildWorldObjects(OWScene scene)
2021-02-23 14:42:18 +00:00
{
2021-08-12 13:18:35 +00:00
DebugLog.DebugWrite("Rebuilding OWItems...", MessageType.Info);
2021-11-01 15:49:00 +00:00
// Items
2021-03-23 13:18:29 +00:00
QSBWorldSync.Init<QSBScrollItem, ScrollItem>();
QSBWorldSync.Init<QSBSharedStone, SharedStone>();
QSBWorldSync.Init<QSBWarpCoreItem, WarpCoreItem>();
QSBWorldSync.Init<QSBNomaiConversationStone, NomaiConversationStone>();
2021-11-01 15:49:00 +00:00
QSBWorldSync.Init<QSBSimpleLanternItem, SimpleLanternItem>();
2021-11-01 20:58:10 +00:00
QSBWorldSync.Init<QSBSlideReelItem, SlideReelItem>();
2021-11-01 15:49:00 +00:00
// Sockets
QSBWorldSync.Init<QSBScrollSocket, ScrollSocket>();
QSBWorldSync.Init<QSBSharedStoneSocket, SharedStoneSocket>();
QSBWorldSync.Init<QSBWarpCoreSocket, WarpCoreSocket>();
QSBWorldSync.Init<QSBNomaiConversationStoneSocket, NomaiConversationStoneSocket>();
2021-11-01 20:58:10 +00:00
QSBWorldSync.Init<QSBSlideReelSocket, SlideReelSocket>();
QSBWorldSync.Init<QSBSlideProjectorSocket, SlideProjectorSocket>();
2021-02-25 13:52:49 +00:00
}
2021-02-23 14:42:18 +00:00
}
}