Bricklayer.Common.Networking.Messages.BlockMessage.BlockMessage C# (CSharp) Метод

BlockMessage() публичный Метод

public BlockMessage ( BlockType block, int x, int y, int z ) : Bricklayer.Common.Entities
block Bricklayer.Common.World.BlockType
x int
y int
z int
Результат Bricklayer.Common.Entities
        public BlockMessage(BlockType block, int x, int y, int z)
        {
            if (z > 1) //Throw an exception if the Z is out of range
                throw new System.ArgumentOutOfRangeException("The Z coordinate cannot be more than 1");

            this.BlockID = block.ID;
            this.X = (short)x;
            this.Y = (short)y;
            this.Z = (byte)z;
            this.MessageTime = NetTime.Now;
        }

Same methods

BlockMessage::BlockMessage ( NetIncomingMessage im ) : Bricklayer.Common.Entities