diff options
author | chai <chaifix@163.com> | 2019-03-25 23:53:17 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-03-25 23:53:17 +0800 |
commit | 70f8aa8d1a3c15bd1eee3cdd88b9b9ce8970fae5 (patch) | |
tree | 7d06fcdde4b92e1075f8daab943ef183e43651d4 /source/libs/asura-lib-utils/io/binding | |
parent | 03b3b8ae80559745f98ef94569b421adddeb441f (diff) |
*misc
Diffstat (limited to 'source/libs/asura-lib-utils/io/binding')
-rw-r--r-- | source/libs/asura-lib-utils/io/binding/_file.cpp | 17 | ||||
-rw-r--r-- | source/libs/asura-lib-utils/io/binding/_file_system.cpp | 6 |
2 files changed, 20 insertions, 3 deletions
diff --git a/source/libs/asura-lib-utils/io/binding/_file.cpp b/source/libs/asura-lib-utils/io/binding/_file.cpp index 4120258..5c4c628 100644 --- a/source/libs/asura-lib-utils/io/binding/_file.cpp +++ b/source/libs/asura-lib-utils/io/binding/_file.cpp @@ -7,6 +7,23 @@ namespace AsuraEngine LUAX_REGISTRY(File) { + LUAX_REGISTER_METHODS(state, + { "New", _New }, + { "Open", _Open }, + { "Close", _Close }, + { "IsOpen", _IsOpen }, + { "GetMode", _GetMode }, + { "GetSize", _GetSize }, + { "Read", _Read }, + { "IsEOF", _IsEOF }, + { "Write", _Write }, + { "Flush", _Flush }, + { "Tell", _Tell }, + { "Seek", _Seek }, + { "SetBuffer", _SetBuffer }, + { "GetBuffer", _GetBuffer }, + { "GetFileName", _GetFileName } + ); } LUAX_POSTPROCESS(File) diff --git a/source/libs/asura-lib-utils/io/binding/_file_system.cpp b/source/libs/asura-lib-utils/io/binding/_file_system.cpp index 8cb60bc..e790888 100644 --- a/source/libs/asura-lib-utils/io/binding/_file_system.cpp +++ b/source/libs/asura-lib-utils/io/binding/_file_system.cpp @@ -34,10 +34,10 @@ namespace AsuraEngine LUAX_POSTPROCESS(Filesystem) { LUAX_REGISTER_ENUM(state, "EFileType", - { "FILE", FILE_TYPE_FILE }, + { "FILE", FILE_TYPE_FILE }, { "DIRECTORY", FILE_TYPE_DIRECTORY }, - { "SYMLINK", FILE_TYPE_SYMLINK }, - { "OTHER", FILE_TYPE_OTHER } + { "SYMLINK", FILE_TYPE_SYMLINK }, + { "OTHER", FILE_TYPE_OTHER } ); } |