|
|
@ -336,7 +336,7 @@ PF_CONSOLE_CMD( Net, // groupName |
|
|
|
"Link to an age." ) // helpString
|
|
|
|
"Link to an age." ) // helpString
|
|
|
|
{
|
|
|
|
{
|
|
|
|
plAgeLinkStruct link; |
|
|
|
plAgeLinkStruct link; |
|
|
|
link.GetAgeInfo()->SetAgeFilename( params[0] ); |
|
|
|
link.GetAgeInfo()->SetAgeFilename( (const char *)params[0] ); |
|
|
|
link.SetLinkingRules( plNetCommon::LinkingRules::kBasicLink ); |
|
|
|
link.SetLinkingRules( plNetCommon::LinkingRules::kBasicLink ); |
|
|
|
plNetLinkingMgr::GetInstance()->LinkToAge( &link ); |
|
|
|
plNetLinkingMgr::GetInstance()->LinkToAge( &link ); |
|
|
|
PrintString("Linking to age..."); |
|
|
|
PrintString("Linking to age..."); |
|
|
@ -350,7 +350,7 @@ PF_CONSOLE_CMD( Net, // groupName |
|
|
|
"Link to a specific age by guid." ) // helpString
|
|
|
|
"Link to a specific age by guid." ) // helpString
|
|
|
|
{
|
|
|
|
{
|
|
|
|
plAgeLinkStruct link; |
|
|
|
plAgeLinkStruct link; |
|
|
|
link.GetAgeInfo()->SetAgeFilename( params[0] ); |
|
|
|
link.GetAgeInfo()->SetAgeFilename( (const char *)params[0] ); |
|
|
|
//link.GetAgeInfo()->SetAgeInstanceName( params[0] );
|
|
|
|
//link.GetAgeInfo()->SetAgeInstanceName( params[0] );
|
|
|
|
//link.GetAgeInfo()->SetAgeUserDefinedName( params[0] );
|
|
|
|
//link.GetAgeInfo()->SetAgeUserDefinedName( params[0] );
|
|
|
|
plUUID guid( (const char *)params[1] ); |
|
|
|
plUUID guid( (const char *)params[1] ); |
|
|
@ -375,7 +375,7 @@ PF_CONSOLE_CMD( Net, |
|
|
|
"Link to specified age using Original Age Linking Book rules" ) |
|
|
|
"Link to specified age using Original Age Linking Book rules" ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
plAgeLinkStruct link; |
|
|
|
plAgeLinkStruct link; |
|
|
|
link.GetAgeInfo()->SetAgeFilename( params[0] ); |
|
|
|
link.GetAgeInfo()->SetAgeFilename( (const char *)params[0] ); |
|
|
|
link.SpawnPoint() = plSpawnPointInfo( (const char *)params[1], (const char *)params[1] ); |
|
|
|
link.SpawnPoint() = plSpawnPointInfo( (const char *)params[1], (const char *)params[1] ); |
|
|
|
link.SetLinkingRules( plNetCommon::LinkingRules::kOriginalBook ); |
|
|
|
link.SetLinkingRules( plNetCommon::LinkingRules::kOriginalBook ); |
|
|
|
plNetLinkingMgr::GetInstance()->LinkToAge( &link ); |
|
|
|
plNetLinkingMgr::GetInstance()->LinkToAge( &link ); |
|
|
@ -388,7 +388,7 @@ PF_CONSOLE_CMD( Net, |
|
|
|
"Link to specified age using Personal Age Linking Book rules" ) |
|
|
|
"Link to specified age using Personal Age Linking Book rules" ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
plAgeLinkStruct link; |
|
|
|
plAgeLinkStruct link; |
|
|
|
link.GetAgeInfo()->SetAgeFilename( params[0] ); |
|
|
|
link.GetAgeInfo()->SetAgeFilename( (const char *)params[0] ); |
|
|
|
link.SetLinkingRules( plNetCommon::LinkingRules::kOwnedBook ); |
|
|
|
link.SetLinkingRules( plNetCommon::LinkingRules::kOwnedBook ); |
|
|
|
plNetLinkingMgr::GetInstance()->LinkToAge( &link ); |
|
|
|
plNetLinkingMgr::GetInstance()->LinkToAge( &link ); |
|
|
|
PrintString("Linking to age I own..."); |
|
|
|
PrintString("Linking to age I own..."); |
|
|
@ -400,7 +400,7 @@ PF_CONSOLE_CMD( Net, |
|
|
|
"Link to specified age using Personal Age Linking Book rules" ) |
|
|
|
"Link to specified age using Personal Age Linking Book rules" ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
plAgeLinkStruct link; |
|
|
|
plAgeLinkStruct link; |
|
|
|
link.GetAgeInfo()->SetAgeFilename( params[0] ); |
|
|
|
link.GetAgeInfo()->SetAgeFilename( (const char *)params[0] ); |
|
|
|
link.SetLinkingRules( plNetCommon::LinkingRules::kVisitBook ); |
|
|
|
link.SetLinkingRules( plNetCommon::LinkingRules::kVisitBook ); |
|
|
|
plNetLinkingMgr::GetInstance()->LinkToAge( &link ); |
|
|
|
plNetLinkingMgr::GetInstance()->LinkToAge( &link ); |
|
|
|
PrintString("Linking to age I can visit..."); |
|
|
|
PrintString("Linking to age I can visit..."); |
|
|
@ -412,7 +412,7 @@ PF_CONSOLE_CMD( Net, |
|
|
|
"Link to a sub-age of the current age" ) |
|
|
|
"Link to a sub-age of the current age" ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
plAgeLinkStruct link; |
|
|
|
plAgeLinkStruct link; |
|
|
|
link.GetAgeInfo()->SetAgeFilename( params[0] ); |
|
|
|
link.GetAgeInfo()->SetAgeFilename( (const char *)params[0] ); |
|
|
|
link.SetLinkingRules( plNetCommon::LinkingRules::kSubAgeBook ); |
|
|
|
link.SetLinkingRules( plNetCommon::LinkingRules::kSubAgeBook ); |
|
|
|
plNetLinkingMgr::GetInstance()->LinkToAge( &link ); |
|
|
|
plNetLinkingMgr::GetInstance()->LinkToAge( &link ); |
|
|
|
PrintString("Linking to a sub-age..."); |
|
|
|
PrintString("Linking to a sub-age..."); |
|
|
@ -481,7 +481,7 @@ PF_CONSOLE_CMD( Net, |
|
|
|
plNetLinkingMgr * lm = plNetLinkingMgr::GetInstance(); |
|
|
|
plNetLinkingMgr * lm = plNetLinkingMgr::GetInstance(); |
|
|
|
|
|
|
|
|
|
|
|
plAgeInfoStruct info; |
|
|
|
plAgeInfoStruct info; |
|
|
|
info.SetAgeFilename( params[0] ); |
|
|
|
info.SetAgeFilename( (const char *)params[0] ); |
|
|
|
|
|
|
|
|
|
|
|
plAgeLinkStruct link; |
|
|
|
plAgeLinkStruct link; |
|
|
|
if (!VaultGetOwnedAgeLink(&info, &link)) { |
|
|
|
if (!VaultGetOwnedAgeLink(&info, &link)) { |
|
|
@ -806,8 +806,8 @@ PF_CONSOLE_CMD( Net_Vault, |
|
|
|
"Add an instance of the specified age to your bookshelf" ) |
|
|
|
"Add an instance of the specified age to your bookshelf" ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
plAgeLinkStruct link; |
|
|
|
plAgeLinkStruct link; |
|
|
|
link.GetAgeInfo()->SetAgeFilename( params[0] ); |
|
|
|
link.GetAgeInfo()->SetAgeFilename( (const char *)params[0] ); |
|
|
|
link.GetAgeInfo()->SetAgeInstanceName( params[0] ); |
|
|
|
link.GetAgeInfo()->SetAgeInstanceName( (const char *)params[0] ); |
|
|
|
plUUID guid = plUUID::Generate(); |
|
|
|
plUUID guid = plUUID::Generate(); |
|
|
|
link.GetAgeInfo()->SetAgeInstanceGuid( &guid); |
|
|
|
link.GetAgeInfo()->SetAgeInstanceGuid( &guid); |
|
|
|
link.SetSpawnPoint( kDefaultSpawnPoint ); |
|
|
|
link.SetSpawnPoint( kDefaultSpawnPoint ); |
|
|
@ -822,7 +822,7 @@ PF_CONSOLE_CMD( Net_Vault, |
|
|
|
"Remove the specified age from your bookshelf" ) |
|
|
|
"Remove the specified age from your bookshelf" ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
plAgeInfoStruct info; |
|
|
|
plAgeInfoStruct info; |
|
|
|
info.SetAgeFilename( params[0] ); |
|
|
|
info.SetAgeFilename( (const char *)params[0] ); |
|
|
|
bool success = VaultUnregisterOwnedAgeAndWait(&info); |
|
|
|
bool success = VaultUnregisterOwnedAgeAndWait(&info); |
|
|
|
PrintStringF(PrintString, "Operation %s.", success ? "Successful" : "Failed"); |
|
|
|
PrintStringF(PrintString, "Operation %s.", success ? "Successful" : "Failed"); |
|
|
|
} |
|
|
|
} |
|
|
@ -834,8 +834,8 @@ PF_CONSOLE_CMD( Net_Vault, |
|
|
|
"Add an instance of the specified age to your private links" ) |
|
|
|
"Add an instance of the specified age to your private links" ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
plAgeLinkStruct link; |
|
|
|
plAgeLinkStruct link; |
|
|
|
link.GetAgeInfo()->SetAgeFilename( params[0] ); |
|
|
|
link.GetAgeInfo()->SetAgeFilename( (const char *)params[0] ); |
|
|
|
link.GetAgeInfo()->SetAgeInstanceName( params[0] ); |
|
|
|
link.GetAgeInfo()->SetAgeInstanceName( (const char *)params[0] ); |
|
|
|
plUUID guid = plUUID::Generate(); |
|
|
|
plUUID guid = plUUID::Generate(); |
|
|
|
link.GetAgeInfo()->SetAgeInstanceGuid( &guid); |
|
|
|
link.GetAgeInfo()->SetAgeInstanceGuid( &guid); |
|
|
|
link.SetSpawnPoint( kDefaultSpawnPoint ); |
|
|
|
link.SetSpawnPoint( kDefaultSpawnPoint ); |
|
|
@ -850,7 +850,7 @@ PF_CONSOLE_CMD( Net_Vault, |
|
|
|
"Remove all instances of the specified age from your private links" ) |
|
|
|
"Remove all instances of the specified age from your private links" ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
plAgeInfoStruct info; |
|
|
|
plAgeInfoStruct info; |
|
|
|
info.SetAgeFilename( params[0] ); |
|
|
|
info.SetAgeFilename( (const char *)params[0] ); |
|
|
|
|
|
|
|
|
|
|
|
unsigned count = 0; |
|
|
|
unsigned count = 0; |
|
|
|
while (VaultUnregisterVisitAgeAndWait(&info)) |
|
|
|
while (VaultUnregisterVisitAgeAndWait(&info)) |
|
|
|