Show / Hide Table of Contents

Class Chunk

Represents a chunk of terrain data

Inheritance
object
Chunk
Implements
IMessage<Chunk>
IEquatable<Chunk>
IDeepCloneable<Chunk>
IBufferMessage
IMessage
Inherited Members
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: TerraProc.Grpc
Assembly: TerraProc.Contracts.dll
Syntax
public sealed class Chunk : IMessage<Chunk>, IEquatable<Chunk>, IDeepCloneable<Chunk>, IBufferMessage, IMessage

Constructors

| Edit this page View Source

Chunk()

Declaration
public Chunk()
| Edit this page View Source

Chunk(Chunk)

Declaration
public Chunk(Chunk other)
Parameters
Type Name Description
Chunk other

Fields

| Edit this page View Source

CoordFieldNumber

Field number for the "coord" field.

Declaration
public const int CoordFieldNumber = 1
Field Value
Type Description
int
| Edit this page View Source

HeightsFieldNumber

Field number for the "heights" field.

Declaration
public const int HeightsFieldNumber = 2
Field Value
Type Description
int
| Edit this page View Source

MaterialsFieldNumber

Field number for the "materials" field.

Declaration
public const int MaterialsFieldNumber = 3
Field Value
Type Description
int

Properties

| Edit this page View Source

Coord

Coordinates of the chunk

Declaration
public ChunkCoords Coord { get; set; }
Property Value
Type Description
ChunkCoords
| Edit this page View Source

Descriptor

Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
Type Description
MessageDescriptor
| Edit this page View Source

Heights

Heights data as a byte array (Little Endian ushort)

Declaration
public ByteString Heights { get; set; }
Property Value
Type Description
ByteString
| Edit this page View Source

Materials

Materials data as a byte array (byte)

Declaration
public ByteString Materials { get; set; }
Property Value
Type Description
ByteString
| Edit this page View Source

Parser

Declaration
public static MessageParser<Chunk> Parser { get; }
Property Value
Type Description
MessageParser<Chunk>

Methods

| Edit this page View Source

CalculateSize()

Calculates the size of this message in Protocol Buffer wire format, in bytes.

Declaration
public int CalculateSize()
Returns
Type Description
int

The number of bytes required to write this message to a coded output stream.

| Edit this page View Source

Clone()

Creates a deep clone of this object.

Declaration
public Chunk Clone()
Returns
Type Description
Chunk

A deep clone of this object.

| Edit this page View Source

Equals(object)

Declaration
public override bool Equals(object other)
Parameters
Type Name Description
object other
Returns
Type Description
bool
Overrides
object.Equals(object)
| Edit this page View Source

Equals(Chunk)

Declaration
public bool Equals(Chunk other)
Parameters
Type Name Description
Chunk other
Returns
Type Description
bool
| Edit this page View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()
| Edit this page View Source

MergeFrom(CodedInputStream)

Merges the data from the specified coded input stream with the current message.

Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Type Name Description
CodedInputStream input
Remarks

See the user guide for precise merge semantics.

| Edit this page View Source

MergeFrom(Chunk)

Merges the given message into this one.

Declaration
public void MergeFrom(Chunk other)
Parameters
Type Name Description
Chunk other
Remarks

See the user guide for precise merge semantics.

| Edit this page View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()
| Edit this page View Source

WriteTo(CodedOutputStream)

Writes the data to the given coded output stream.

Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Type Name Description
CodedOutputStream output

Coded output stream to write the data to. Must not be null.

Implements

Google.Protobuf.IMessage<T>
IEquatable<T>
Google.Protobuf.IDeepCloneable<T>
Google.Protobuf.IBufferMessage
Google.Protobuf.IMessage
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX