本文整理汇总了C#中RoomUser.method_14方法的典型用法代码示例。如果您正苦于以下问题:C# RoomUser.method_14方法的具体用法?C# RoomUser.method_14怎么用?C# RoomUser.method_14使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RoomUser
的用法示例。
在下文中一共展示了RoomUser.method_14方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddBotToRoom
public RoomUser AddBotToRoom(RoomBot Bot, UserBot UBot)
{
int num = (int)UBot.BotId;
if(num > 500)
{
int i = 500;
while(i > 0)
{
i--;
RoomUser ru = RoomUsers[i];
if (ru == null)
{ num = i; break; }
}
}
RoomUser user = new RoomUser(Convert.ToUInt32(UBot.BotId + 1000), this.Id, this.int_7++, true);
user.int_20 = num;
this.RoomUsers[num] = user;
if (Bot.x > 0 && Bot.y > 0 && Bot.x < this.RoomModel.int_4 && Bot.y < this.RoomModel.int_5)
{
user.method_7(Bot.x, Bot.y, Bot.z);
user.method_9(Bot.Rotation);
}
else
{
Bot.x = this.RoomModel.DoorX;
Bot.y = this.RoomModel.DoorY;
user.method_7(this.RoomModel.DoorX, this.RoomModel.DoorY, this.RoomModel.double_0);
user.method_9(this.RoomModel.int_2);
}
user.RoomBot = Bot;
user.BotAI = Bot.GetBotAI(user.VirtualId);
user.BotAI.Init((int)Bot.Id, user.VirtualId, this.Id);
this.method_87(user, true, true);
user.UpdateNeeded = true;
ServerMessage Message = new ServerMessage(Outgoing.PlaceBot); // P
Message.AppendInt32(1);
user.method_14(Message);
this.SendMessage(Message, null);
user.BotAI.OnSelfEnterRoom();
return user;
}
示例2: method_4
public RoomUser method_4(RoomBot Bot, Pet PetData, uint x = 0)
{
int num;
if (x == 0)
num = this.method_5();
else
num = (int)x;
RoomUser user = new RoomUser(Convert.ToUInt32(num + 1000), this.Id, this.int_7++, true, x);
user.int_20 = num;
this.RoomUsers[num] = user;
if (Bot.x > 0 && Bot.y > 0 && Bot.x < this.RoomModel.int_4 && Bot.y < this.RoomModel.int_5)
{
user.method_7(Bot.x, Bot.y, Bot.z);
user.method_9(Bot.Rotation);
}
else
{
Bot.x = this.RoomModel.DoorX;
Bot.y = this.RoomModel.DoorY;
user.method_7(this.RoomModel.DoorX, this.RoomModel.DoorY, this.RoomModel.double_0);
user.method_9(this.RoomModel.int_2);
}
user.RoomBot = Bot;
user.BotAI = Bot.GetBotAI(user.VirtualId);
if (user.IsPet)
{
user.BotAI.Init((int)Bot.Id, user.VirtualId, this.Id);
user.PetData = PetData;
user.PetData.VirtualId = user.VirtualId;
}
else
{
user.BotAI.Init(-1, user.VirtualId, this.Id);
}
this.method_87(user, true, true);
user.UpdateNeeded = true;
ServerMessage Message = new ServerMessage(Outgoing.SetRoomUser); // P
Message.AppendInt32(1);
user.method_14(Message);
this.SendMessage(Message, null);
user.BotAI.OnSelfEnterRoom();
return user;
}
示例3: method_46
public void method_46(GameClient Session, bool bool_13)
{
RoomUser @class = new RoomUser(Session.GetHabbo().Id, this.Id, this.int_7++, Session.GetHabbo().IsVisible);
if (@class != null && @class.GetClient() != null && @class.GetClient().GetHabbo() != null)
{
if (bool_13 || [email protected]_12)
{
@class.bool_11 = true;
}
else
{
@class.method_7(this.RoomModel.DoorX, this.RoomModel.DoorY, this.RoomModel.double_0);
@class.method_9(this.RoomModel.int_2);
if (this.CheckRights(Session, true))
{
@class.AddStatus("flatctrl", "useradmin");
}
else
{
if (this.method_26(Session))
{
@class.AddStatus("flatctrl", "");
}
}
if ([email protected] && @class.GetClient().GetHabbo().bool_7)
{
RoomItem class2 = this.method_28(@class.GetClient().GetHabbo().uint_5);
if (class2 != null)
{
@class.method_7(class2.GetX, class2.Int32_1, class2.Double_0);
@class.method_9(class2.int_3);
class2.uint_4 = Session.GetHabbo().Id;
class2.ExtraData = "2";
class2.UpdateState(false, true);
}
}
@class.GetClient().GetHabbo().bool_7 = false;
@class.GetClient().GetHabbo().uint_5 = 0u;
ServerMessage Message = new ServerMessage(Outgoing.SetRoomUser); // P
Message.AppendInt32(1);
@class.method_14(Message);
this.SendMessage(Message, null);
}
int num = this.method_5();
@class.int_20 = num;
this.RoomUsers[num] = @class;
if (!bool_13)
{
this.bool_10 = true;
}
Session.GetHabbo().CurrentRoomId = this.Id;
Session.GetHabbo().GetMessenger().method_5(true);
Session.GetHabbo().RoomVisits++;
Session.GetHabbo().CheckRoomEntryAchievements();
Session.GetHabbo().SendToRoom(this.Id);
// Session.SendMessage(Session.GetHabbo().CurrentRoom.RoomModel.RelativeHeightmap(Session.GetHabbo().CurrentRoom));
if (Session.GetHabbo().FavouriteGroup > 0)
{
GroupsManager class3 = Groups.GetGroupById(Session.GetHabbo().FavouriteGroup);
if (class3 != null && !this.list_17.Contains(class3))
{
this.list_17.Add(class3);
ServerMessage Message2 = new ServerMessage(Outgoing.Guilds); // Updated
Message2.AppendInt32(this.list_17.Count);
foreach (GroupsManager current in this.list_17)
{
Message2.AppendInt32(current.Id);
Message2.AppendStringWithBreak(current.Badge);
}
this.SendMessage(Message2, null);
}
}
if (!bool_13)
{
this.method_51();
for (int i = 0; i < this.RoomUsers.Length; i++)
{
RoomUser class4 = this.RoomUsers[i];
if (class4 != null && class4.IsBot)
{
class4.BotAI.OnUserEnterRoom(@class);
}
}
}
ServerMessage RoomCompetition = new ServerMessage(Outgoing.RoomCompetition);
RoomCompetition.AppendBoolean(true);
RoomCompetition.AppendInt32(85);
Session.SendMessage(RoomCompetition);
bool RoomHasPoll = false;
bool UserFilledPoll = false;
using (DatabaseClient dbClient = Essential.GetDatabase().GetClient())
{
if (dbClient.ReadDataRow("SELECT null FROM room_polls WHERE room_id = '" + Session.GetHabbo().CurrentRoomId + "' LIMIT 1") != null)
{
//.........这里部分代码省略.........