1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-01-30 04:30:58 +02:00

Improve doc

This commit is contained in:
Matthew Heguy 2019-02-11 00:48:54 -05:00
parent 6281a8c49d
commit d94c4316e7
2 changed files with 4 additions and 4 deletions

View File

@ -88,7 +88,7 @@ function Public.player_has_donator_perk(player_name, perk_flag)
return bit32.band(flags, perk_flag) == perk_flag
end
--- Sets the data for a donator
--- Sets the data for a donator, all existing data for the entry is removed
-- @param player_name <string>
-- @param data <table>
-- @return <string|nil>
@ -97,7 +97,7 @@ function Public.set_donator_data(player_name, data)
Server.set_data(donator_data_set, player_name, data)
end
--- Changes the data for a donator with any data that is sent, but does not change any other
--- Changes the data for a donator with any data that is sent, only overwritten data is affected
-- @param player_name <string>
-- @param data <table>
-- @return <string|nil>
@ -109,7 +109,7 @@ function Public.change_donator_data(player_name, data)
Server.set_data(donator_data_set, player_name, donators[player_name])
end
--- Clears the player_ranks table and merges the entries into it
--- Writes the data called back from the server into the donators table, overwriting any matching entries
local sync_donators_callback =
Token.register(
function(data)

View File

@ -115,7 +115,7 @@ local function check_promote_to_auto_trusted()
end
end
--- On callback, overwrites player rank entries with data entries
--- On callback, overwrites player rank entries with data entries. Existing entries will not be removed.
local sync_ranks_callback =
Token.register(
function(data)