summaryrefslogtreecommitdiff
path: root/tests/MyGame/Example/Monster.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/MyGame/Example/Monster.lua')
-rw-r--r--tests/MyGame/Example/Monster.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/MyGame/Example/Monster.lua b/tests/MyGame/Example/Monster.lua
index fbd2c74e..26b59d3b 100644
--- a/tests/MyGame/Example/Monster.lua
+++ b/tests/MyGame/Example/Monster.lua
@@ -62,6 +62,9 @@ function Monster_mt:Inventory(j)
end
return 0
end
+function Monster_mt:InventoryAsString(start, stop)
+ return self.view:VectorAsString(14, start, stop)
+end
function Monster_mt:InventoryLength()
local o = self.view:Offset(14)
if o ~= 0 then
@@ -160,6 +163,9 @@ function Monster_mt:Testnestedflatbuffer(j)
end
return 0
end
+function Monster_mt:TestnestedflatbufferAsString(start, stop)
+ return self.view:VectorAsString(30, start, stop)
+end
function Monster_mt:TestnestedflatbufferLength()
local o = self.view:Offset(30)
if o ~= 0 then
@@ -315,6 +321,9 @@ function Monster_mt:Flex(j)
end
return 0
end
+function Monster_mt:FlexAsString(start, stop)
+ return self.view:VectorAsString(64, start, stop)
+end
function Monster_mt:FlexLength()
local o = self.view:Offset(64)
if o ~= 0 then
@@ -518,6 +527,9 @@ function Monster_mt:VectorOfEnums(j)
end
return 0
end
+function Monster_mt:VectorOfEnumsAsString(start, stop)
+ return self.view:VectorAsString(98, start, stop)
+end
function Monster_mt:VectorOfEnumsLength()
local o = self.view:Offset(98)
if o ~= 0 then
@@ -540,6 +552,9 @@ function Monster_mt:Testrequirednestedflatbuffer(j)
end
return 0
end
+function Monster_mt:TestrequirednestedflatbufferAsString(start, stop)
+ return self.view:VectorAsString(102, start, stop)
+end
function Monster_mt:TestrequirednestedflatbufferLength()
local o = self.view:Offset(102)
if o ~= 0 then