Git Product home page Git Product logo

lua's People

Contributors

bribefromthehive avatar

Stargazers

 avatar  avatar

Watchers

 avatar

lua's Issues

Event: Attempt to call a table value

Lua/Event.lua

Lines 30 to 32 in 4b3a156

Event.create "MyEvent" -> Create your event.
Event.MyEvent.register(myFunc) -> Global API for the user to call to register their callback function.
Event.MyEvent() -> call this to execute the event (inherits this functionality from Hook).

Hey Bride, I've stumped upon your fantastic Damage Engine library. Though I'm having a hard time importing it into my map.

It looks like the Event library is not working as intended, particularly the allocated table is not recognized as callable. DebugUtils prints "Attempt to call a table value (field 'MyEvent')". I'm on 1.31, and here is the setup:

image

Could you help check what I might be missing? The MRE map in case you wanna take a look: Event.zip

BTW, I removed the last two lines from the Event library in the map since they seem to be calling Event too early in the global scope, preventing the map from starting.

Lua/Event.lua

Lines 362 to 363 in 4b3a156

local bob = Event.create()
bob.register(function() end)

hashtable API

Possibility of converting hashtables into tables automatically.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.