mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-03-12 13:13:32 +00:00
cleanup
This commit is contained in:
parent
2fce65aec3
commit
b30490dd4e
@ -7,7 +7,7 @@ using QSB.WorldSync.Events;
|
||||
|
||||
namespace QSB.ItemSync.Events
|
||||
{
|
||||
class MoveToCarryEvent : QSBEvent<WorldObjectMessage>
|
||||
internal class MoveToCarryEvent : QSBEvent<WorldObjectMessage>
|
||||
{
|
||||
public override EventType Type => EventType.MoveToCarry;
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
using QSB.Events;
|
||||
using QSB.ItemSync.WorldObjects;
|
||||
using QSB.Player;
|
||||
using QSB.Utility;
|
||||
using QSB.WorldSync;
|
||||
|
||||
namespace QSB.ItemSync.Events
|
||||
|
@ -1,8 +1,5 @@
|
||||
using QSB.Messaging;
|
||||
using QSB.SectorSync.WorldObjects;
|
||||
using QSB.WorldSync;
|
||||
using QuantumUNET.Transport;
|
||||
using UnityEngine;
|
||||
|
||||
namespace QSB.ItemSync.Events
|
||||
{
|
||||
|
@ -2,7 +2,6 @@
|
||||
using QSB.Patches;
|
||||
using QSB.Utility;
|
||||
using QSB.WorldSync;
|
||||
using System.Reflection;
|
||||
using UnityEngine;
|
||||
|
||||
namespace QSB.ItemSync.Patches
|
||||
|
@ -12,7 +12,7 @@ namespace QSB.ItemSync.WorldObjects
|
||||
public ItemType GetItemType()
|
||||
=> AttachedObject.GetItemType();
|
||||
|
||||
public void SetColliderActivation(bool active)
|
||||
public void SetColliderActivation(bool active)
|
||||
=> AttachedObject.SetColliderActivation(active);
|
||||
|
||||
public virtual void DropItem(Vector3 position, Vector3 normal, Sector sector)
|
||||
@ -28,7 +28,7 @@ namespace QSB.ItemSync.WorldObjects
|
||||
AttachedObject.SetColliderActivation(true);
|
||||
}
|
||||
|
||||
public virtual void SocketItem(Transform socketTransform, Sector sector)
|
||||
public virtual void SocketItem(Transform socketTransform, Sector sector)
|
||||
=> AttachedObject.SocketItem(socketTransform, sector);
|
||||
|
||||
public virtual void PlaySocketAnimation() { }
|
||||
|
@ -1,7 +1,4 @@
|
||||
using OWML.Utils;
|
||||
using UnityEngine;
|
||||
|
||||
namespace QSB.ItemSync.WorldObjects
|
||||
namespace QSB.ItemSync.WorldObjects
|
||||
{
|
||||
internal class QSBScrollItem : QSBOWItem<ScrollItem>
|
||||
{
|
||||
@ -12,13 +9,13 @@ namespace QSB.ItemSync.WorldObjects
|
||||
base.Init(attachedObject, id);
|
||||
}
|
||||
|
||||
public override void PlaySocketAnimation()
|
||||
public override void PlaySocketAnimation()
|
||||
=> AttachedObject.PlaySocketAnimation();
|
||||
|
||||
public override void PlayUnsocketAnimation()
|
||||
public override void PlayUnsocketAnimation()
|
||||
=> AttachedObject.PlayUnsocketAnimation();
|
||||
|
||||
public void HideNomaiText()
|
||||
public void HideNomaiText()
|
||||
=> AttachedObject.HideNomaiText();
|
||||
|
||||
public void ShowNomaiText()
|
||||
|
@ -1,5 +1,4 @@
|
||||
using OWML.Common;
|
||||
using QSB.ItemSync.WorldObjects;
|
||||
using QSB.OrbSync.WorldObjects;
|
||||
using QSB.TransformSync;
|
||||
using QSB.Utility;
|
||||
@ -55,7 +54,7 @@ namespace QSB.WorldSync
|
||||
|
||||
public static int GetIdFromTypeSubset<TTypeSubset>(TTypeSubset typeSubset)
|
||||
{
|
||||
var index =GetWorldObjects<TTypeSubset>().ToList().IndexOf(typeSubset);
|
||||
var index = GetWorldObjects<TTypeSubset>().ToList().IndexOf(typeSubset);
|
||||
if (index == -1)
|
||||
{
|
||||
DebugLog.ToConsole($"Warning - {(typeSubset as IWorldObject).Name} doesn't exist in list of {typeof(TTypeSubset).Name} !", MessageType.Warning);
|
||||
|
Loading…
x
Reference in New Issue
Block a user