Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apiVersion vs branch (v1.2 vs v1.3) #43

Open
dacap opened this issue Jun 7, 2021 · 0 comments
Open

apiVersion vs branch (v1.2 vs v1.3) #43

dacap opened this issue Jun 7, 2021 · 0 comments
Labels

Comments

@dacap
Copy link
Member

dacap commented Jun 7, 2021

The app.apiVersion is not a good way to check for API features when we have this branch of versions (e.g. v1.2 and v1.3). We think that we could add a new object to check features:

if app.features.hasTilemapLayers then
  ...
end

In case of a property that doesn't exist is used (e.g. app.features.nonExistentFeature) it just return false (instead of a Lua error).

@dacap dacap added the feature label Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant