コード例 #1
0
 private string FailedPermissionsScriptCAPSUpdate(UUID assetID, UUID inv)
 {
     LLSDScriptAssetUploadComplete uploadComplete = new LLSDScriptAssetUploadComplete();
     uploadComplete.new_asset = assetID.ToString();
     uploadComplete.new_inventory_item = inv;
     uploadComplete.state = "complete";
     uploadComplete.compiled = false;
     uploadComplete.errors.Add("Insufficient permissions to edit script");
     return LLSDHelpers.SerialiseLLSDReply(uploadComplete);
 }
コード例 #2
0
        private string SuccessScriptCAPSUpdate(UUID assetID, UUID inv)
        {
            LLSDScriptAssetUploadComplete uploadComplete = new LLSDScriptAssetUploadComplete();
            uploadComplete.new_asset = assetID.ToString();
            uploadComplete.new_inventory_item = inv;
            uploadComplete.state = "complete";
            uploadComplete.compiled = true;

            return LLSDHelpers.SerialiseLLSDReply(uploadComplete);
        }
コード例 #3
0
 private string FailedCompileScriptCAPSUpdate(UUID assetID, UUID inv, string error)
 {
     LLSDScriptAssetUploadComplete uploadComplete = new LLSDScriptAssetUploadComplete();
     uploadComplete.new_asset = assetID.ToString();
     uploadComplete.new_inventory_item = inv;
     uploadComplete.state = "complete";
     uploadComplete.compiled = false;
     uploadComplete.errors.Add(error);
     return LLSDHelpers.SerialiseLLSDReply(uploadComplete);
 }