Skip to content

Commit

Permalink
Use an id field on Ev/Fn Decl
Browse files Browse the repository at this point in the history
  • Loading branch information
sasial-dev committed Jan 5, 2024
1 parent 803c9f4 commit e711e3e
Show file tree
Hide file tree
Showing 5 changed files with 167 additions and 174 deletions.
2 changes: 2 additions & 0 deletions zap/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ pub struct FnDecl<'src> {
pub call: FnCall,
pub args: Option<Ty<'src>>,
pub rets: Option<Ty<'src>>,
pub id: usize,
}

#[derive(Debug, Clone, Copy, PartialEq, Eq)]
Expand All @@ -71,6 +72,7 @@ pub struct EvDecl<'src> {
pub evty: EvType,
pub call: EvCall,
pub data: Option<Ty<'src>>,
pub id: usize,
}

#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
Expand Down
2 changes: 0 additions & 2 deletions zap/src/output/luau/client.luau
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,4 @@ local unreliable = ReplicatedStorage:WaitForChild("ZAP_UNRELIABLE")
assert(reliable:IsA("RemoteEvent"), "Expected ZAP_RELIABLE to be a RemoteEvent")
assert(unreliable:IsA("UnreliableRemoteEvent"), "Expected ZAP_UNRELIABLE to be an UnreliableRemoteEvent")

local event_queue: { [number]: { any } } = {}

local time = 0
Loading

0 comments on commit e711e3e

Please sign in to comment.