FunGame-Core/FunGame.Core/Interface/ServerInterface.cs
2022-08-28 15:58:35 +08:00

35 lines
880 B
C#
Raw 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.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FunGame.Core.Interface
{
/**
* 接口需要在FunGame.Core.Implement中创建新的类实现
* 参考:
* using FunGame.Core.Interface;
namespace FunGame.Core.Implement
{
public class ServerInterfaceImpl : ServerInterface
{
public string RemoteServerIP()
{
// 此处修改连接远程服务器IP
string serverIP = "127.0.0.1";
string serverPort = "22222";
return serverIP + ":" + serverPort;
}
}
}
*/
public interface ServerInterface
{
// 实现类ServerInterfaceImpl
public string RemoteServerIP();
}
}