本文整理汇总了C#中GoldTree.Messages.ClientMessage.PopWiredBoolean方法的典型用法代码示例。如果您正苦于以下问题:C# ClientMessage.PopWiredBoolean方法的具体用法?C# ClientMessage.PopWiredBoolean怎么用?C# ClientMessage.PopWiredBoolean使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GoldTree.Messages.ClientMessage
的用法示例。
在下文中一共展示了ClientMessage.PopWiredBoolean方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Handle
public void Handle(GameClient Session, ClientMessage Event)
{
if (Session.GetHabbo().HasFuse("acc_supporttool"))
{
uint uint_ = Event.PopWiredUInt();
bool flag = Event.PopWiredBoolean();
bool flag2 = Event.PopWiredBoolean();
bool flag3 = Event.PopWiredBoolean();
string text = "";
if (flag)
{
text += "Apply Doorbell";
}
if (flag2)
{
text += " Change Name";
}
if (flag3)
{
text += " Kick Users";
}
GoldTree.GetGame().GetClientManager().method_31(Session, "ModTool - Room Action", text);
GoldTree.GetGame().GetModerationTool().method_12(Session, uint_, flag3, flag, flag2);
}
}
示例2: Handle
public void Handle(GameClient Session, ClientMessage Event)
{
uint uint_ = Event.PopWiredUInt();
bool bool_ = Event.PopWiredBoolean();
bool flag = Event.PopWiredBoolean();
RoomData @class = GoldTree.GetGame().GetRoomManager().method_12(uint_);
if (@class != null)
{
ServerMessage Message = new ServerMessage(454u);
Message.AppendBoolean(bool_);
@class.method_3(Message, false, flag);
Message.AppendBoolean(flag);
Message.AppendBoolean(bool_);
Session.SendMessage(Message);
}
}
示例3: Handle
public void Handle(GameClient Session, ClientMessage Event)
{
try
{
Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
uint uint_ = Event.PopWiredUInt();
RoomItem class2 = @class.method_28(uint_);
string text = class2.GetBaseItem().InteractionType.ToLower();
switch (text)
{
case "wf_act_give_phx":
{
Event.PopWiredBoolean();
string text2 = Event.PopFixedString();
text2 = GoldTree.DoFilter(text2, false, true);
text2 = ChatCommandHandler.smethod_4(text2);
if (!(text2 == class2.string_2))
{
string string_ = text2.Split(new char[]
{
':'
})[0].ToLower();
if (GoldTree.GetGame().GetRoleManager().method_12(string_, Session))
{
class2.string_2 = text2;
}
else
{
Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("wired_error_permissions"));
}
}
break;
}
case "wf_cnd_phx":
{
Event.PopWiredBoolean();
string text2 = Event.PopFixedString();
text2 = GoldTree.DoFilter(text2, false, true);
text2 = ChatCommandHandler.smethod_4(text2);
if (!(text2 == class2.string_2))
{
string string_ = text2.Split(new char[]
{
':'
})[0].ToLower();
if (GoldTree.GetGame().GetRoleManager().method_11(string_, Session))
{
class2.string_2 = text2;
}
else
{
Session.GetHabbo().method_28(GoldTreeEnvironment.smethod_1("wired_error_permissions"));
}
}
break;
}
case "wf_act_saymsg":
{
Event.PopWiredBoolean();
string text2 = Event.PopFixedString();
text2 = GoldTree.DoFilter(text2, false, true);
if (text2.Length > 100)
{
text2 = text2.Substring(0, 100);
}
class2.string_2 = text2;
break;
}
case "wf_act_kick_user":
{
Event.PopWiredBoolean();
string text2 = Event.PopFixedString();
text2 = GoldTree.DoFilter(text2, false, true);
if (text2.Length > 200)
{
text2 = text2.Substring(0, 200);
}
class2.string_2 = text2;
break;
}
case "wf_trg_furnistate":
case "wf_trg_onfurni":
case "wf_trg_offfurni":
case "wf_act_moveuser":
case "wf_act_togglefurni":
{
Event.PopWiredBoolean();
Event.PopFixedString();
class2.string_2 = Event.ToString().Substring(Event.Length - (Event.RemainingLength - 2));
class2.string_2 = class2.string_2.Substring(0, class2.string_2.Length - 2);
Event.ResetPointer();
class2 = @class.method_28(Event.PopWiredUInt());
Event.PopWiredBoolean();
Event.PopFixedString();
int num2 = Event.PopWiredInt32();
class2.string_3 = "";
for (int i = 0; i < num2; i++)
{
class2.string_3 = class2.string_3 + "," + Convert.ToString(Event.PopWiredUInt());
}
//.........这里部分代码省略.........
示例4: Handle
public void Handle(GameClient Session, ClientMessage Event)
{
Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
if (@class != null)
{
RoomItem class2 = @class.method_28(Event.PopWiredUInt());
if (class2 != null)
{
string text = class2.GetBaseItem().InteractionType.ToLower();
if (text != null)
{
if (!(text == "wf_trg_onsay"))
{
if (!(text == "wf_trg_enterroom"))
{
if (!(text == "wf_trg_timer"))
{
if (!(text == "wf_trg_attime"))
{
if (text == "wf_trg_atscore")
{
Event.PopWiredBoolean();
string text2 = Event.ToString().Substring(Event.Length - (Event.RemainingLength - 2));
string[] array = text2.Split(new char[]
{
'@'
});
class2.string_3 = array[0];
class2.string_2 = Convert.ToString(Event.PopWiredInt32());
}
if (text != null && (text == "wf_cnd_time_more_than" || text == "wf_cnd_time_less_than"))
{
Event.PopWiredBoolean();
string text2 = Event.ToString().Substring(Event.Length - (Event.RemainingLength - 2));
string[] array = text2.Split(new char[]
{
'@'
});
class2.string_3 = array[0];
class2.string_2 = Convert.ToString(Convert.ToString((double)Event.PopWiredInt32() * 0.5));
}
}
else
{
Event.PopWiredBoolean();
string text2 = Event.ToString().Substring(Event.Length - (Event.RemainingLength - 2));
string[] array = text2.Split(new char[]
{
'@'
});
class2.string_3 = array[0];
class2.string_2 = Convert.ToString(Convert.ToString((double)Event.PopWiredInt32() * 0.5));
}
}
else
{
Event.PopWiredBoolean();
string text2 = Event.ToString().Substring(Event.Length - (Event.RemainingLength - 2));
string[] array = text2.Split(new char[]
{
'@'
});
class2.string_3 = array[0];
class2.string_2 = Convert.ToString(Convert.ToString((double)Event.PopWiredInt32() * 0.5));
}
}
else
{
Event.PopWiredBoolean();
string text3 = Event.PopFixedString();
class2.string_2 = text3;
}
}
else
{
Event.PopWiredBoolean();
bool value = Event.PopWiredBoolean();
string text3 = Event.PopFixedString();
text3 = GoldTree.DoFilter(text3, false, true);
if (text3.Length > 100)
{
text3 = text3.Substring(0, 100);
}
class2.string_2 = text3;
class2.string_3 = Convert.ToString(value);
}
}
class2.UpdateState(true, false);
}
}
}