Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local _tolua = {}
- _tolua.properties = {
- ScreenGui = {
- --data
- 'DisplayOrder',
- 'Enabled',
- 'IgnoreGuiInset',
- 'Name',
- 'Parent',
- 'ResetOnSpawn',
- 'ZIndexBehavior',
- --behavior
- 'Archivable',
- --Localiztation
- 'AutoLocalize',
- 'RootLocalizationTable'
- },
- TextButton = {
- --data
- 'Active',
- 'AnchorPoint',
- 'AutoButtonColor',
- 'AutomaticSize',
- 'BackgroundColor3',
- 'BackgroundTransparency',
- 'BorderColor3',
- 'BorderMode',
- 'BorderSizePixel',
- 'LayoutOrder',
- 'Modal',
- 'Name',
- 'Parent',
- 'Position',
- 'Rotation',
- 'Selectable',
- 'Selected',
- 'Size',
- 'SizeConstraint',
- 'Style',
- 'Visible',
- 'ZIndex',
- --behavior
- 'Archivable',
- 'ClipsDescendants',
- 'NextSelectionDown',
- 'NextSelectionLeft',
- 'NextSelectionRight',
- 'NextSelectionUp',
- --text
- 'Font',
- 'LineHeight',
- 'MaxVisibleGraphemes',
- 'RichText',
- 'Text',
- 'TextColor3',
- 'TextScaled',
- 'TextSize',
- 'TextStrokeColor3',
- 'TextStrokeTransparency',
- 'TextTransparency',
- 'TextTruncate',
- 'TextWrapped',
- 'TextXAlignment',
- 'TextYAlignment',
- --localization
- 'AutoLocalize',
- 'RootLocalizationTable'
- },
- TextLabel = {
- --data
- 'Active',
- 'AnchorPoint',
- 'AutomaticSize',
- 'BackgroundColor3',
- 'BackgroundTransparency',
- 'BorderColor3',
- 'BorderMode',
- 'BorderSizePixel',
- 'LayoutOrder',
- 'Name',
- 'Parent',
- 'Position',
- 'Rotation',
- 'Selectable',
- 'Size',
- 'SizeConstraint',
- 'Visible',
- 'ZIndex',
- --behavior
- 'Archivable',
- 'ClipsDescendants',
- 'NextSelectionDown',
- 'NextSelectionLeft',
- 'NextSelectionRight',
- 'NextSelectionUp',
- --text
- 'Font',
- 'LineHeight',
- 'MaxVisibleGraphemes',
- 'RichText',
- 'Text',
- 'TextColor3',
- 'TextScaled',
- 'TextSize',
- 'TextStrokeColor3',
- 'TextStrokeTransparency',
- 'TextTransparency',
- 'TextTruncate',
- 'TextWrapped',
- 'TextXAlignment',
- 'TextYAlignment',
- --localization
- 'AutoLocalize',
- 'RootLocalizationTable'
- },
- TextBox = {
- --data
- 'Active',
- 'AnchorPoint',
- 'AutomaticSize',
- 'BackgroundColor3',
- 'BackgroundTransparency',
- 'BorderColor3',
- 'BorderMode',
- 'BorderSizePixel',
- 'ClearTextOnFocus',
- 'LayoutOrder',
- 'MultiLine',
- 'Name',
- 'Parent',
- 'Position',
- 'Rotation',
- 'Selectable',
- 'SelectionStart',
- 'ShowNativeInput',
- 'Size',
- 'SizeConstraint',
- 'Visible',
- 'ZIndex',
- --behavior
- 'Archivable',
- 'ClipsDescendants',
- 'NextSelectionDown',
- 'NextSelectionLeft',
- 'NextSelectionRight',
- 'NextSelectionUp',
- --text
- 'Font',
- 'LineHeight',
- 'MaxVisibleGraphemes',
- 'PlaceholderColor3',
- 'PlaceholderText',
- 'RichText',
- 'Text',
- 'TextColor3',
- 'TextScaled',
- 'TextSize',
- 'TextStrokeColor3',
- 'TextStrokeTransparency',
- 'TextTransparency',
- 'TextTruncate',
- 'TextWrapped',
- 'TextXAlignment',
- 'TextYAlignment',
- --localization
- 'AutoLocalize',
- 'RootLocalizationTable'
- },
- ImageLabel = {
- --data
- 'Active',
- 'AnchorPoint',
- 'AutomaticSize',
- 'BackgroundColor3',
- 'BackgroundTransparency',
- 'BorderColor3',
- 'BorderMode',
- 'BorderSizePixel',
- 'LayoutOrder',
- 'Name',
- 'Parent',
- 'Position',
- 'Rotation',
- 'Selectable',
- 'Size',
- 'SizeConstraint',
- 'Visible',
- 'ZIndex',
- --behavior
- 'Archivable',
- 'ClipsDescendants',
- 'NextSelectionDown',
- 'NextSelectionLeft',
- 'NextSelectionRight',
- 'NextSelectionUp',
- --Image
- 'Image',
- 'ImageColor3',
- 'ImageRectOffset',
- 'ImageRectSize',
- 'ImageTransparency',
- 'ScaleType',
- 'SliceScale',
- --localization
- 'AutoLocalize',
- 'RootLocalizationTable'
- },
- ImageButton = {
- --data
- 'Active',
- 'AnchorPoint',
- 'AutoButtonColor',
- 'AutomaticSize',
- 'BackgroundColor3',
- 'BackgroundTransparency',
- 'BorderColor3',
- 'BorderMode',
- 'BorderSizePixel',
- 'LayoutOrder',
- 'Modal',
- 'Name',
- 'Parent',
- 'Position',
- 'Rotation',
- 'Selectable',
- 'Selected',
- 'Size',
- 'SizeConstraint',
- 'Style',
- 'Visible',
- 'ZIndex',
- --behavior
- 'Archivable',
- 'ClipsDescendants',
- 'NextSelectionDown',
- 'NextSelectionLeft',
- 'NextSelectionRight',
- 'NextSelectionUp',
- --Image
- 'HoverImage',
- 'Image',
- 'ImageColor3',
- 'ImageRectOffset',
- 'ImageRectSize',
- 'ImageTransparency',
- 'ScaleType',
- 'SliceScale',
- --localization
- 'AutoLocalize',
- 'RootLocalizationTable'
- },
- Frame = {
- --data
- 'Active',
- 'AnchorPoint',
- 'AutomaticSize',
- 'BackgroundColor3',
- 'BackgroundTransparency',
- 'BorderColor3',
- 'BorderMode',
- 'BorderSizePixel',
- 'LayoutOrder',
- 'Name',
- 'Parent',
- 'Position',
- 'Rotation',
- 'Selectable',
- 'Size',
- 'SizeConstraint',
- 'Style',
- 'Visible',
- 'ZIndex',
- --behavior
- 'Archivable',
- 'ClipsDescendants',
- 'NextSelectionDown',
- 'NextSelectionLeft',
- 'NextSelectionRight',
- 'NextSelectionUp',
- --localization
- 'AutoLocalize',
- 'RootLocalizationTable'
- },
- ScrollingFrame = {
- --data
- 'Active',
- 'AnchorPoint',
- 'AutomaticSize',
- 'BackgroundColor3',
- 'BackgroundTransparency',
- 'BorderColor3',
- 'BorderMode',
- 'BorderSizePixel',
- 'LayoutOrder',
- 'Name',
- 'Parent',
- 'Position',
- 'Rotation',
- 'Selectable',
- 'Size',
- 'SizeConstraint',
- 'Visible',
- 'ZIndex',
- --behavior
- 'Archivable',
- 'ClipsDescendants',
- 'NextSelectionDown',
- 'NextSelectionLeft',
- 'NextSelectionRight',
- 'NextSelectionUp',
- --scrolling
- 'AutomaticCanvasSize',
- 'BottomImage',
- 'CanvasPosition',
- 'CanvasSize',
- 'ElasticBehavior',
- 'HorizontalScrollBarInset',
- 'MidImage',
- 'ScrollBarImageColor3',
- 'ScrollBarImageTransparency',
- 'ScrollBarThickness',
- 'ScrollingDirection',
- 'ScrollingEnabled',
- 'TopImage',
- 'VerticalScrollBarInset',
- 'VerticalScrollBarPosition',
- --localization
- 'AutoLocalize',
- 'RootLocalizationTable'
- },
- LocalScript = {
- --data
- 'Name',
- 'Parent',
- --behavior
- 'Archivable',
- 'Disabled'
- },
- UIGradient = {
- --appearance
- 'Color',
- 'Enabled',
- 'Offset',
- 'Rotation',
- 'Transparency',
- --data
- 'Name',
- 'Parent',
- --behavior
- 'Archivable'
- },
- UIAspectRationConstraint = {
- --data
- 'Name',
- 'Parent',
- --behavior
- 'Archivable',
- 'AspectRation',
- 'AspectType',
- 'DominantAxis'
- },
- UIGridLayout = {
- --appearance
- 'CellPadding',
- 'CellSize',
- --data
- 'Name',
- 'Parent',
- --behavior
- 'Archivable',
- 'FillDirection',
- 'FillDirectionMaxCells',
- 'HorizontalAlignment',
- 'SortOrder',
- 'StartCorner',
- 'VerticalAlignment'
- },
- UIListLayout = {
- --appearance
- 'Padding',
- --data
- 'Name',
- 'Parent',
- --behavior
- 'Archivable',
- 'FillDirection',
- 'HorizontalAlignment',
- 'SortOrder',
- 'VerticalAlignment'
- },
- UIPadding = {
- --data
- 'Name',
- 'Parent',
- --behavior
- 'Archivable',
- 'PaddingBottom',
- 'PaddingLeft',
- 'PaddingRight',
- 'PaddingTop'
- },
- UIPageLayout = {
- --appearance
- 'Animated',
- 'Circular',
- 'EasingDirection',
- 'EasingStyle',
- 'Padding',
- 'TweenTime',
- --data
- 'Name',
- 'Parent',
- --behavior
- 'Archivable',
- 'FillDirection',
- 'HorizontalAlignment',
- 'SortOrder',
- 'VerticalAlignment',
- --input
- 'GamepadInputEnabled',
- 'ScrollWheelInputEnabled',
- 'TouchInputEnabled'
- },
- UIScale = {
- --data
- 'Name',
- 'Parent',
- --behavior
- 'Archivable',
- 'Scale'
- },
- UISizeConstraint = {
- --data
- 'Name',
- 'Parent',
- --behavior
- 'Archivable',
- 'MaxSize',
- 'MinSize'
- },
- UITableLayout = {
- --appearance
- 'FillEmptySpaceColumns',
- 'FillEmptySpaceRows',
- 'Padding',
- --data
- 'Name',
- 'Parent',
- --behavior
- 'Archivable',
- 'FillDirection',
- 'HorizontalAlignment',
- 'MajorAxis',
- 'SortOrder',
- 'VerticalAlignment'
- },
- UITextSizeConstraint = {
- --data
- 'Name',
- 'Parent',
- --behavior
- 'Archivable',
- 'MaxTextSize',
- 'MinTextSize'
- },
- VideoFrame = {
- --appearance
- 'SelectionImageObject',
- --data
- 'Active',
- 'AnchorPoint',
- 'AutomaticSize',
- 'BackgroundColor3',
- 'BackgroundTransparency',
- 'BorderColor3',
- 'BorderMode',
- 'BorderSizePixel',
- 'LayoutOrder',
- 'Name',
- 'Parent',
- 'Position',
- 'Rotation',
- 'Selectable',
- 'Size',
- 'SizeConstraint',
- 'Visible',
- 'ZIndex',
- --behavior
- 'Archivable',
- 'ClipsDescendants',
- 'NextSelectionDown',
- 'NextSelectionLeft',
- 'NextSelectionRight',
- 'NextSelectionUp',
- --video
- 'Looped',
- 'Playing',
- 'Resolution',
- 'TimeLength',
- 'TimePosition',
- 'Video',
- 'Volume',
- --localization
- 'AutoLocalize',
- 'RootLocalizationTable'
- },
- ViewportFrame = {
- --appearance
- 'Ambient',
- 'LightColor',
- 'LightDirection',
- 'SelectionImageObject',
- --data
- 'Active',
- 'AnchorPoint',
- 'AutomaticSize',
- 'BackgroundColor3',
- 'BackgroundTransparency',
- 'BorderColor3',
- 'BorderMode',
- 'BorderSizePixel',
- 'CurrentCamera',
- 'LayoutOrder',
- 'Name',
- 'Parent',
- 'Position',
- 'Rotation',
- 'Selectable',
- 'Size',
- 'SizeConstraint',
- 'Visible',
- 'ZIndex',
- --behavior
- 'Archivable',
- 'ClipsDescendants',
- 'NextSelectionDown',
- 'NextSelectionLeft',
- 'NextSelectionRight',
- 'NextSelectionUp',
- --image
- 'ImageColor3',
- 'ImageTransparency',
- --localization
- 'AutoLocalize',
- 'RootLocalizationTable'
- },
- BillboardGui = {
- --data
- 'Active',
- 'Adornee',
- 'AlwaysOnTop',
- 'Enabled',
- 'ExtentsOffset',
- 'ExtentsOffsetWorldSpace',
- 'LightInfluence',
- 'MaxDistance',
- 'Name',
- 'Parent',
- 'PlayerToHideFrom',
- 'ResetOnSpawn',
- 'Size',
- 'SizeOffset',
- 'StudsOffset',
- 'StudsOffsetWorldSpace',
- 'ZIndexBehavior',
- --behavior
- 'Archivable',
- 'ClipsDescendants',
- --localization
- 'AutoLocalize',
- 'RootLocalizationTable'
- },
- Hint = {
- --appearance
- 'Text',
- --data
- 'Name',
- 'Parent',
- --behavior
- 'Archivable'
- },
- Message = {
- --appearance
- 'Text',
- --data
- 'Name',
- 'Parent',
- --behavior
- 'Archivable'
- },
- BoolValue = {
- --data
- 'Name',
- 'Parent',
- 'Value',
- --behavior
- 'Archivable'
- },
- BrickColorValue = {
- --data
- 'Name',
- 'Parent',
- 'Value',
- --behavior
- 'Archivable'
- },
- CFrameValue = {
- --data
- 'Name',
- 'Parent',
- --behavior
- 'Archivable'
- },
- Color3Value = {
- --data
- 'Name',
- 'Parent',
- 'Value',
- --behavior
- 'Archivable'
- },
- IntValue = {
- --data
- 'Name',
- 'Parent',
- 'Value',
- --behavior
- 'Archivable'
- },
- NumberValue = {
- --data
- 'Name',
- 'Parent',
- 'Value',
- --behavior
- 'Archivable'
- },
- ObjectValue = {
- --data
- 'Name',
- 'Parent',
- 'Value',
- --behavior
- 'Archivable'
- },
- RayValue = {
- --data
- 'Name',
- 'Parent',
- --behavior
- 'Archivable'
- },
- StringValue = {
- --data
- 'Name',
- 'Parent',
- 'Value',
- --behavior
- 'Archivable'
- },
- Vector3Value = {
- --data
- 'Name',
- 'Parent',
- 'Value',
- --behavior
- 'Archivable'
- },
- Part = {
- --appearance
- 'BrickColor',
- 'CastShadow',
- 'Color',
- 'Material',
- 'Reflectance',
- 'Transparency',
- --data
- 'Name',
- 'Orientation',
- 'Parent',
- 'Position',
- --[[--transform
- 'Origin Position',
- 'Origin Orientation',
- --pivot
- 'Pivot Offset Position',
- 'Pivot Offset Orientation',]]
- --behavior
- 'Anchored',
- 'Archivable',
- 'CanCollide',
- 'CanTouch',
- 'CollisionGroupId',
- 'Locked',
- 'Massless',
- --part
- 'CustomPhysicalProperties',
- 'RootPriority',
- 'Shape',
- 'Size',
- --assembly
- 'AssemblyLinearVelocity',
- 'AssemblyAngularVelocity'
- },
- MeshPart = {
- --appearance
- 'BrickColor',
- 'CastShadow',
- 'Color',
- 'DoubleSided',
- 'Material',
- 'MeshId',
- 'Reflectance',
- 'RenderFidelity',
- 'TextureID',
- 'Transparency',
- --data
- 'Name',
- 'Orientation',
- 'Parent',
- 'Position',
- --[[--transform
- 'Origin Position',
- 'Origin Orientation',
- --pivot
- 'Pivot Offset Position',
- 'Pivot Offset Orientation',]]
- --behavior
- 'Anchored',
- 'Archivable',
- 'CanCollide',
- 'CanTouch',
- 'CollisionFidelity',
- 'CollisionGroupId',
- 'Locked',
- 'Massless',
- --part
- 'CustomPhysicalProperties',
- 'RootPriority',
- 'Size',
- --assembly
- 'AssemblyLinearVelocity',
- 'AssemblyAngularVelocity'
- },
- Humanoid = {
- --data
- 'CameraOffset',
- 'DisplayDistanceType',
- 'DisplayName',
- 'HealthDisplayDistance',
- 'HealthDisplayType',
- 'Name',
- 'NameDisplayDistance',
- 'NameOcclusion',
- 'Parent',
- 'RigType',
- --behavior
- 'Archivable',
- 'BreakJointsOnDeath',
- 'RequireNeck',
- --jump settings
- 'AutoJumpEnabled',
- 'JumpPower',
- 'UseJumpPower',
- --control
- 'AutoRotate',
- 'Jump',
- 'PlatformStand',
- 'Sit',
- 'TargetPoint',
- 'WalkToPart',
- 'WalkToPoint',
- --game
- 'AutomaticScalingEnabled',
- 'Health',
- 'HipHeight',
- 'MaxHealth',
- 'MaxSlopeAngle',
- 'WalkSpeed'
- },
- BoxHandleAdornment = {
- --appearance
- 'Color3',
- 'Transparency',
- --data
- 'AdornCullingMode',
- 'Adornee',
- 'AlwaysOnTop',
- 'Name',
- 'Parent',
- 'Size',
- 'SizeRelativeOffset',
- 'Visible',
- 'ZIndex',
- --behavior
- 'Archivable'
- }
- }
- _tolua.supported_datatypes = {'string','number','boolean','EnumItem','table','UDim2','UDim','Color3','Vector3','Vector2','Rect','BrickColor','ColorSequenceKeypoint','ColorSequence','NumberSequenceKeypoint','NumberSequence','NumberRange', 'Faces', 'Instance'}
- _tolua.supported_objects = {'ScreenGui','TextButton','TextLabel','TextBox','ImageLabel','ImageButton','Frame','ScrollingFrame','LocalScript','UIGradient','UIAspectRationConstraint','UIGridLayout','UIListLayout','UIPadding','UIPageLayout','UIScale','UISizeConstraint','UITableLayout','UITextSizeConstraint','VideoFrame','ViewportFrame','BillbaordGui','Hint','Message','BoolValue','BrickColorValue','CFrameValue','IntValue','NumberValue','ObjectValue','RayValue','StringValue','Vector3Value','Part','MeshPart', 'Humanoid', 'BoxHandleAdornment'}
- function _tolua:fullname(object)
- if object then
- if object.Parent == game then
- return 'game:GetService"'..object.ClassName..'"'
- end
- local result = object.Name
- object = object.Parent
- repeat wait()
- if object then
- if object.Parent == game then
- result = "game:GetService'"..object.Name.."'." .. result
- else
- result = object.Name .. '.' .. result
- end
- object = object.Parent
- end
- until object == game
- return result
- end
- end
- function _tolua:tableToString(t, bool)
- local result = ''
- if bool then result = '\n' end
- for a,b in pairs(t) do
- if b then
- if bool then
- result = result .. "'"..tostring(b).."'"
- else
- result = result .. tostring(b)
- end
- if #t > 1 and a < #t then
- if bool then
- result = result .. ',\n'
- else
- result = result .. ', '
- end
- end
- end
- end
- return result
- end
- function _string(input)
- return "'"..tostring(input).."'"
- end
- function _number(input)
- return tostring(input)
- end
- function color3(input)
- return 'Color3.fromRGB('..tostring(input.R*255)..', '..tostring(input.G*255)..', '..tostring(input.B*255)..')'
- end
- function color_sequence_keypoint(input)
- return 'ColorSequenceKeypoint.new('..input.Time..', '..color3(input.Value)..')'
- end
- function number_sequence_keypoint(input)
- return 'NumberSequenceKeypoint.new('..input.Time..', '..input.Value..')'
- end
- function udim2(input)
- return 'UDim2.new('..tostring(input.X)..', '..tostring(input.Y)..')'
- end
- function udim(input)
- return 'UDim.new('..tostring(input.Scale)..', '..tostring(input.Offset)..')'
- end
- function vector3(input, _type)
- return _type..'.new('..tostring(input)..')'
- end
- function brick_color(input)
- return 'BrickColor.new("'..tostring(input)..'")'
- end
- function colorsequence(input)
- local result = ''
- for a,keypoint in pairs(input.Keypoints) do
- if keypoint then
- result = result .. color_sequence_keypoint(keypoint)
- if #input.Keypoints > 1 and a < #input.Keypoints then
- result = result..', '
- end
- end
- end
- return 'ColorSequence.new({'..result..'})'
- end
- function numbersequence(input)
- local result = ''
- for a,keypoint in pairs(input.Keypoints) do
- if keypoint then
- result = result .. number_sequence_keypoint(keypoint)
- if #input.Keypoints > 1 and a < #input.Keypoints then
- result = result..', '
- end
- end
- end
- return 'NumberSequence.new({'..result..'})'
- end
- function number_range(input)
- return 'NumberRange.new('..input.Min..', '..input.Max..')'
- end
- function faces(input)
- local result = ''
- local t = string.split(tostring(input), ',')
- for a,b in pairs(t) do
- result = result .. 'Enum.NormalId.'..nospaces(tostring(b))
- if #t > 1 and a < #t then
- result = result .. ', '
- end
- end
- return 'Faces.new('..result..')'
- end
- function instance(value, object)
- if objects[value] then
- return objects[value]
- else
- return fullname(value)
- end
- end
- function _tolua:ToString(value, object)
- local t = typeof(value)
- if t == 'string' then
- return _string(value)
- elseif t == 'number' or t == 'boolean' or t == 'EnumItem' then
- return _number(value)
- elseif t == 'table' then
- return _tolua:tableToString(value)
- elseif t == 'UDim2' then
- return udim2(value)
- elseif t == 'UDim' then
- return udim(value)
- elseif t == 'Color3' then
- return color3(value)
- elseif t == 'Vector3' or t == 'Vector2' or t == 'Rect' or t == 'CFrame' then
- return vector3(value, t)
- elseif t == 'BrickColor' then
- return brick_color(value)
- elseif t == 'ColorSequenceKeypoint' then
- return color_sequence_keypoint(value)
- elseif t == 'ColorSequence' then
- return colorsequence(value)
- elseif t == 'NumberSequenceKeypoint' then
- return number_sequence_keypoint(value)
- elseif t == 'NumberSequence' then
- return numbersequence(value)
- elseif t == 'NumberRange' then
- return number_range(value)
- elseif t == 'Faces' then
- return faces(value)
- elseif t == 'Instance' then
- return instance(value, object)
- end
- return nil
- end
- function _tolua:propertyToString(value, object, name)
- local t = typeof(value)
- local clone = Instance.new(object.ClassName)
- if value == clone[name] then
- return nil
- else
- if ToString(value, object) then
- return ToString(value, object)
- else
- if name ~= 'Parent' then
- return tostring(value).." --Failed while trying to get "..object.Name.."s "..name..' so just used tostring.'
- end
- end
- end
- return tostring(value)
- end
- function _tolua:attributeToString(value, object, name)
- local t = typeof(value)
- if ToString(value, object) then
- return ToString(value, object)
- else
- return "'Failed while trying to get "..object.Name.."s "..name.."'"
- end
- end
- function _tolua:getName()
- local result = ''
- for i = 1,5 do
- result = result .. string.char(math.random(97,122))
- end
- return result
- end
- function _tolua:variablename(input)
- local name = input.Name
- local withoutIllegalCharacters = ''
- for a in string.gmatch(name, '[%w_]') do
- withoutIllegalCharacters = withoutIllegalCharacters .. a
- end
- local bname = ''
- if #withoutIllegalCharacters == 0 then
- bname = name
- elseif string.find(string.sub(withoutIllegalCharacters, 1, 1), '%d') then
- bname = '_' .. withoutIllegalCharacters
- else
- bname = withoutIllegalCharacters
- end
- local isduplicate = false
- if table.find(variableNames, bname) then
- isduplicate = true
- end
- if isduplicate then
- local count = 2
- while true do
- local dupe = false
- for a,b in pairs(variableNames) do
- if b == bname..'_'..tostring(count) then
- dupe = true
- break
- end
- end
- if not dupe then
- table.insert(variableNames, bname..'_'..tostring(count))
- objects[input] = bname..'_'..tostring(count)
- return bname..'_'..tostring(count)
- end
- count = count + 1
- end
- else
- table.insert(variableNames, bname)
- objects[input] = bname
- return bname
- end
- table.insert(objects, input)
- objects[input] = bname
- return name
- end
- return _tolua
Add Comment
Please, Sign In to add comment