コード例 #1
0
        public static bool ItemTool_StartUnsocketItem(OWItemSocket socket)
        {
            var socketId = QSBWorldSync.GetIdFromTypeSubset(ItemManager.GetObject(socket));

            QSBEventManager.FireEvent(EventNames.QSBSocketItem, socketId, 0, SocketEventType.StartUnsocket);
            return(true);
        }
コード例 #2
0
        public static bool ItemTool_SocketItem(OWItem ____heldItem, OWItemSocket socket)
        {
            var socketId = QSBWorldSync.GetIdFromTypeSubset(ItemManager.GetObject(socket));
            var itemId   = QSBWorldSync.GetIdFromTypeSubset(ItemManager.GetObject(____heldItem));

            QSBEventManager.FireEvent(EventNames.QSBSocketItem, socketId, itemId, SocketEventType.Socket);
            return(true);
        }
コード例 #3
0
        public static bool ItemTool_StartUnsocketItem(OWItemSocket socket)
        {
            var item = socket.GetSocketedItem().GetWorldObject <IQSBItem>();

            QSBPlayerManager.LocalPlayer.HeldItem = item;
            var socketId = socket.GetWorldObject <QSBItemSocket>().ObjectId;

            new SocketItemMessage(SocketMessageType.StartUnsocket, socketId).Send();
            return(true);
        }
コード例 #4
0
        public static bool ItemTool_SocketItem(ItemTool __instance, OWItemSocket socket)
        {
            var qsbObj   = __instance._heldItem.GetWorldObject <IQSBItem>();
            var socketId = socket.GetWorldObject <QSBItemSocket>().ObjectId;
            var itemId   = qsbObj.ObjectId;

            QSBPlayerManager.LocalPlayer.HeldItem = null;
            new SocketItemMessage(SocketMessageType.Socket, socketId, itemId).Send();
            return(true);
        }