First commit, step 4 completed
This commit is contained in:
@@ -0,0 +1,333 @@
|
||||
local BarberShop =
|
||||
{
|
||||
Name = "BarberShop",
|
||||
Type = "System",
|
||||
Namespace = "C_BarberShop",
|
||||
Environment = "All",
|
||||
|
||||
Functions =
|
||||
{
|
||||
{
|
||||
Name = "ApplyCustomizationChoices",
|
||||
Type = "Function",
|
||||
|
||||
Returns =
|
||||
{
|
||||
{ Name = "success", Type = "bool", Nilable = false },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "Cancel",
|
||||
Type = "Function",
|
||||
},
|
||||
{
|
||||
Name = "ClearPreviewChoices",
|
||||
Type = "Function",
|
||||
SecretArguments = "AllowedWhenUntainted",
|
||||
|
||||
Arguments =
|
||||
{
|
||||
{ Name = "clearSavedChoices", Type = "bool", Nilable = false, Default = false },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "GetAvailableCustomizations",
|
||||
Type = "Function",
|
||||
MayReturnNothing = true,
|
||||
|
||||
Returns =
|
||||
{
|
||||
{ Name = "categories", Type = "table", InnerType = "CharCustomizationCategory", Nilable = false },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "GetCurrentCameraZoom",
|
||||
Type = "Function",
|
||||
|
||||
Returns =
|
||||
{
|
||||
{ Name = "zoomLevel", Type = "number", Nilable = false },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "GetCurrentCharacterData",
|
||||
Type = "Function",
|
||||
MayReturnNothing = true,
|
||||
|
||||
Returns =
|
||||
{
|
||||
{ Name = "characterData", Type = "PlayerInfoCharacterData", Nilable = false },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "GetCurrentCost",
|
||||
Type = "Function",
|
||||
|
||||
Returns =
|
||||
{
|
||||
{ Name = "cost", Type = "number", Nilable = false },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "GetViewingChrModel",
|
||||
Type = "Function",
|
||||
|
||||
Returns =
|
||||
{
|
||||
{ Name = "chrModelID", Type = "number", Nilable = true },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "HasAlteredForm",
|
||||
Type = "Function",
|
||||
|
||||
Returns =
|
||||
{
|
||||
{ Name = "hasAlteredForm", Type = "bool", Nilable = false },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "HasAnyChanges",
|
||||
Type = "Function",
|
||||
|
||||
Returns =
|
||||
{
|
||||
{ Name = "hasChanges", Type = "bool", Nilable = false },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "HasCustomizationFeature",
|
||||
Type = "Function",
|
||||
SecretArguments = "AllowedWhenUntainted",
|
||||
|
||||
Arguments =
|
||||
{
|
||||
{ Name = "featureMask", Type = "ChrModelFeatureFlags", Nilable = false },
|
||||
},
|
||||
|
||||
Returns =
|
||||
{
|
||||
{ Name = "hasCustomizationFeature", Type = "bool", Nilable = false },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "IsViewingAlteredForm",
|
||||
Type = "Function",
|
||||
|
||||
Returns =
|
||||
{
|
||||
{ Name = "isViewingAlteredForm", Type = "bool", Nilable = false },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "MarkCustomizationChoiceAsSeen",
|
||||
Type = "Function",
|
||||
SecretArguments = "AllowedWhenUntainted",
|
||||
|
||||
Arguments =
|
||||
{
|
||||
{ Name = "choiceID", Type = "number", Nilable = false },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "MarkCustomizationOptionAsSeen",
|
||||
Type = "Function",
|
||||
SecretArguments = "AllowedWhenUntainted",
|
||||
|
||||
Arguments =
|
||||
{
|
||||
{ Name = "optionID", Type = "number", Nilable = false },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "PreviewCustomizationChoice",
|
||||
Type = "Function",
|
||||
SecretArguments = "AllowedWhenUntainted",
|
||||
|
||||
Arguments =
|
||||
{
|
||||
{ Name = "optionID", Type = "number", Nilable = false },
|
||||
{ Name = "choiceID", Type = "number", Nilable = false },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "RandomizeCustomizationChoices",
|
||||
Type = "Function",
|
||||
},
|
||||
{
|
||||
Name = "ResetCameraRotation",
|
||||
Type = "Function",
|
||||
},
|
||||
{
|
||||
Name = "ResetCustomizationChoices",
|
||||
Type = "Function",
|
||||
},
|
||||
{
|
||||
Name = "RotateCamera",
|
||||
Type = "Function",
|
||||
SecretArguments = "AllowedWhenUntainted",
|
||||
|
||||
Arguments =
|
||||
{
|
||||
{ Name = "diffDegrees", Type = "number", Nilable = false },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "SaveSeenChoices",
|
||||
Type = "Function",
|
||||
},
|
||||
{
|
||||
Name = "SetCameraDistanceOffset",
|
||||
Type = "Function",
|
||||
SecretArguments = "AllowedWhenUntainted",
|
||||
|
||||
Arguments =
|
||||
{
|
||||
{ Name = "offset", Type = "number", Nilable = false },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "SetCameraZoomLevel",
|
||||
Type = "Function",
|
||||
SecretArguments = "AllowedWhenUntainted",
|
||||
|
||||
Arguments =
|
||||
{
|
||||
{ Name = "zoomLevel", Type = "number", Nilable = false },
|
||||
{ Name = "keepCustomZoom", Type = "bool", Nilable = true },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "SetCustomizationChoice",
|
||||
Type = "Function",
|
||||
SecretArguments = "AllowedWhenUntainted",
|
||||
|
||||
Arguments =
|
||||
{
|
||||
{ Name = "optionID", Type = "number", Nilable = false },
|
||||
{ Name = "choiceID", Type = "number", Nilable = false },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "SetModelDressState",
|
||||
Type = "Function",
|
||||
SecretArguments = "AllowedWhenUntainted",
|
||||
|
||||
Arguments =
|
||||
{
|
||||
{ Name = "dressedState", Type = "bool", Nilable = false },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "SetSelectedSex",
|
||||
Type = "Function",
|
||||
SecretArguments = "AllowedWhenUntainted",
|
||||
|
||||
Arguments =
|
||||
{
|
||||
{ Name = "sex", Type = "UnitSex", Nilable = false },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "SetViewingAlteredForm",
|
||||
Type = "Function",
|
||||
SecretArguments = "AllowedWhenUntainted",
|
||||
|
||||
Arguments =
|
||||
{
|
||||
{ Name = "isViewingAlteredForm", Type = "bool", Nilable = false },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "SetViewingChrModel",
|
||||
Type = "Function",
|
||||
SecretArguments = "AllowedWhenUntainted",
|
||||
|
||||
Arguments =
|
||||
{
|
||||
{ Name = "chrModelID", Type = "number", Nilable = true },
|
||||
{ Name = "spellShapeshiftFormID", Type = "number", Nilable = true },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "SetViewingShapeshiftForm",
|
||||
Type = "Function",
|
||||
SecretArguments = "AllowedWhenUntainted",
|
||||
|
||||
Arguments =
|
||||
{
|
||||
{ Name = "shapeshiftFormID", Type = "number", Nilable = true },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "ZoomCamera",
|
||||
Type = "Function",
|
||||
SecretArguments = "AllowedWhenUntainted",
|
||||
|
||||
Arguments =
|
||||
{
|
||||
{ Name = "zoomAmount", Type = "number", Nilable = false },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Events =
|
||||
{
|
||||
{
|
||||
Name = "BarberShopAppearanceApplied",
|
||||
Type = "Event",
|
||||
LiteralName = "BARBER_SHOP_APPEARANCE_APPLIED",
|
||||
UniqueEvent = true,
|
||||
},
|
||||
{
|
||||
Name = "BarberShopCameraValuesUpdated",
|
||||
Type = "Event",
|
||||
LiteralName = "BARBER_SHOP_CAMERA_VALUES_UPDATED",
|
||||
SynchronousEvent = true,
|
||||
},
|
||||
{
|
||||
Name = "BarberShopClose",
|
||||
Type = "Event",
|
||||
LiteralName = "BARBER_SHOP_CLOSE",
|
||||
SynchronousEvent = true,
|
||||
},
|
||||
{
|
||||
Name = "BarberShopCostUpdate",
|
||||
Type = "Event",
|
||||
LiteralName = "BARBER_SHOP_COST_UPDATE",
|
||||
SynchronousEvent = true,
|
||||
},
|
||||
{
|
||||
Name = "BarberShopForceCustomizationsUpdate",
|
||||
Type = "Event",
|
||||
LiteralName = "BARBER_SHOP_FORCE_CUSTOMIZATIONS_UPDATE",
|
||||
SynchronousEvent = true,
|
||||
},
|
||||
{
|
||||
Name = "BarberShopOpen",
|
||||
Type = "Event",
|
||||
LiteralName = "BARBER_SHOP_OPEN",
|
||||
SynchronousEvent = true,
|
||||
},
|
||||
{
|
||||
Name = "BarberShopResult",
|
||||
Type = "Event",
|
||||
LiteralName = "BARBER_SHOP_RESULT",
|
||||
SynchronousEvent = true,
|
||||
Payload =
|
||||
{
|
||||
{ Name = "success", Type = "bool", Nilable = false },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Tables =
|
||||
{
|
||||
},
|
||||
|
||||
Predicates =
|
||||
{
|
||||
},
|
||||
};
|
||||
|
||||
APIDocumentation:AddDocumentationTable(BarberShop);
|
||||
Reference in New Issue
Block a user