Skip to content

Commit

Permalink
Update comment lol (#3167)
Browse files Browse the repository at this point in the history
  • Loading branch information
deltamolfar authored Nov 4, 2024
1 parent 1a7fa75 commit 5f704a2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lua/wire/server/sents_registry.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
-- Structure to register components for propcore's sentSpawn function and for thirdparty addons.
-- Most of entity code is by Sevii77 from starfall (https://github.com/Sevii77 / https://github.com/thegrb93/StarfallEx/blob/master/lua/starfall/libs_sv/prop_sent.lua).
-- Thanks for not making my life easier :)
-- Thanks for making my life easier :)

-- To register - just use register(string classname, table data) in this file, or WireLib.SentSpawn.Register(classname, data) global function.
-- Data is a table with keys as parameter names (case sensitive) and table, where [1] is lua type, and [2] is default value (can be nil, or not declared, if you don't want no default values).
-- Data is a table with keys as parameter names (case sensitive) and table, where:
-- [1] is lua type,
-- [2] is default value (can be nil, or not declared, if you don't want no default values)
-- [3] is description (can be nil, or not declared, if you don't want descriptions).



Expand All @@ -20,7 +23,6 @@
-- })
--
-- You can later on organize it however you want either in _preFactory or _postFactory.
-- (Although it's possible to implement, I see no need in that, and that would introduce additional unneeded complexity and computation time)

-- WARNING: e2's propcore's sentspawn DO NOT MAKE ANY PROP PROTECTION CHECKS! Check if the entity is not a player/belongs to player yourself!

Expand Down

0 comments on commit 5f704a2

Please sign in to comment.