Survivalcraft API 1.8.2.3
v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
Point2HumanReadableConverter.cs
浏览该文件的文档.
1
namespace
Engine.Serialization
{
2
[
HumanReadableConverter
(typeof(Point2))]
3
public
class
Point2HumanReadableConverter
:
IHumanReadableConverter
{
4
public
string
ConvertToString
(
object
value) {
5
Point2
point = (
Point2
)value;
6
return
HumanReadableConverter
.ValuesListToString(
','
, point.
X
, point.
Y
);
7
}
8
9
public
object
ConvertFromString
(Type type,
string
data) {
10
int
[] array =
HumanReadableConverter
.ValuesListFromString<
int
>(
','
, data);
11
return
array.Length == 2 ? (object)
new
Point2
(array[0], array[1]) :
throw
new
Exception();
12
}
13
}
14
}
Engine.Serialization.HumanReadableConverter
定义
HumanReadableConverter.cs:5
Engine.Serialization.Point2HumanReadableConverter
定义
Point2HumanReadableConverter.cs:3
Engine.Serialization.Point2HumanReadableConverter.ConvertFromString
object ConvertFromString(Type type, string data)
定义
Point2HumanReadableConverter.cs:9
Engine.Serialization.Point2HumanReadableConverter.ConvertToString
string ConvertToString(object value)
定义
Point2HumanReadableConverter.cs:4
Engine.Serialization.IHumanReadableConverter
定义
IHumanReadableConverter.cs:2
Engine.Serialization
定义
Archive.cs:4
Engine.Point2
定义
Point2.cs:2
Engine.Point2.Y
int Y
定义
Point2.cs:5
Engine.Point2.X
int X
定义
Point2.cs:3
SurvivalcraftApi 1.8.2.3
Engine
Engine.Serialization
Point2HumanReadableConverter.cs
制作者
1.16.1