Skip to content

Commit

Permalink
Add linkset_data event and functions
Browse files Browse the repository at this point in the history
  • Loading branch information
SaladDais committed Nov 16, 2022
1 parent f05420b commit c55e432
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 4 deletions.
23 changes: 22 additions & 1 deletion builtins.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by LSL2 Derived Files Generator. Database version: 0.0.20221014000; output module version: 0.0.20140731000
// Generated by LSL2 Derived Files Generator. Database version: 0.0.20221115000; output module version: 0.0.20140731000
integer llAbs( integer val )
float llAcos( float val )
void llAddToLandBanList( key avatar, float hours )
Expand Down Expand Up @@ -232,6 +232,17 @@ key llKeysKeyValue( integer start, integer count )
vector llLinear2sRGB( vector color )
void llLinkParticleSystem( integer linknumber, list rules )
void llLinkSitTarget( integer link, vector offset, rotation rot )
integer llLinksetDataAvailable( )
integer llLinksetDataCountKeys( )
integer llLinksetDataDelete( string key )
integer llLinksetDataDeleteProtected( string key, string password )
list llLinksetDataFindKeys( string pattern, integer start, integer count )
list llLinksetDataListKeys( integer start, integer count )
string llLinksetDataRead( string key )
string llLinksetDataReadProtected( string key, string password )
void llLinksetDataReset( )
integer llLinksetDataWrite( string key, string value )
integer llLinksetDataWriteProtected( string key, string value, string password )
string llList2CSV( list src )
float llList2Float( list src, integer index )
integer llList2Integer( list src, integer index )
Expand Down Expand Up @@ -731,6 +742,15 @@ const integer LAND_RAISE = 1
const integer LAND_REVERT = 5
const integer LAND_SMALL_BRUSH = 1
const integer LAND_SMOOTH = 3
const integer LINKSETDATA_DELETE = 2
const integer LINKSETDATA_EMEMORY = 1
const integer LINKSETDATA_ENOKEY = 2
const integer LINKSETDATA_EPROTECTED = 3
const integer LINKSETDATA_NOTFOUND = 4
const integer LINKSETDATA_NOUPDATE = 5
const integer LINKSETDATA_OK = 0
const integer LINKSETDATA_RESET = 0
const integer LINKSETDATA_UPDATE = 1
const integer LINK_ALL_CHILDREN = -3
const integer LINK_ALL_OTHERS = -2
const integer LINK_ROOT = 1
Expand Down Expand Up @@ -1291,6 +1311,7 @@ event land_collision( vector pos )
event land_collision_end( vector pos )
event land_collision_start( vector pos )
event link_message( integer sender_num, integer num, string str, key id )
event linkset_data( integer action, string key, string value )
event listen( integer channel, string name, key id, string message )
event money( key id, integer amount )
event moving_end( )
Expand Down
23 changes: 22 additions & 1 deletion libtailslide/builtins_txt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#endif
namespace Tailslide {
const char *BUILTINS_TXT[] = {
"// Generated by LSL2 Derived Files Generator. Database version: 0.0.20221014000; output module version: 0.0.20140731000",
"// Generated by LSL2 Derived Files Generator. Database version: 0.0.20221115000; output module version: 0.0.20140731000",
"integer llAbs( integer val )",
"float llAcos( float val )",
"void llAddToLandBanList( key avatar, float hours )",
Expand Down Expand Up @@ -237,6 +237,17 @@ const char *BUILTINS_TXT[] = {
"vector llLinear2sRGB( vector color )",
"void llLinkParticleSystem( integer linknumber, list rules )",
"void llLinkSitTarget( integer link, vector offset, rotation rot )",
"integer llLinksetDataAvailable( )",
"integer llLinksetDataCountKeys( )",
"integer llLinksetDataDelete( string key )",
"integer llLinksetDataDeleteProtected( string key, string password )",
"list llLinksetDataFindKeys( string pattern, integer start, integer count )",
"list llLinksetDataListKeys( integer start, integer count )",
"string llLinksetDataRead( string key )",
"string llLinksetDataReadProtected( string key, string password )",
"void llLinksetDataReset( )",
"integer llLinksetDataWrite( string key, string value )",
"integer llLinksetDataWriteProtected( string key, string value, string password )",
"string llList2CSV( list src )",
"float llList2Float( list src, integer index )",
"integer llList2Integer( list src, integer index )",
Expand Down Expand Up @@ -736,6 +747,15 @@ const char *BUILTINS_TXT[] = {
"const integer LAND_REVERT = 5",
"const integer LAND_SMALL_BRUSH = 1",
"const integer LAND_SMOOTH = 3",
"const integer LINKSETDATA_DELETE = 2",
"const integer LINKSETDATA_EMEMORY = 1",
"const integer LINKSETDATA_ENOKEY = 2",
"const integer LINKSETDATA_EPROTECTED = 3",
"const integer LINKSETDATA_NOTFOUND = 4",
"const integer LINKSETDATA_NOUPDATE = 5",
"const integer LINKSETDATA_OK = 0",
"const integer LINKSETDATA_RESET = 0",
"const integer LINKSETDATA_UPDATE = 1",
"const integer LINK_ALL_CHILDREN = -3",
"const integer LINK_ALL_OTHERS = -2",
"const integer LINK_ROOT = 1",
Expand Down Expand Up @@ -1296,6 +1316,7 @@ const char *BUILTINS_TXT[] = {
"event land_collision_end( vector pos )",
"event land_collision_start( vector pos )",
"event link_message( integer sender_num, integer num, string str, key id )",
"event linkset_data( integer action, string key, string value )",
"event listen( integer channel, string name, key id, string message )",
"event money( key id, integer amount )",
"event moving_end( )",
Expand Down
4 changes: 3 additions & 1 deletion libtailslide/passes/lso/bytecode_format.hh
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ typedef enum : uint8_t {
LSOH_PATH_UPDATE = 36,
LSOH_EXPERIENCE_PERMISSIONS = 37,
LSOH_EXPERIENCE_PERMISSIONS_DENIED = 38,
LSOH_MAX = 39,
LSOH_LINKSET_DATA = 39,
LSOH_MAX = 40,
} LSOHandlerType;

const char * const LSO_HANDLER_NAMES[LSOH_MAX] = {
Expand Down Expand Up @@ -153,6 +154,7 @@ const char * const LSO_HANDLER_NAMES[LSOH_MAX] = {
"path_update", // LSOH_PATH_UPDATE
"experience_permissions", // LSOH_EXPERIENCE_PERMISSIONS
"experience_permissions_denied", // LSOH_EXPERIENCE_PERMISSIONS_DENIED
"linkset_data", // LSOH_LINKSET_DATA
};

const uint32_t LSO_TYPE_DATA_SIZES[LST_MAX] = {
Expand Down
3 changes: 2 additions & 1 deletion libtailslide/passes/mono/script_compiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ static std::unordered_map<std::string, std::string> CIL_HANDLER_NAMES {
{"transaction_result", "transaction_result"},
{"path_update", "path_update"},
{"experience_permissions", "experience_permissions"},
{"experience_permissions_denied", "experience_permissions_denied"}
{"experience_permissions_denied", "experience_permissions_denied"},
{"linkset_data", "linkset_data"}
};


Expand Down

0 comments on commit c55e432

Please sign in to comment.