Survivalcraft API 1.8.2.3
v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
BoxHumanReadableConverter.cs
浏览该文件的文档.
1
namespace
Engine.Serialization
{
2
[
HumanReadableConverter
(typeof(Box))]
3
public
class
BoxHumanReadableConverter
:
IHumanReadableConverter
{
4
public
string
ConvertToString
(
object
value) {
5
Box
box = (
Box
)value;
6
return
HumanReadableConverter
.ValuesListToString(
7
','
,
8
box.
Left
,
9
box.
Top
,
10
box.
Near
,
11
box.
Width
,
12
box.
Height
,
13
box.
Depth
14
);
15
}
16
17
public
object
ConvertFromString
(Type type,
string
data) {
18
int
[] array =
HumanReadableConverter
.ValuesListFromString<
int
>(
','
, data);
19
return
array.Length == 6 ? (object)
new
Box
(array[0], array[1], array[2], array[3], array[4], array[5]) :
throw
new
Exception();
20
}
21
}
22
}
Engine.Serialization.BoxHumanReadableConverter
定义
BoxHumanReadableConverter.cs:3
Engine.Serialization.BoxHumanReadableConverter.ConvertFromString
object ConvertFromString(Type type, string data)
定义
BoxHumanReadableConverter.cs:17
Engine.Serialization.BoxHumanReadableConverter.ConvertToString
string ConvertToString(object value)
定义
BoxHumanReadableConverter.cs:4
Engine.Serialization.HumanReadableConverter
定义
HumanReadableConverter.cs:5
Engine.Serialization.IHumanReadableConverter
定义
IHumanReadableConverter.cs:2
Engine.Serialization
定义
Archive.cs:4
Engine.Box
定义
Box.cs:2
Engine.Box.Height
int Height
定义
Box.cs:11
Engine.Box.Depth
int Depth
定义
Box.cs:13
Engine.Box.Width
int Width
定义
Box.cs:9
Engine.Box.Left
int Left
定义
Box.cs:3
Engine.Box.Near
int Near
定义
Box.cs:7
Engine.Box.Top
int Top
定义
Box.cs:5
SurvivalcraftApi 1.8.2.3
Engine
Engine.Serialization
BoxHumanReadableConverter.cs
制作者
1.16.1