Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update comment #3167

Merged
merged 1 commit into from
Nov 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading