-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOptionData.cs
More file actions
86 lines (70 loc) · 1.67 KB
/
Copy pathOptionData.cs
File metadata and controls
86 lines (70 loc) · 1.67 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/*
*┌──────────────────────────────────┐
*│ Copyright(C) 2016 by Antiphon.All rights reserved. │
*│ Author:by Locke Xie 2016-12-25 │
*└──────────────────────────────────┘
*
* 功 能: 用户设置&可变参数
* 类 名: OptionData.cs
*
* 修改历史:
*
*
*/
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class OptionData
{
//配置
public struct Configuration
{
}
//基本参数
public struct DataBase
{
public int[] dice_num; //色子数字
public int player_priority; //发牌顺序 顺时针发牌顺序 0从主角开始发牌 1从右家开始发牌 2从对家开始发牌 3从左家开始发牌
public DataBase(int i = 0)
{
dice_num = new int[2] { 6, 6 };
player_priority = 3;
}
}
//用户设置
public struct UserSeting
{
}
}
[Serializable]
public struct MahjongMessage
{
public int status;
public Data data;
public List<ServerException> message;
public Extra extra;
public override string ToString()
{
return JsonUtility.ToJson(this);
}
}
[Serializable]
public class Data
{
}
[Serializable]
public struct ServerException
{
public string code;
public string msg;
public ServerException(string code, string msg)
{
this.code = code;
this.msg = msg;
}
}
[Serializable]
public struct Extra
{
}