IStringTable
Interfacepublic interface IStringTableProperties
Methods
Finds the index of the specified string in the string table.
int? FindStringIndex(string str)- strstringThe string to find the index of.
Gets the index of the specified string in the string table, or adds it if it does not exist.
int GetOrAddString(string str)- strstringThe string to get or add.
Gets the string at the specified index.
string? GetString(int index)- indexintThe index to get the string from.
Gets the user data for the specified index.
StringTableOutUserData GetStringUserData(int index)- indexintThe index to get the user data from.
Gets the user data for the specified string.
StringTableOutUserData GetStringUserData(string str)- strstringThe string to get the user data for.
Checks if the specified index is valid.
bool IsStringIndexValid(int index)- indexintThe index to check.
Replicates the user data for the specified string to the specified recipients.
void ReplicateUserData(int stringIndex, StringTableUserData userData, in CRecipientFilter filter)- stringIndexintThe index of the string to replicate the user data for.
- userDataStringTableUserDataThe user data to replicate.
- filterCRecipientFilterThe recipients to replicate the user data to.
Replicates the user data for the specified string to the specified recipients. Notice that the string MUST be already added to the string table BEFORE A FEW TICKS. If the string is not added, the replication will fail. If the string is added only 1-2 ticks ago before this call, the server will overwrites the replicated value.
void ReplicateUserData(string str, StringTableUserData userData, in CRecipientFilter filter)- strstringThe string to replicate the user data for.
- userDataStringTableUserDataThe user data to replicate.
- filterCRecipientFilterThe recipients to replicate the user data to.
- ArgumentExceptionThrown if the string is not found in the string table.
Sets the user data for the specified string, or adds the string and set if it does not exist.
bool SetOrAddStringUserData(string str, StringTableUserData userData, bool forceOverride = true)- strstringThe string to set the user data for.
- userDataStringTableUserDataThe user data to set.
- forceOverridebooloptionalWhether to override the user data if it already exists.
Sets the user data for the specified index.
bool SetStringUserData(int index, StringTableUserData userData, bool forceOverride = true)- indexintThe index to set the user data for.
- userDataStringTableUserDataThe user data to set.
- forceOverridebooloptionalWhether to override the user data if it already exists.
- ArgumentExceptionThrown if the index is invalid.
Sets the user data for the specified string.
bool SetStringUserData(string str, StringTableUserData userData, bool forceOverride = true)- strstringThe string to set the user data for.
- userDataStringTableUserDataThe user data to set.
- forceOverridebooloptionalWhether to override the user data if it already exists.
- ArgumentExceptionThrown if the string is not found in the string table.
Tries to get the user data for the specified index.
bool TryGetStringUserData(int index, out StringTableOutUserData result)- indexintThe index to get the user data from.
- resultStringTableOutUserDataThe user data, or invalid if the index is invalid.
Tries to get the user data for the specified string.
bool TryGetStringUserData(string str, out StringTableOutUserData result)- strstringThe string to get the user data for.
- resultStringTableOutUserDataThe user data, or invalid if the string is not found.