Skip to main content

flutter_lua_bridge_codegen_annotation 0.2.0 copy "flutter_lua_bridge_codegen_annotation: ^0.2.0" to clipboard
flutter_lua_bridge_codegen_annotation: ^0.2.0 copied to clipboard

Annotations shared by flutter_lua_bridge applications and its code generator.

flutter_lua_bridge_codegen_annotation #

Small, dependency free annotations for describing a Dart/Lua bridge contract. package:flutter_lua_bridge/flutter_lua_bridge.dart re-exports them, so a contract library needs only that one import.

Annotation Meaning
@LuaApi(module: 'battle') The interface is implemented in Lua or Teal and called from Dart.
@DartApi(module: 'host') The interface is implemented in Dart and called from Lua.
@LuaName('calculate_damage') The name of a method, field or enum value on the Lua side.

LuaApi.optimization (LuaOptimization.o1, o2 or o3) overrides, for one interface, the default safety level set in the generator's build.yaml options.

0
likes
160
points
106
downloads

Documentation

API reference

Publisher

verified publishereplab.top

Weekly Downloads

Annotations shared by flutter_lua_bridge applications and its code generator.

Repository (GitHub)
View/report issues

Topics

#lua #code-generation

License

MIT (license)

More

Packages that depend on flutter_lua_bridge_codegen_annotation