mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-04-22 12:09:34 +08:00
35 lines
880 B
C#
35 lines
880 B
C#
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();
|
||
}
|
||
}
|