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