diff --git a/.gitignore b/.gitignore index 0904015..4a52cfb 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ /.idea/workspace.xml /.idea/navEditor.xml /.idea/assetWizardSettings.xml +/.vscode/ .DS_Store /build /captures @@ -15,6 +16,7 @@ .cxx local.properties /thirdparty/ovr_platform_sdk/ +/toolkit/src/gen/ # Binaries *.o diff --git a/doc_classes/MetaPlatformSDK.xml b/doc_classes/MetaPlatformSDK.xml index 372c982..e756c8b 100644 --- a/doc_classes/MetaPlatformSDK.xml +++ b/doc_classes/MetaPlatformSDK.xml @@ -1277,6 +1277,30 @@ Represents the mono stream mode the VoIP stream uses. The advantages mono stream mode has over ambisonic stream mode is the audio encoding and decoding require less computational resources and thus audio streams require less bandwidth. So it is typically used in applications with limited network resources. + + An unknown offer term. + + + Represents that the offer term is weekly. This means that the offer will be valid for a period of one week from the date of purchase. + + + Represents that the offer term is biweekly. This means that the offer will be valid for a period of two weeks from the date of purchase. + + + Represents that the offer term is monthly. This means that the offer will be valid for a period of one month from the date of purchase. + + + Represents that the offer term is quarterly. This means that the offer will be valid for a period of three months from the date of purchase. + + + Represents that the offer term is every 6 months. This means that the offer will be valid for a period of six months from the date of purchase. + + + Represents that the offer term is annual. This means that the offer will be valid for a period of one year from the date of purchase. + + + Represents that the offer term is every 2 years. This means that the offer will be valid for a period of two years from the date of purchase. + An unknown time window. @@ -1878,6 +1902,15 @@ Install of the app succeeded. + + An unknown offer type. + + + This value indicates that the offer is an intro offer, which is typically a special promotion or discount offered to new customers. + + + This value indicates that the offer is a free trial, which allows customers to try out a product or service without paying for it. + Oculus Platform SDK initialization succeeded. diff --git a/doc_classes/MetaPlatformSDK_BillingPlan.xml b/doc_classes/MetaPlatformSDK_BillingPlan.xml new file mode 100644 index 0000000..d3f3511 --- /dev/null +++ b/doc_classes/MetaPlatformSDK_BillingPlan.xml @@ -0,0 +1,20 @@ + + + + Represents a billing plan. + + + Represents a billing plan. + + + + + + The paid offer associated with this billing plan. + + + A list of trial offers associated with the billing plan. + This method may return [code]null[/code]. This indicates that the value is not present or that the current app or user is not permitted to access it. + + + diff --git a/doc_classes/MetaPlatformSDK_BillingPlanArray.xml b/doc_classes/MetaPlatformSDK_BillingPlanArray.xml new file mode 100644 index 0000000..3d5ba6a --- /dev/null +++ b/doc_classes/MetaPlatformSDK_BillingPlanArray.xml @@ -0,0 +1,27 @@ + + + + An array of billing plans. + + + An array of [MetaPlatformSDK_BillingPlan]s. + [b]NOTE:[/b] This isn't a Godot [Array], but you can loop over it using [code]for x in arr[/code] just like a Godot [Array]. + + + + + + + + + Returns an element in the array by index. + + + + + + Returns the size of the array. + + + + diff --git a/doc_classes/MetaPlatformSDK_ContentRating.xml b/doc_classes/MetaPlatformSDK_ContentRating.xml new file mode 100644 index 0000000..99d0075 --- /dev/null +++ b/doc_classes/MetaPlatformSDK_ContentRating.xml @@ -0,0 +1,44 @@ + + + + Represents a content rating. + + + Represents a content rating. + + + + + + + + + The list of descriptors which indicate content within the product that may have triggered a particular age rating or may be of interest or concern to consumers, e.g., "Blood and Gore", "Intense Violence", etc. + + + + + + + The list of interactive elements, which advise consumers up front that a [MetaPlatformSDK_Product] includes interactive or online behaviors/options that may be of interest or concern, e.g., "In-App Purchases". + + + + + + URI for the image that needs to be shown for the content rating of the [MetaPlatformSDK_Product]. + + + The age rating text is the text version of the rating used to describe age appropriateness by the International Age Rating Coalition (IARC). + + + The number of descriptors. + + + The number of interactive elements. + + + The URI pointing to a website with International Age Rating Coalition (IARC) rating definitions from local rating authorities (e.g., Australian Classification Board, ESRB, GRAC, etc). + + + diff --git a/doc_classes/MetaPlatformSDK_PaidOffer.xml b/doc_classes/MetaPlatformSDK_PaidOffer.xml new file mode 100644 index 0000000..efec6ec --- /dev/null +++ b/doc_classes/MetaPlatformSDK_PaidOffer.xml @@ -0,0 +1,19 @@ + + + + Represents a paid offer. + + + Represents a paid offer. + + + + + + The [MetaPlatformSDK_Price] of the paid offer contains the currency code, the amount in hundredths, and the formatted string representation. + + + Specifies the term of the offer. + + + diff --git a/doc_classes/MetaPlatformSDK_Product.xml b/doc_classes/MetaPlatformSDK_Product.xml index 8fe28d9..6007964 100644 --- a/doc_classes/MetaPlatformSDK_Product.xml +++ b/doc_classes/MetaPlatformSDK_Product.xml @@ -9,18 +9,33 @@ + + The billing plans related to the product. This may be [code]null[/code]. This indicates that the value is not present or that the curent app or user is not permitted to access it. + + + The content rating that specifies the age rating as well as other important information that needs to be displayed to the user per local regulations. This may be [code]null[/code]. This indicates that the value is not present or that the curent app or user is not permitted to access it. + + + The URI for the cover image for the product being sold. + The description for the product. The description should be meaningful and explanatory to help outline the product and its features. The formatted string for the [MetaPlatformSDK_Price]. + + The URI for the product icon. + The name of the product. This will be used as a the display name and should be aligned with the user facing title. The [MetaPlatformSDK_Price] of the product contains the currency code, the amount in hundredths, and the formatted string representation. + + The short description of the product. To be used in conjunction with the [member description]. + The unique string that you use to reference the product in your app. The SKU is case-sensitive and should match the SKU reference in your code. diff --git a/doc_classes/MetaPlatformSDK_Purchase.xml b/doc_classes/MetaPlatformSDK_Purchase.xml index 470170e..a28c53e 100644 --- a/doc_classes/MetaPlatformSDK_Purchase.xml +++ b/doc_classes/MetaPlatformSDK_Purchase.xml @@ -27,5 +27,8 @@ The SKU of the IAP [MetaPlatformSDK_Product] that was purchased. This value is case-sensitive. To retrieve the product information, you can use this value when calling [method MetaPlatformSDK.iap_get_products_by_sku_async]. + + The type of the IAP [MetaPlatformSDK_Product] that was purchased. + diff --git a/doc_classes/MetaPlatformSDK_TrialOffer.xml b/doc_classes/MetaPlatformSDK_TrialOffer.xml new file mode 100644 index 0000000..3898da6 --- /dev/null +++ b/doc_classes/MetaPlatformSDK_TrialOffer.xml @@ -0,0 +1,25 @@ + + + + Represents a trial offer. + + + Represents a trial offer. + + + + + + The maximum term for which a the trial offer is valid. + + + The price of the trial offer, which contains the currency code, the amount in hundredths, and the formatted string representation. + + + The term of the trial offer. + + + The type of trial. + + + diff --git a/doc_classes/MetaPlatformSDK_TrialOfferArray.xml b/doc_classes/MetaPlatformSDK_TrialOfferArray.xml new file mode 100644 index 0000000..f2575bf --- /dev/null +++ b/doc_classes/MetaPlatformSDK_TrialOfferArray.xml @@ -0,0 +1,27 @@ + + + + An array of trial offers. + + + An array of [MetaPlatformSDK_TrialOffer]s. + [b]NOTE:[/b] This isn't a Godot [Array], but you can loop over it using [code]for x in arr[/code] just like a Godot [Array]. + + + + + + + + + Returns an element in the array by index. + + + + + + Returns the size of the array. + + + + diff --git a/scripts/update_doc_classes_xml.sh b/scripts/update_doc_classes_xml.sh index 336ae3a..05b1282 100755 --- a/scripts/update_doc_classes_xml.sh +++ b/scripts/update_doc_classes_xml.sh @@ -14,7 +14,9 @@ die() { $GODOT --doctool "$SCRIPT_DIR/.." --path "$PROJECT" --gdextension-docs --xr-mode off \ || die "Failed to regenerate XML using Godot's --doctool" -openxr_vendors_classes=$(cd "$SCRIPT_DIR/../thirdparty/godot_openxr_vendors/doc_classes" && ls *.xml) -for x in $openxr_vendors_classes; do - rm -f "$SCRIPT_DIR/../doc_classes/$x" -done +if [ -n "$GODOT_OPENXR_VENDORS_SOURCE" ]; then + openxr_vendors_classes=$(cd "$GODOT_OPENXR_VENDORS_SOURCE/doc_classes" && ls *.xml) + for x in $openxr_vendors_classes; do + rm -f "$SCRIPT_DIR/../doc_classes/$x" + done +fi