public GameEntity ReplaceCollidingViewRegister(Services.IRegisterService <View.IView> newValue)
    {
        var index     = GameComponentsLookup.CollidingViewRegister;
        var component = (Components.CollidingViewRegister)CreateComponent(index, typeof(Components.CollidingViewRegister));

        component.Value = newValue;
        ReplaceComponent(index, component);
        return(this);
    }
    public GameEntity SetCollidingViewRegister(Services.IRegisterService <View.IView> newValue)
    {
        if (hasCollidingViewRegister)
        {
            throw new Entitas.EntitasException("Could not set CollidingViewRegister!\n" + this + " already has an entity with Components.CollidingViewRegister!",
                                               "You should check if the context already has a collidingViewRegisterEntity before setting it or use context.ReplaceCollidingViewRegister().");
        }
        var entity = CreateEntity();

        entity.AddCollidingViewRegister(newValue);
        return(entity);
    }
    public void ReplaceCollidingViewRegister(Services.IRegisterService <View.IView> newValue)
    {
        var entity = collidingViewRegisterEntity;

        if (entity == null)
        {
            entity = SetCollidingViewRegister(newValue);
        }
        else
        {
            entity.ReplaceCollidingViewRegister(newValue);
        }
    }