コード例 #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;
 }