mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-04-16 23:43:03 +00:00
just following rider suggestions
This commit is contained in:
parent
a01346a599
commit
d0d93eddef
@ -233,8 +233,8 @@ public static class QSBWorldSync
|
|||||||
where TWorldObject : IWorldObject
|
where TWorldObject : IWorldObject
|
||||||
=> WorldObjects.OfType<TWorldObject>();
|
=> WorldObjects.OfType<TWorldObject>();
|
||||||
|
|
||||||
public static IEnumerable<IWorldObject> GetWorldObjects(Type type = default)
|
public static IEnumerable<IWorldObject> GetWorldObjects(Type type)
|
||||||
=> WorldObjects.Where(x => type.IsAssignableFrom(x.GetType()));
|
=> WorldObjects.Where(type.IsInstanceOfType);
|
||||||
|
|
||||||
public static TWorldObject GetWorldObject<TWorldObject>(this int objectId)
|
public static TWorldObject GetWorldObject<TWorldObject>(this int objectId)
|
||||||
where TWorldObject : IWorldObject
|
where TWorldObject : IWorldObject
|
||||||
|
Loading…
x
Reference in New Issue
Block a user