Skip to content

Commit

Permalink
Version 0.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
1Axen committed Mar 27, 2024
1 parent ab7d397 commit cef48d5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion build/.darklua.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
{
"identifier": "VERSION",
"rule": "inject_global_value",
"value": "0.10.0"
"value": "0.10.1"
}
]
}
2 changes: 1 addition & 1 deletion plugin/.darklua.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
{
"identifier": "VERSION",
"rule": "inject_global_value",
"value": "0.10.0"
"value": "0.10.1"
}
]
}
16 changes: 8 additions & 8 deletions src/Generator/init.luau
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@ local EVENT_BODY = {
local RELIABLE_BODY = {
Header = "local Buffer, Size, Instances = SendBuffer, SendCursor, SendInstances",
Body = {
"Load(PlayersMap[Player])",
"local Position = Allocate(Size)",
"buffer.copy(SendBuffer, Position, Buffer, 0, Size)",
"table.move(Instances, 1, #Instances, #SendInstances + 1, SendInstances)",
"PlayersMap[Player] = Save()",
"Load(PlayersMap[Player])\n",
"local Position = Allocate(Size)\n",
"buffer.copy(SendBuffer, Position, Buffer, 0, Size)\n",
"table.move(Instances, 1, #Instances, #SendInstances + 1, SendInstances)\n",
"PlayersMap[Player] = Save()\n",
}
}

local UNRELIABLE_BODY = {
"local Buffer = buffer.create(SendCursor)",
"buffer.copy(Buffer, 0, SendBuffer, 0, SendCursor)"
"local Buffer = buffer.create(SendCursor)\n",
"buffer.copy(Buffer, 0, SendBuffer, 0, SendCursor)\n"
}

local DEBUG_GLOBALS = {
Expand Down Expand Up @@ -239,7 +239,7 @@ function Declarations.TagEnum(Declaration: Parser.TagEnumDeclaration, Read: Bloc
end

Types.u8.Write(tostring(Index - 1), Write)
Generators.UserType(Variant, Read, Write)
Generators.UserType(Variant, Read, Write, Variable)
Read:Line(`{TagIndex} = {Name}`)
end

Expand Down

0 comments on commit cef48d5

Please sign in to comment.