Пример #1
0
 /// <inheritdoc />
 public IEnumerable <T> GetComponents <T>(EntityUid uid)
 {
     return(GetComponents(uid).OfType <T>());
 }
Пример #2
0
 /// <inheritdoc />
 public T GetComponent <T>(EntityUid uid)
     where T : Component
 {
     return((T)GetComponent(uid, typeof(T)));
 }
Пример #3
0
        /// <inheritdoc />
        public IComponent GetComponent(EntityUid uid, uint netID)
        {
            var netDict = _netComponents[uid];

            return(netDict[netID]);
        }
Пример #4
0
 /// <inheritdoc />
 public bool HasComponent <T>(EntityUid uid)
 {
     return(HasComponent(uid, typeof(T)));
 }
Пример #5
0
        /// <inheritdoc />
        public void RemoveComponent(EntityUid uid, uint netID)
        {
            var comp = GetComponent(uid, netID);

            RemoveComponentDeferred(comp as Component);
        }
Пример #6
0
        /// <inheritdoc />
        public void RemoveComponent(EntityUid uid, Type type)
        {
            var component = GetComponent(uid, type);

            RemoveComponentDeferred(component as Component);
        }
Пример #7
0
 /// <inheritdoc />
 public void RemoveComponent <T>(EntityUid uid)
 {
     RemoveComponent(uid, typeof(T));
 }
Пример #8
0
 public ClientEntityClickMsg(EntityUid uid, ClickType click)
 {
     Directed = true;
     Uid      = uid;
     Click    = click;
 }