public Entity AddMyFloat(float newMyFloat)
        {
            var component = new MyFloatComponent();

            component.myFloat = newMyFloat;
            return(AddMyFloat(component));
        }
 public Entity ReplaceMyFloat(float newMyFloat)
 {
     MyFloatComponent component;
     if (hasMyFloat) {
         WillRemoveComponent(ComponentIds.MyFloat);
         component = myFloat;
     } else {
         component = new MyFloatComponent();
     }
     component.myFloat = newMyFloat;
     return ReplaceComponent(ComponentIds.MyFloat, component);
 }
        public Entity ReplaceMyFloat(float newMyFloat)
        {
            MyFloatComponent component;

            if (hasMyFloat)
            {
                WillRemoveComponent(ComponentIds.MyFloat);
                component = myFloat;
            }
            else
            {
                component = new MyFloatComponent();
            }
            component.myFloat = newMyFloat;
            return(ReplaceComponent(ComponentIds.MyFloat, component));
        }
 public Entity AddMyFloat(MyFloatComponent component)
 {
     return(AddComponent(ComponentIds.MyFloat, component));
 }
 public Entity AddMyFloat(float newMyFloat)
 {
     var component = new MyFloatComponent();
     component.myFloat = newMyFloat;
     return AddMyFloat(component);
 }
 public Entity AddMyFloat(MyFloatComponent component)
 {
     return AddComponent(ComponentIds.MyFloat, component);
 }