public override int GetHashCode() { int hash = 1; if (Key.Length != 0) { hash ^= Key.GetHashCode(); } if (Type != 0) { hash ^= Type.GetHashCode(); } if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (RoomKey.Length != 0) { hash ^= RoomKey.GetHashCode(); } if (Msg.Length != 0) { hash ^= Msg.GetHashCode(); } if (BeginPoint != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(BeginPoint); } if (EndPoint != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(EndPoint); } if (PenSize != 0) { hash ^= PenSize.GetHashCode(); } if (Color != 0) { hash ^= Color.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public Point3d world_position; // World space coordinates of the lower-left hand corner (min corner) #endregion Fields #region Constructors public Room(RoomKey rk) { room_key = rk; random_seed = rk.GetHashCode(); world_position.Set( (float)room_key.x * WorldConstants.ROOM_X_SIZE, (float)room_key.y * WorldConstants.ROOM_Y_SIZE, (float)room_key.z * WorldConstants.ROOM_Z_SIZE); portalRoomSideBitmask = new TypedFlags<MathConstants.eSignedDirection>(); connectivity_id= -1; portals = new List<Portal>(); mobSpawners = new List<MobSpawner>(); static_room_data = new StaticRoomData(); static_room_data.room_template_name = ""; static_room_data.objects = null; runtime_nav_mesh = new NavMesh(); }
public Room(RoomKey rk) { room_key = rk; random_seed = rk.GetHashCode(); world_position.Set( (float)room_key.x * WorldConstants.ROOM_X_SIZE, (float)room_key.y * WorldConstants.ROOM_Y_SIZE, (float)room_key.z * WorldConstants.ROOM_Z_SIZE); portalRoomSideBitmask = new TypedFlags <MathConstants.eSignedDirection>(); connectivity_id = -1; portals = new List <Portal>(); mobSpawners = new List <MobSpawner>(); static_room_data = new StaticRoomData(); static_room_data.room_template_name = ""; static_room_data.objects = null; runtime_nav_mesh = new NavMesh(); }
public override int GetHashCode() { int hash = 1; if (Key.Length != 0) { hash ^= Key.GetHashCode(); } if (Type != 0) { hash ^= Type.GetHashCode(); } if (Broadcast != false) { hash ^= Broadcast.GetHashCode(); } if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (Avatar.Length != 0) { hash ^= Avatar.GetHashCode(); } if (Seat != 0) { hash ^= Seat.GetHashCode(); } if (RoomKey.Length != 0) { hash ^= RoomKey.GetHashCode(); } if (RoomName.Length != 0) { hash ^= RoomName.GetHashCode(); } if (Message.Length != 0) { hash ^= Message.GetHashCode(); } if (BeginPoint != 0D) { hash ^= BeginPoint.GetHashCode(); } if (EndPoint != 0D) { hash ^= EndPoint.GetHashCode(); } if (PenSize != 0) { hash ^= PenSize.GetHashCode(); } if (Color != 0) { hash ^= Color.GetHashCode(); } hash ^= users_.GetHashCode(); hash ^= rooms_.GetHashCode(); if (Code != 0) { hash ^= Code.GetHashCode(); } if (Error.Length != 0) { hash ^= Error.GetHashCode(); } if (Id != 0) { hash ^= Id.GetHashCode(); } return(hash); }