-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathCommon.cs
More file actions
42 lines (38 loc) · 927 Bytes
/
Copy pathCommon.cs
File metadata and controls
42 lines (38 loc) · 927 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CasualCommon
{
/// <summary>
/// 최초 로그인할 서버 주소
/// </summary>
public class Join
{
public static readonly string ipaddr = "127.0.0.1";
public static readonly UInt16 portnum = 20000;
public static readonly UInt32 protocol_ver = 0;
}
/// <summary>
/// 서버 종류
/// </summary>
public enum Server : int
{
Login = 0,
Lobby,
Room
}
public class Common
{
static public async Task<string> ReadLineAsync()
{
var line = await Task.Run(() => Console.ReadLine());
return line;
}
static public void DisplayHelpCommand()
{
Console.WriteLine("/Cmd: q(Quit) h(Help) stat(status info)");
}
}
}