Пример #1
0
        public Entity AddUnsupportedObject(UnsupportedObject newUnsupportedObject)
        {
            var component = new UnsupportedObjectComponent();

            component.unsupportedObject = newUnsupportedObject;
            return(AddUnsupportedObject(component));
        }
 public Entity ReplaceUnsupportedObject(UnsupportedObject newUnsupportedObject)
 {
     UnsupportedObjectComponent component;
     if (hasUnsupportedObject) {
         WillRemoveComponent(ComponentIds.UnsupportedObject);
         component = unsupportedObject;
     } else {
         component = new UnsupportedObjectComponent();
     }
     component.unsupportedObject = newUnsupportedObject;
     return ReplaceComponent(ComponentIds.UnsupportedObject, component);
 }
Пример #3
0
        public Entity ReplaceUnsupportedObject(UnsupportedObject newUnsupportedObject)
        {
            UnsupportedObjectComponent component;

            if (hasUnsupportedObject)
            {
                WillRemoveComponent(ComponentIds.UnsupportedObject);
                component = unsupportedObject;
            }
            else
            {
                component = new UnsupportedObjectComponent();
            }
            component.unsupportedObject = newUnsupportedObject;
            return(ReplaceComponent(ComponentIds.UnsupportedObject, component));
        }
 public Entity AddUnsupportedObject(UnsupportedObject newUnsupportedObject)
 {
     var component = new UnsupportedObjectComponent();
     component.unsupportedObject = newUnsupportedObject;
     return AddUnsupportedObject(component);
 }
 public Entity AddUnsupportedObject(UnsupportedObjectComponent component)
 {
     return AddComponent(ComponentIds.UnsupportedObject, component);
 }
Пример #6
0
 public Entity AddUnsupportedObject(UnsupportedObjectComponent component)
 {
     return(AddComponent(ComponentIds.UnsupportedObject, component));
 }