shine-runners-test/addons/very-simple-twitch/emote_location.gd
2025-04-21 00:17:07 +10:00

15 lines
292 B
GDScript

class_name VSTEmoteLocation
extends RefCounted
var id : String
var start : int
var end : int
func _init(emote_id, start_idx, end_idx):
self.id = emote_id
self.start = start_idx
self.end = end_idx
static func smaller(a: VSTEmoteLocation, b: VSTEmoteLocation):
return a.start < b.start