public void Invoke(Session _Session, IncomingPacket _Packet) { int X = _Packet.GetNextInt(); int Y = _Packet.GetNextInt(); System.IOStreamer.AppendLog("x: " + X + "; y: " + Y); }
public void Invoke(Session _Session, IncomingPacket _Packet) { int UserID = _Packet.GetNextInt(); if (UserID != 0) { _Session.Send(new Outgoing.UserProfile(System.UsersManager.GetByID(UserID))); } else { _Session.Send(new Outgoing.UserProfile(_Session.User)); } }
public void Invoke(Session _Session, IncomingPacket _Packet) { int RoomID = _Packet.GetNextInt(); if (_Session.User.RoomID != 0) { Room theOldRoom = System.RoomsManager.GetOrCreateVirtualRoom(_Session.User.RoomID); System.RoomsManager.ExitFromVirtualRoom(_Session.User.RoomID, _Session.User); foreach (User User in theOldRoom.AllUsers) { System.GameSocket.Sessions[User.ConnID].Send(new Outgoing.RoomRemoveUser(_Session.User)); } } _Session.User.UpdateRoomID(RoomID); Room theRoom = System.RoomsManager.GetOrCreateVirtualRoom(RoomID); RoomModel theRoomModel = System.RoomModels.GetByName(theRoom.Model); _Session.User.Position.X = theRoomModel.DoorX; _Session.User.Position.Y = theRoomModel.DoorY; _Session.User.Position.Z = 0; _Session.User.Rotation = theRoomModel.DoorR; _Session.Send(new Outgoing.InitRoom(theRoom)); _Session.Send(new Outgoing.RoomIDAndModel(theRoom)); if (theRoom.Wallpaper != 0) { _Session.Send(new Outgoing.RoomWallpaper(theRoom)); } if (theRoom.Floor != 0) { _Session.Send(new Outgoing.RoomFloor(theRoom)); } _Session.Send(new Outgoing.RoomLandscape(theRoom)); //_Session.Send(new Outgoing.RoomFloorFurni(theRoom)); _Session.Send(new Outgoing.RoomHeightmap(theRoomModel)); _Session.Send(new Outgoing.RoomRelativemap(theRoomModel)); }
public void Invoke(Session _Session, IncomingPacket _Packet) { System.IOStreamer.AppendLog(_Packet.GetNextInt().ToString()); }