pokepurple/addons/twitcher/generated/twitch_user_extension_component_update.gd
Mario Steele c11a4ebbc2 Initial Commit
Initial commit of Code Base.
2025-06-12 14:31:14 -05:00

61 lines
1.7 KiB
GDScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@tool
extends TwitchData
# CLASS GOT AUTOGENERATED DON'T CHANGE MANUALLY. CHANGES CAN BE OVERWRITTEN EASILY.
##
## #/components/schemas/UserExtensionComponentUpdate
class_name TwitchUserExtensionComponentUpdate
## A Boolean value that determines the extensions activation state. If **false**, the user has not configured a component extension.
@export var active: bool:
set(val):
active = val
track_data(&"active", val)
## An ID that identifies the extension.
@export var id: String:
set(val):
id = val
track_data(&"id", val)
## The extensions version.
@export var version: String:
set(val):
version = val
track_data(&"version", val)
## The x-coordinate where the extension is placed.
@export var x: int:
set(val):
x = val
track_data(&"x", val)
## The y-coordinate where the extension is placed.
@export var y: int:
set(val):
y = val
track_data(&"y", val)
var response: BufferedHTTPClient.ResponseData
## Constructor with all required fields.
static func create(_active: bool) -> TwitchUserExtensionComponentUpdate:
var twitch_user_extension_component_update: TwitchUserExtensionComponentUpdate = TwitchUserExtensionComponentUpdate.new()
twitch_user_extension_component_update.active = _active
return twitch_user_extension_component_update
static func from_json(d: Dictionary) -> TwitchUserExtensionComponentUpdate:
var result: TwitchUserExtensionComponentUpdate = TwitchUserExtensionComponentUpdate.new()
if d.get("active", null) != null:
result.active = d["active"]
if d.get("id", null) != null:
result.id = d["id"]
if d.get("version", null) != null:
result.version = d["version"]
if d.get("x", null) != null:
result.x = d["x"]
if d.get("y", null) != null:
result.y = d["y"]
return result