/// <inheritdoc /> public IEnumerable <T> GetComponents <T>(EntityUid uid) { return(GetComponents(uid).OfType <T>()); }
/// <inheritdoc /> public T GetComponent <T>(EntityUid uid) where T : Component { return((T)GetComponent(uid, typeof(T))); }
/// <inheritdoc /> public IComponent GetComponent(EntityUid uid, uint netID) { var netDict = _netComponents[uid]; return(netDict[netID]); }
/// <inheritdoc /> public bool HasComponent <T>(EntityUid uid) { return(HasComponent(uid, typeof(T))); }
/// <inheritdoc /> public void RemoveComponent(EntityUid uid, uint netID) { var comp = GetComponent(uid, netID); RemoveComponentDeferred(comp as Component); }
/// <inheritdoc /> public void RemoveComponent(EntityUid uid, Type type) { var component = GetComponent(uid, type); RemoveComponentDeferred(component as Component); }
/// <inheritdoc /> public void RemoveComponent <T>(EntityUid uid) { RemoveComponent(uid, typeof(T)); }
public ClientEntityClickMsg(EntityUid uid, ClickType click) { Directed = true; Uid = uid; Click = click; }