HolyLib Wiki

stringtable

stringtable

This library adds many new functions to hand stringtables.

Methods

stringtable.AllowCreation( boolean creationAllowed = false )
Allows you to enable the creation of strongtables. You need to set it back to false after you created your stringtables.
INetworkStringTable stringtable.CreateStringTable( string tableName, number maxEntries, number userdatafixedsize = 0, number userdatanetworkbits = 0 )
Creates a new stringtable.
INetworkStringTable stringtable.CreateStringTableEx( string tableName, number maxEntries, number userdatafixedsize = 0, number userdatanetworkbits = 0, boolean isFileNames = false )
Creates a new stringtable.
INetworkStringTable stringtable.FindTable( string tableName )
Returns the INetworkStringTable found by the given name.
INetworkStringTable stringtable.GetTable( number tableID )
Returns the INetworkStringTable found by the given tableID.
stringtable.INVALID_STRING_INDEX()
The number used as a invalid index.
If any stringtable function returns this number, it failed.
boolean stringtable.IsCreationAllowed( )
Returns whether the creation of stringtables is currently allowed.
boolean stringtable.IsLocked( )
Returns whether all stringtables are currently locked.
number stringtable.GetNumTables( )
Returns the number of stringtables that exist
stringtable.RemoveAllTables()
Nuke all stringtables. BOOOM
stringtable.RemoveTable( INetworkStringTable table )
Removes the given stringtable. Deleting a stringtable is NOT networked!
In addition, it might be unsafe and result in crashes when it's a engine created stringtable.
Generally, only use it when you KNOW what your doing.
stringtable.SetAllowClientSideAddString( INetworkStringTable table, boolean allowClientSideAddString )
Marks the stringtable to allow clients to add strings to it? Does this really work?
And what does it really do?
stringtable.SetLocked()
Locks or Unlocks all stringtables.