mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-04 03:39:55 +00:00
remove TypeSubset
This commit is contained in:
parent
fce0a7d7d8
commit
e9b4ebc4d8
@ -2,7 +2,7 @@
|
||||
|
||||
namespace QSB.Animation.NPC.WorldObjects
|
||||
{
|
||||
public interface INpcAnimController : IWorldObjectTypeSubset
|
||||
public interface INpcAnimController : IWorldObject
|
||||
{
|
||||
CharacterDialogueTree GetDialogueTree();
|
||||
void StartConversation();
|
||||
|
@ -3,7 +3,7 @@ using UnityEngine;
|
||||
|
||||
namespace QSB.ItemSync.WorldObjects.Items
|
||||
{
|
||||
public interface IQSBOWItem : IWorldObjectTypeSubset
|
||||
public interface IQSBOWItem : IWorldObject
|
||||
{
|
||||
ItemType GetItemType();
|
||||
void SetColliderActivation(bool active);
|
||||
|
@ -3,7 +3,7 @@ using QSB.WorldSync;
|
||||
|
||||
namespace QSB.ItemSync.WorldObjects.Sockets
|
||||
{
|
||||
public interface IQSBOWItemSocket : IWorldObjectTypeSubset
|
||||
public interface IQSBOWItemSocket : IWorldObject
|
||||
{
|
||||
bool AcceptsItem(IQSBOWItem item);
|
||||
bool IsSocketOccupied();
|
||||
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
|
||||
namespace QSB.QuantumSync
|
||||
{
|
||||
public interface IQSBQuantumObject : IWorldObjectTypeSubset
|
||||
public interface IQSBQuantumObject : IWorldObject
|
||||
{
|
||||
uint ControllingPlayer { get; set; }
|
||||
bool IsEnabled { get; set; }
|
||||
|
@ -1,4 +0,0 @@
|
||||
namespace QSB.WorldSync
|
||||
{
|
||||
public interface IWorldObjectTypeSubset : IWorldObject { }
|
||||
}
|
@ -70,18 +70,6 @@ namespace QSB.WorldSync
|
||||
where TWorldObject : IWorldObject
|
||||
=> GetWorldFromUnity<TWorldObject>(unityObject).ObjectId;
|
||||
|
||||
public static int GetIdFromTypeSubset<TTypeSubset>(TTypeSubset typeSubset)
|
||||
where TTypeSubset : IWorldObjectTypeSubset
|
||||
{
|
||||
var index = GetWorldObjects<TTypeSubset>().ToList().IndexOf(typeSubset);
|
||||
if (index == -1)
|
||||
{
|
||||
DebugLog.ToConsole($"Warning - {typeSubset.Name} doesn't exist in list of {typeof(TTypeSubset).Name} !", MessageType.Warning);
|
||||
}
|
||||
|
||||
return index;
|
||||
}
|
||||
|
||||
public static void RemoveWorldObjects<TWorldObject>()
|
||||
where TWorldObject : IWorldObject
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user