Изменил(а) на 'README.md'
This commit is contained in:
parent
eda5f475a3
commit
64aa9347c8
34
README.md
34
README.md
|
@ -1,5 +1,39 @@
|
|||
This package is used for code generation of bhl2 bindings for C# using Twig templates
|
||||
|
||||
Here the example of bindings declaration:
|
||||
|
||||
func Debug(
|
||||
@bhl_native_prefix:BitGames.Logs.Log.Debug(..)
|
||||
msg : string
|
||||
)
|
||||
|
||||
func Error(
|
||||
@bhl_native_prefix:BitGames.Logs.Log.Error(..)
|
||||
msg : string
|
||||
)
|
||||
|
||||
func Time(
|
||||
@bhl_native_prefix:Time.time
|
||||
) : float
|
||||
|
||||
struct Vector2
|
||||
@bhl_native_class:Vector2 @bhl_custom_rw @bhl_no_itype
|
||||
|
||||
x : float
|
||||
y : float
|
||||
|
||||
magnitude : float @bhl_set:0
|
||||
sqrMagnitude : float @bhl_set:0
|
||||
normalized : Vector2 @bhl_set:0
|
||||
|
||||
func Mult(
|
||||
@bhl_bin_op:"*" @bhl_static
|
||||
self : Vector2
|
||||
v : float
|
||||
) : Vector2
|
||||
end
|
||||
|
||||
|
||||
Usage example:
|
||||
|
||||
$twig = \bhl_bind\get_twig();
|
||||
|
|
Loading…
Reference in New Issue