Remove deprecated sprite_number property from Sprite and Entity, closes #305
sprite_number was a legacy alias for sprite_index. All code should use sprite_index directly. Removed from getsetters, setProperty/getProperty/ hasProperty in UISprite and UIEntity, animation property handling, and type stubs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
4a3854dac1
commit
c15d836e79
9 changed files with 20 additions and 26 deletions
|
|
@ -417,7 +417,6 @@ class Sprite(Drawable):
|
|||
|
||||
texture: Texture
|
||||
sprite_index: int
|
||||
sprite_number: int # Deprecated alias for sprite_index
|
||||
scale: float
|
||||
w: float # Read-only, computed from texture
|
||||
h: float # Read-only, computed from texture
|
||||
|
|
@ -865,7 +864,6 @@ class Entity(Drawable):
|
|||
grid_y: float
|
||||
texture: Texture
|
||||
sprite_index: int
|
||||
sprite_number: int # Deprecated alias for sprite_index
|
||||
grid: Optional[Grid]
|
||||
|
||||
def at(self, grid_x: float, grid_y: float) -> None:
|
||||
|
|
|
|||
|
|
@ -594,7 +594,6 @@ class Sprite(Drawable):
|
|||
|
||||
texture: Texture
|
||||
sprite_index: int
|
||||
sprite_number: int # Deprecated alias for sprite_index
|
||||
scale: float
|
||||
w: float # Read-only, computed from texture
|
||||
h: float # Read-only, computed from texture
|
||||
|
|
@ -1042,7 +1041,6 @@ class Entity(Drawable):
|
|||
grid_y: float
|
||||
texture: Texture
|
||||
sprite_index: int
|
||||
sprite_number: int # Deprecated alias for sprite_index
|
||||
grid: Optional[Grid]
|
||||
|
||||
def at(self, grid_x: float, grid_y: float) -> None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue