using System.Collections;
using System.Collections.Generic;
using GameAnvil;
using UnityEngine;

public class ConstantManager : MonoBehaviour
{
    private GameAnvilConnectorTester connectorTester;
    private GameAnvilManagerTester managerTester;
    
    public static string ip = "127.0.0.1";
    public static int port = 18200;
    [Space]
    public static string accountId = "test";
    public static string password = "test";
    public static string deviceId = "test";
    [Space]
    public static string serviceName = "Sync";
    public static int subId = 1;
    [Space]
    public static string userType = "USER_TYPE_SYNC";
    public static string channelId = "";
    [Space]
    public static string roomType = "ROOM_TYPE_SYNC";
    [Space]
    public static string echoReqMessage = "Echo Test Message";
    
    void Start()
    {
        connectorTester = GetComponent<GameAnvilConnectorTester>();

        connectorTester.host = ip;
        connectorTester.port = port;

        connectorTester.accountId = accountId;
        connectorTester.password = password;
        connectorTester.deviceId = deviceId;

        connectorTester.echoReqMessage = echoReqMessage;
        
        connectorTester.serviceName = serviceName;
        connectorTester.subId = subId;

        connectorTester.userType = userType;
        connectorTester.channelId = channelId;

        connectorTester.roomType = roomType;

        managerTester = GetComponent<GameAnvilManagerTester>();
        
        managerTester.managerIp = ip;
        managerTester.managerPort = port;
        managerTester.managerAccountId = accountId;
        managerTester.managerPassword = password;
        managerTester.managerDeviceId = deviceId;
        managerTester.managerServiceName = serviceName;
        managerTester.managerUserType = userType;
        managerTester.managerChannelId = channelId;

        managerTester.managerRoomType = roomType;
    }
}
