本文整理汇总了C#中GoldTree.Messages.ServerMessage.AppendByte方法的典型用法代码示例。如果您正苦于以下问题:C# ServerMessage.AppendByte方法的具体用法?C# ServerMessage.AppendByte怎么用?C# ServerMessage.AppendByte使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GoldTree.Messages.ServerMessage
的用法示例。
在下文中一共展示了ServerMessage.AppendByte方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnTrigger
public override void OnTrigger(GameClient Session, RoomItem RoomItem_0, int int_0, bool bool_0)
{
Room @class = RoomItem_0.method_8();
RoomUser class2 = @class.GetRoomUserByHabbo(Session.GetHabbo().Id);
if (class2 != null && @class != null)
{
ThreeDCoord gstruct1_ = new ThreeDCoord(RoomItem_0.Int32_0 + 1, RoomItem_0.Int32_1);
ThreeDCoord gstruct1_2 = new ThreeDCoord(RoomItem_0.Int32_0 - 1, RoomItem_0.Int32_1);
ThreeDCoord gstruct1_3 = new ThreeDCoord(RoomItem_0.Int32_0, RoomItem_0.Int32_1 + 1);
ThreeDCoord gstruct1_4 = new ThreeDCoord(RoomItem_0.Int32_0, RoomItem_0.Int32_1 - 1);
if (ThreeDCoord.smethod_1(class2.GStruct1_0, gstruct1_) && ThreeDCoord.smethod_1(class2.GStruct1_0, gstruct1_2) && ThreeDCoord.smethod_1(class2.GStruct1_0, gstruct1_3) && ThreeDCoord.smethod_1(class2.GStruct1_0, gstruct1_4))
{
if (class2.bool_0)
{
class2.method_4(RoomItem_0.GStruct1_0);
}
}
else
{
int num = RoomItem_0.Int32_0;
int num2 = RoomItem_0.Int32_1;
if (ThreeDCoord.smethod_0(class2.GStruct1_0, gstruct1_))
{
num = RoomItem_0.Int32_0 - 1;
num2 = RoomItem_0.Int32_1;
}
else
{
if (ThreeDCoord.smethod_0(class2.GStruct1_0, gstruct1_2))
{
num = RoomItem_0.Int32_0 + 1;
num2 = RoomItem_0.Int32_1;
}
else
{
if (ThreeDCoord.smethod_0(class2.GStruct1_0, gstruct1_3))
{
num = RoomItem_0.Int32_0;
num2 = RoomItem_0.Int32_1 - 1;
}
else
{
if (ThreeDCoord.smethod_0(class2.GStruct1_0, gstruct1_4))
{
num = RoomItem_0.Int32_0;
num2 = RoomItem_0.Int32_1 + 1;
}
}
}
}
if (@class.method_37(num, num2, true, true, true, true, false, false, false))
{
List<RoomItem> list_ = new List<RoomItem>();
list_ = @class.method_93(num, num2);
double double_ = @class.method_84(num, num2, list_);
ServerMessage Message = new ServerMessage(230u);
Message.AppendInt32(RoomItem_0.Int32_0);
Message.AppendInt32(RoomItem_0.Int32_1);
Message.AppendInt32(num);
Message.AppendInt32(num2);
Message.AppendInt32(1);
Message.AppendUInt(RoomItem_0.uint_0);
Message.AppendByte(2);
Message.AppendStringWithBreak(double_.ToString());
Message.AppendString("M");
@class.SendMessage(Message, null);
@class.method_81(RoomItem_0, num, num2, double_);
}
}
}
}