C# 클래스 Protogame.CompiledAssetSerializer

This is a Protobuf serializer that serializes and deserializes the CompiledAsset class.
This code is generated from the precompile tool, decompiled with ILSpy and copied back into the Protogame code base. This is done so that we can serialize and deserialize on mobile platforms and so that we don't introduce a new DLL from the result of precompile. If the structure of CompiledAsset, PlatformData or TargetPlatform ever changes, this code will need to be regenerated.
상속: ProtoBuf.Meta.TypeModel
파일 보기 프로젝트 열기: RedpointGames/Protogame 1 사용 예제들

보호된 메소드들

메소드 설명
Deserialize ( int num, object obj, ProtoBuf.ProtoReader protoReader ) : object

The deserialize.

GetKeyImpl ( Type value ) : int

The get key impl.

Serialize ( int num, object obj, ProtoWriter protoWriter ) : void

The serialize.

비공개 메소드들

메소드 설명
Read ( CompiledAsset compiledAsset, ProtoBuf.ProtoReader protoReader ) : CompiledAsset

The read.

Read ( PlatformData platformData, ProtoBuf.ProtoReader protoReader ) : PlatformData

The read.

Read ( TargetPlatform targetPlatform, ProtoBuf.ProtoReader protoReader ) : TargetPlatform

The read.

Write ( CompiledAsset compiledAsset, ProtoWriter protoWriter ) : void

The write.

Write ( PlatformData platformData, ProtoWriter writer ) : void

The write.

Write ( TargetPlatform targetPlatform, ProtoWriter writer ) : void

The write.

_2 ( object obj, ProtoBuf.ProtoReader protoReader ) : object

The _2.

메소드 상세

Deserialize() 보호된 메소드

The deserialize.
protected Deserialize ( int num, object obj, ProtoBuf.ProtoReader protoReader ) : object
num int /// The num. ///
obj object /// The obj. ///
protoReader ProtoBuf.ProtoReader /// The proto reader. ///
리턴 object

GetKeyImpl() 보호된 메소드

The get key impl.
protected GetKeyImpl ( Type value ) : int
value System.Type /// The value. ///
리턴 int

Serialize() 보호된 메소드

The serialize.
protected Serialize ( int num, object obj, ProtoWriter protoWriter ) : void
num int /// The num. ///
obj object /// The obj. ///
protoWriter ProtoBuf.ProtoWriter /// The proto writer. ///
리턴 void