Ejemplo n.º 1
0
 private void method_42(RoomUser RoomUser_1, ThreeDCoord gstruct1_1, uint uint_2, double double_3)
 {
     ServerMessage Message = new ServerMessage();
     Message.Init(230u);
     Message.AppendInt32(RoomUser_1.int_3);
     Message.AppendInt32(RoomUser_1.int_4);
     Message.AppendInt32(gstruct1_1.x);
     Message.AppendInt32(gstruct1_1.y);
     Message.AppendInt32(0);
     Message.AppendUInt(uint_2);
     Message.AppendString("J");
     Message.AppendInt32(RoomUser_1.VirtualId);
     Message.AppendStringWithBreak(RoomUser_1.double_0.ToString().Replace(',', '.'));
     Message.AppendStringWithBreak(double_3.ToString().Replace(',', '.'));
     this.SendMessage(Message, null);
     this.byte_0[RoomUser_1.int_3, RoomUser_1.int_4] = 1;
     RoomUser_1.int_3 = gstruct1_1.x;
     RoomUser_1.int_4 = gstruct1_1.y;
     RoomUser_1.double_0 = double_3;
     RoomUser_1.int_12 = gstruct1_1.x;
     RoomUser_1.int_13 = gstruct1_1.y;
     RoomUser_1.double_1 = double_3;
     RoomUser_1.int_9 = 2;
     this.byte_0[RoomUser_1.int_3, RoomUser_1.int_4] = 0;
     this.method_87(RoomUser_1, false, true);
 }
Ejemplo n.º 2
0
 internal ThreeDCoord method_1(int int_5)
 {
     ThreeDCoord result = new ThreeDCoord(this.int_1, this.int_2);
     if (int_5 == 0)
     {
         result.y++;
     }
     else
     {
         if (int_5 == 2)
         {
             result.x--;
         }
         else
         {
             if (int_5 == 4)
             {
                 result.y--;
             }
             else
             {
                 if (int_5 == 6)
                 {
                     result.x++;
                 }
             }
         }
     }
     return result;
 }
Ejemplo n.º 3
0
 internal void method_4(ThreeDCoord gstruct1_0)
 {
     this.MoveTo(gstruct1_0.x, gstruct1_0.y);
 }
Ejemplo n.º 4
0
 private void method_41(RoomItem RoomItem_0, ThreeDCoord gstruct1_1, uint uint_2, double double_3)
 {
     this.method_40(RoomItem_0, gstruct1_1.x, gstruct1_1.y, uint_2, double_3);
 }
 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_);
             }
         }
     }
 }
Ejemplo n.º 6
0
 public static bool smethod_1(ThreeDCoord a, ThreeDCoord b)
 {
     return(!ThreeDCoord.smethod_0(a, b));
 }
Ejemplo n.º 7
0
 public static bool smethod_0(ThreeDCoord a, ThreeDCoord b)
 {
     return(object.ReferenceEquals(a, b) || ((object)a != null && (object)b != null && a.x == b.x && a.y == b.y));
 }
Ejemplo n.º 8
0
 public static bool smethod_1(ThreeDCoord a, ThreeDCoord b)
 {
     return !ThreeDCoord.smethod_0(a, b);
 }
Ejemplo n.º 9
0
 public static bool smethod_0(ThreeDCoord a, ThreeDCoord b)
 {
     return object.ReferenceEquals(a, b) || ((object)a != null && (object)b != null && a.x == b.x && a.y == b.y);
 }