Example #1
0
        public override void Deserialize(byte[] array)
        {
            var shift = 0;
            var idMsg = NetworkBinary.Deserialize <ObjectSpawnMessage>(array, ref shift);

            Id       = idMsg.Id;
            AssetId  = idMsg.AssetId;
            SceneId  = idMsg.SceneId;
            Position = idMsg.Position;
            Rotation = idMsg.Rotation;
        }
Example #2
0
 public bool Equals(NetworkHash128 other)
 {
     return(i0 == other.i0 &&
            i1 == other.i1 &&
            i2 == other.i2 &&
            i3 == other.i3 &&
            i4 == other.i4 &&
            i5 == other.i5 &&
            i6 == other.i6 &&
            i7 == other.i7 &&
            i8 == other.i8 &&
            i9 == other.i9 &&
            i10 == other.i10 &&
            i11 == other.i11 &&
            i12 == other.i12 &&
            i13 == other.i13 &&
            i14 == other.i14 &&
            i15 == other.i15);
 }