本文整理汇总了C#中RoomUser.GetRoom方法的典型用法代码示例。如果您正苦于以下问题:C# RoomUser.GetRoom方法的具体用法?C# RoomUser.GetRoom怎么用?C# RoomUser.GetRoom使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RoomUser
的用法示例。
在下文中一共展示了RoomUser.GetRoom方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: method_87
public void method_87(RoomUser User, bool bool_13, bool bool_14)
{
int num = 0;
try
{
if (User != null)
{
if (User.GetRoom().IsPublic)
{
if (Essential.GetGame().GetRoomManager().ContainsMagicTile(User.GetRoom().Id, User.X, User.Y))
{
MagicTile TaikaLaatta = Essential.GetGame().GetRoomManager().GetMagicTile(User.GetRoom().Id, User.X, User.Y);
if (TaikaLaatta.Action == "WARP")
{
ServerMessage Message = new ServerMessage(Outgoing.RoomForward); // Updated
Message.AppendBoolean(true);
Message.AppendInt32(TaikaLaatta.NextRoomId);
User.GetClient().SendMessage(Message);
if (TaikaLaatta.NextX > 0)
{
User.GetClient().GetHabbo().UsedWarpTile = true;
User.GetClient().GetHabbo().NextRoomId = TaikaLaatta.NextRoomId;
User.GetClient().GetHabbo().NextX = TaikaLaatta.NextX;
User.GetClient().GetHabbo().NextY = TaikaLaatta.NextY;
User.GetClient().GetHabbo().NextZ = TaikaLaatta.NextZ;
User.GetClient().GetHabbo().NextRot = TaikaLaatta.NextRot;
}
}
else if (TaikaLaatta.Action == "REMOVE_SWIM")
{
if (User.Statusses.ContainsKey("swim"))
{
User.Statusses.Remove("swim");
User.UpdateNeeded = true;
}
}
else if (TaikaLaatta.Action == "TAKE_SWIM")
{
if (User.Statusses.ContainsKey("swim"))
{
User.Statusses.Remove("swim");
}
if (User.Statusses.ContainsKey("sign"))
{
User.Statusses.Remove("sign");
}
User.Statusses.Add("swim", "");
User.UpdateNeeded = true;
}
}
}
num = 1;
if (User.IsPet)
{
User.PetData.X = User.X;
User.PetData.Y = User.Y;
User.PetData.Z = User.double_0;
}
else
{
if (User.IsBot)
{
User.RoomBot.x = User.X;
User.RoomBot.y = User.Y;
User.RoomBot.z = User.double_0;
}
else
{
if (User.class34_1 != null && User.RoomUser_0 != null)
{
return;
}
}
}
num = 2;
if (!User.bool_12)
{
User.UpdateNeeded = false;
}
else
{
num = 3;
if (bool_13)
{
num = 4;
if (User.byte_1 > 0)
{
num = 5;
if (User.IsBot)
{
if (this.byte_1[User.X, User.Y] == 0)
{
User.RoomBot.EffectId = -1;
//.........这里部分代码省略.........