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

Am I Using Macros.add_data correctly? #38

Open
GeezerLMAO opened this issue Aug 21, 2022 · 1 comment
Open

Am I Using Macros.add_data correctly? #38

GeezerLMAO opened this issue Aug 21, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@GeezerLMAO
Copy link

So I want to add a isOnFloor data to the body using your example

--macro echo.Macros.add_data("isOnFloor", "Bool")

But when I try to access it just spits an error

image

This is the hxml if it will help

-cp src

-lib heaps
-lib hlsdl
-lib deepnightLibs
-lib ldtk-haxe-api
-lib echo

-hl bin/Test.hl

-main Main
-D windowSize=1024x576

--macro echo.Macros.add_data("entity", "objects.Entity")
--macro echo.Macros.add_data("isOnFloor", "Bool")
@AustinEast
Copy link
Owner

Interesting! Hadn't thought about using the macros to add primitive data types 😄 It was intended for Classes, but I think its worth supporting.

@AustinEast AustinEast added the enhancement New feature or request label Jan 11, 2024
@AustinEast AustinEast self-assigned this Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants