mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-04-17 08:43:30 +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
|
||||
=> WorldObjects.OfType<TWorldObject>();
|
||||
|
||||
public static IEnumerable<IWorldObject> GetWorldObjects(Type type = default)
|
||||
=> WorldObjects.Where(x => type.IsAssignableFrom(x.GetType()));
|
||||
public static IEnumerable<IWorldObject> GetWorldObjects(Type type)
|
||||
=> WorldObjects.Where(type.IsInstanceOfType);
|
||||
|
||||
public static TWorldObject GetWorldObject<TWorldObject>(this int objectId)
|
||||
where TWorldObject : IWorldObject
|
||||
|
Loading…
x
Reference in New Issue
Block a user