35 lines
937 B
GDScript3
35 lines
937 B
GDScript3
|
|
extends SQLiteObject
|
||
|
|
class_name Chatter
|
||
|
|
|
||
|
|
enum ChatterLevel
|
||
|
|
{
|
||
|
|
NEW,
|
||
|
|
NORMAL,
|
||
|
|
REGULAR,
|
||
|
|
DEVOTEE,
|
||
|
|
VIP,
|
||
|
|
MOD,
|
||
|
|
STREAMER
|
||
|
|
}
|
||
|
|
|
||
|
|
@export var id: int
|
||
|
|
@export var twitch_id: String
|
||
|
|
@export var nickname: String = ""
|
||
|
|
@export var known_engine: String = ""
|
||
|
|
@export var game_lists: Dictionary[String, String] = {}
|
||
|
|
@export var is_indie_game_dev: bool = false
|
||
|
|
@export var is_on_team: bool = false
|
||
|
|
@export var level: ChatterLevel = ChatterLevel.NEW
|
||
|
|
@export var auto_shoutout: bool = false
|
||
|
|
@export var shoutout_as_devteam: bool = false
|
||
|
|
@export var notes: String = ""
|
||
|
|
@export var scores: Dictionary[String, int] = {}
|
||
|
|
@export var extra_data: Dictionary[String, Variant] = {}
|
||
|
|
@export var first_seen: float = 0.0
|
||
|
|
@export var last_seen: float = 0.0
|
||
|
|
|
||
|
|
static func _setup() -> void:
|
||
|
|
set_table_name(Chatter, "chatters")
|
||
|
|
set_column_flags(Chatter, "id", Flags.PRIMARY_KEY|Flags.AUTO_INCREMENT|Flags.NOT_NULL)
|
||
|
|
set_column_flags(Chatter, "twitch_id", Flags.NOT_NULL)
|