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