와우 정보 게시판

전체보기

모바일 상단 메뉴

본문 페이지

[PTR] 애드온 api 변경점(Alpha 4)

Fjaoief
댓글: 23 개
조회: 10349
추천: 8
2025-10-19 20:52:10
애드온 개발자 디스코드 서버에 블리자드가 다시 메시지를 보냈습니다. 
선 요약: 
1. 일부 api를 새로 개설하거나 비밀로 접속 가능케 했습니다.
2. (중요) 새로 curve 오브젝트 타입을 추가했습니다. 이 기능으로 체력바의 색깔을 실시간으로 변경 가능하게 할 수 있습니다.(해설: 힐러 레이드 프레임 애드온 부활)
3. 아이콘 스프라이트 ID를 통해 애드온 제한을 우회하는 편법을 막았습니다.
4. 알파5에 다가올 애드온 API 변경 예고 사항으로, 버프/디버프의 일부 정보를 개방할 계획입니다.
종합적으로 보자면 지금보다 아주 살짝 더 풀어줄 것입니다. 애드온으로 어느 정도까지 가능할지는 결국 확팩 전까지 모르겠습니다.

본문:
비밀 구조 테이블
구조화된 테이블을 비밀로 반환하는 API들이 이제 테이블 전체를 비밀로 처리하지 않고, 그 안의 값들만 비밀로 처리합니다.
이 변경은 이벤트나 벡터 형태로 데이터를 반환하는 API에는 적용되지 않습니다. (문제가 되는 특정 사례는 현재 검토 중입니다.)

텍스트 음성 변환
이제 C_VoiceChat.SpeakText 함수가 비밀 값(Secret) 을 인자로 받아 호출할 수 있습니다.

주문
여러 주문 관련 API(IsSpellImportant, IsSpellHarmful, IsSpellInRange 등)가 비밀 값으로 호출 가능해졌습니다.
SpellCooldownInfo에 종료 시간 필드가 추가되었습니다.
새로운 API GetAuraDurationRemainingByAuraInstanceID 가 추가되었습니다.

텍스처
SetRotation이 이제 비밀 값으로 호출 가능합니다. (새로운 Rotation Secret Aspect가 적용됩니다.)
SetSpriteSheetCell은 이제 비밀 셀 값의 최대치가 256으로 제한됩니다. (뭘 꾸미고 있는지 다 보고 있었습니다.)

Curve 객체
새로운 Lua 객체 타입 “curve” 가 추가되었습니다.
이를 통해 지금까지 불가능했던, 비밀 데이터를 활용한 애드온 기능이 상당수 가능해집니다.
(첫 번째 사용 예시는 아래의 “체력바 색상” 섹션에서 확인할 수 있습니다.)

체력바 색상
애드온이 이제 체력바의 색상 변화를 색상 커브(Color Curve) 로 제어할 수 있습니다.
백분율에 따라 어떤 색상을 적용할지 커브 형태로 지정할 수 있습니다.

디버그 도구
/dump 명령어가 이제 비밀 값의 내용을 채팅창에 출력합니다.

문서화
자동 생성되는 이벤트 문서에 이제 다음 정보가 포함됩니다:
보안 제한(Security Restrictions)
RegisterEventCallback API에서의 사용 가능 여부


곧 추가될 내용 (Alpha 5 이후)

문자열 형식화
여러 숫자 형식 API(AbbreviateNumbers 등)들이 애드온 코드에서도 비밀 값으로 호출 가능하게 됩니다.
반환 되는 문자열은 비밀 상태를 상속 받게 됩니다.

유닛 식별 정보 접근
던전/인스턴스 내부에서는 유닛 이름, GUID, ID 접근이 모두 비밀 처리되며,
전투 상태와 무관하게 적용됩니다.

대화
여러 C_GossipInfo API에서 상호작용(action) 요구 조건이 제거됩니다.

세력
새로운 이벤트 FACTION_STANDING_CHANGED 가 추가됩니다.
이 이벤트는 비밀이 아닌 세력 ID와 업데이트된 평판 수치를 전달합니다.

비밀 변수
Color, Vector2 같은 mixin 변수를 반환하는 API들이 이제 테이블 전체가 아닌 내부 값만 비밀로 처리됩니다.

텍스처
SetTexture는 더 이상 비밀 문자열을 인자로 받을 수 없습니다.

행동 단축바
여러 전역 ActionBar API가 C_ActionBar로 이동합니다.

공격대 대상 API
SetRaidTarget를 이제 SecureActionButtonTemplate 을 통해 사용할 수 있게 됩니다.

행동 버튼
ActionButton_UpdateCooldown 을 포함해 여러 행동 버튼 관련 API가 개선됩니다.

오라 추적
여러 오라 관련 API를 개선하여, 다음과 같은 변경점을 포함(더 있을 수 있음)합니다:
오라 벡터를 비밀 아닌 값으로 개방하여(하지만 그 안에 비밀값을 가질 수 있는) 전투 중 논리적 연산이 가능토록 합니다.

유닛 파워
UnitPowerDisplayMod 등 유닛 파워 관련 API의 애드온 활용성이 개선됩니다.
UnitHealthMax 및 UnitPowerMax는 플레이어 유닛에 대해서는 비밀 값을 반환하지 않게 됩니다.

주문 시전
UNIT_SPELLCAST 이벤트가 조정되어, 비전투 상태일 때 플레이어 자신의 시전은 비밀로 처리되지 않게 됩니다.

유닛 사망
새로운 유닛 사망 이벤트가 추가됩니다. GUID 페이로드는 쿨다운 및 오라와 동일한 조건에서 비밀 처리됩니다.

원문:
Secret structured tables
APIs that return structured tables as secrets no longer make the entire table secret - just the values inside.
This doesn't apply to events or APIs that return vectors of data (specific cases where this is problematic are being evaluated).
Text to Speech
The C_VoiceChat.SpeakText can now be called with secrets.
Spells
Numerous spell APIs (IsSpellImportant, IsSpellHarmful, IsSpellInRange, etc) can now be called with secrets.
SpellCooldownInfo now contains an end time value.
Added a new GetAuraDurationRemainingByAuraInstanceID API.
Textures
SetRotation can now be called with secrets (this applies a new Rotation Secret Aspect).
SetSpriteSheetCell now only accepts secret cell values up to 256. Yeah, we saw that clever scheming going on 😉
Curve objects
Added a new "curve" Lua object type that will allow various addon functionality with secrets that is not currently possible (see the health bar colors section below for the first use of it).
Health bar colors
Addons can now control the color of health bars using a color curve to specify which percentages to set each color at.
Debug tools
/dump will now print the contents of secret values to the chat frame.
Documentation
Auto-generated documentation for events now includes information on security restrictions for registrations and availability of use with the RegisterEventCallback API. 
Coming soon (Alpha 5 and beyond)
String formatting
Various numeric formatting APIs - including AbbreviateNumbers - will be made callable with secrets by tainted code (returned strings will inherit secret state).
Unit identity access
Access to creature unit names, GUIDs, and IDs will be made secret while in an instance and no longer be based off combat state.
Gossips
We are removing the interactive action requirement on various C_GossipInfo APIs.
Factions
We are adding a new FACTION_STANDING_CHANGED event which passes down a non-secret faction ID and updated standing amount.
Secret mixins
APIs that return mixins (e.g. Color, Vector2) will no longer make the entire table secret - just the values inside.
Textures
SetTexture will no longer accept secret strings.
Action bars
We are moving various global ActionBar APIs into C_ActionBar.
Raid target API
SetRaidTarget will be made usable via SecureActionButtonTemplate.
Action buttons
We will be making various improvements to action button APIs, including (but not limited to) ActionButton_UpdateCooldown.
Aura tracking
We will be making various improvements to aura APIs, including (but not limited to) allowing aura vectors to be non-secret (but contain secrets) so they can be iterated.
Unit power
We will be making improvements to addon capability using unit power APIs (UnitPowerDisplayMod, etc).
UnitHealthMax and UnitPowerMax will no longer return secrets for player units.
Spellcasts
UNIT_SPELLCAST will be adjusted to allow the player's own spellcasts to be non-secret when outside combat.
Unit death
We will be adding an event that gets sent down when a unit dies. The GUID payload will be secret in the same cases cooldowns & auras are secret.

전체적으로 살짝 풀어주려는 움직임입니다. 그리고 일단 힐러들을 살렸네요

Lv12 Fjaoief

모바일 게시판 하단버튼

댓글

새로고침
새로고침

모바일 게시판 하단버튼

지금 뜨는 인벤

더보기+

모바일 게시판 리스트

모바일 게시판 하단버튼

글쓰기

모바일 게시판 페이징

최근 HOT한 콘텐츠

  • 와우
  • 게임
  • IT
  • 유머
  • 연예
AD