public Entity AddCustomObject(CustomObject newCustomObject)
        {
            var component = new CustomObjectComponent();

            component.customObject = newCustomObject;
            return(AddCustomObject(component));
        }
 public Entity ReplaceCustomObject(CustomObject newCustomObject)
 {
     CustomObjectComponent component;
     if (hasCustomObject) {
         WillRemoveComponent(ComponentIds.CustomObject);
         component = customObject;
     } else {
         component = new CustomObjectComponent();
     }
     component.customObject = newCustomObject;
     return ReplaceComponent(ComponentIds.CustomObject, component);
 }
        public Entity ReplaceCustomObject(CustomObject newCustomObject)
        {
            CustomObjectComponent component;

            if (hasCustomObject)
            {
                WillRemoveComponent(ComponentIds.CustomObject);
                component = customObject;
            }
            else
            {
                component = new CustomObjectComponent();
            }
            component.customObject = newCustomObject;
            return(ReplaceComponent(ComponentIds.CustomObject, component));
        }
 public Entity AddCustomObject(CustomObject newCustomObject)
 {
     var component = new CustomObjectComponent();
     component.customObject = newCustomObject;
     return AddCustomObject(component);
 }
 public Entity AddCustomObject(CustomObjectComponent component)
 {
     return AddComponent(ComponentIds.CustomObject, component);
 }
 public Entity AddCustomObject(CustomObjectComponent component)
 {
     return(AddComponent(ComponentIds.CustomObject, component));
 }