File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -82,16 +82,17 @@ M.quat = {
82
82
end
83
83
}
84
84
85
- M .func = function (fn )
85
+ function M .func (fn )
86
86
assert (fn and type (fn ) == " function" , " You must provide a function" )
87
87
return {
88
88
encode = function (v ) return " " end ,
89
89
decode = function (v ) return fn end ,
90
90
}
91
91
end
92
92
93
- M .gameobject = function (factory_url , properties )
93
+ function M .gameobject (factory_url , properties )
94
94
assert (factory_url , " You must provide a factory url" )
95
+ assert (properties )
95
96
return {
96
97
encode = function (id )
97
98
assert (id and type (id ) == " userdata" , " Expected userdata" )
@@ -151,7 +152,7 @@ function M.tableof(fn)
151
152
end
152
153
153
154
function M .object (model )
154
- assert (model and type (mode ) == " table" , " Expected an object model" )
155
+ assert (model and type (model ) == " table" , " Expected an object model" )
155
156
return {
156
157
encode = function (data )
157
158
local result = {}
@@ -191,4 +192,4 @@ function M.json(model)
191
192
end
192
193
193
194
194
- return M
195
+ return M
You can’t perform that action at this time.
0 commit comments