import { IZ64OnlineHelpers } from "@Z64Online/common/lib/IZ64OnlineHelpers" ; import { INetworkPlayer , IPacketHeader } from "modloader64_api/NetworkHandler" ; import { IZ64Clientside } from "../storage/Z64Storage" ; import { IZ64GameMain } from "../types/Types" ; export const enum Z64O_PRIVATE_EVENTS { ASSET_LOOKUP = "ASSET_LOOKUP" , CLIENT_EVENT_DATA_GET = "CLIENT_EVENT_DATA_GET" , SERVER_EVENT_DATA_GET = "SERVER_EVENT_DATA_GET" , CLIENT_WALLET_GET = "CLIENT_WALLET_GET" , CLIENT_WALLET_SET = "CLIENT_WALLET_SET" , CLIENT_UNLOCK_TICKET = "CLIENT_UNLOCK_TICKET" , CLIENT_UNLOCK_DOES_HAVE = "CLIENT_UNLOCK_DOES_HAVE" , MOVED_SCENE_TABLE = "MOVED_SCENE_TABLE" , UPDATE_KEY_HASH = "UPDATE_KEY_HASH" , SERVER_ASSET_DATA_GET = "SERVER_ASSET_DATA_GET" , CLIENT_ASSET_DATA_GET = "CLIENT_ASSET_DATA_GET" , REGISTER_ANIM_BANKS_WITH_COSTUME_MANAGER = "REGISTER_ANIM_BANKS_WITH_COSTUME_MANAGER" , DOING_SYNC_CHECK = "DOING_SYNC_CHECK" , LOCK_ITEM_NOTIFICATIONS = "LOCK_ITEM_NOTIFICATIONS" , SAVE_EXTERNAL_EVENT_DATA = "SAVE_EXTERNAL_EVENT_DATA" , GET_EXTERNAL_EVENT_DATA = "GET_EXTERNAL_EVENT_DATA" , TOGGLE_COSTUME_LOCK = "TOGGLE_COSTUME_LOCK" , SEND_TO_SCENE = "SEND_TO_SCENE" , PRE_OBJECT_LOAD = "PRE_OBJECT_LOAD" , POST_OBJECT_LOAD = "POST_OBJECT_LOAD" , CHANGE_LOCAL_VOLUME = "CHANGE_LOCAL_VOLUME" , CHANGE_REMOTE_VOLUME = "CHANGE_REMOTE_VOLUME" , CLEAR_LINK_MODEL = "CLEAR_LINK_MODEL" , CHANGE_MODEL_INTERNAL = "CHANGE_MODEL_INTERNAL" , LOADED_OVL = "LOADED_OVL" } export class SendToPlayer { packet : IPacketHeader ; player : INetworkPlayer ; constructor ( player , packet ) { this . packet = packet ; this . player = player ; } } export class SendToScene { packet : IPacketHeader ; scene : number ; constructor ( packet , scene ) { this . packet = packet ; this . scene = scene ; } } export interface RewardTicket { name : string ; uuid : string ; event : string ; category : string ; game : string ; scripted : boolean | undefined ; displayname : string ; price : number ; } export class OOTO_PRIVATE_ASSET_LOOKUP_OBJ { uuid : string ; asset ! : Buffer ; ticket ! : RewardTicket ; constructor ( uuid ) { this . uuid = uuid ; } } export class OOTO_PRIVATE_ASSET_HAS_CHECK { ticket : RewardTicket ; has : boolean = false ; constructor ( ticket ) { this . ticket = ticket ; } } export class OOTO_PRIVATE_COIN_LOOKUP_OBJ { coins : number ; constructor ( coins ) { this . coins = coins ; } } export class ExternalEventData { tag : string ; data : any ; constructor ( tag , data ) { this . tag = tag ; this . data = data ; } } export interface IZ64Utility extends IZ64OnlineHelpers , IZ64Clientside { } export interface IZ64Master { OOT : IZ64Utility ; MM : IZ64Utility ; }