Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private function updateModel(k:IRoomObjectModel, _arg_2:Number, _arg_3:Boolean):Boolean
- {
- var _local_4:Boolean;
- var _local_5:Boolean;
- var _local_6:int;
- var _local_7:String;
- var _local_8:IAvatarAddition;
- var _local_9:String;
- if (k._Str_3273() != _Str_3603)
- {
- _local_4 = false;
- _local_5 = false;
- _local_6 = 0;
- _local_7 = "";
- _local_5 = ((k.getNumber(RoomObjectVariableEnum.FIGURE_TALK) > 0) && (_arg_3));
- if (_local_5 != this._Str_18190)
- {
- this._Str_18190 = _local_5;
- _local_4 = true;
- }
- _local_6 = k.getNumber(RoomObjectVariableEnum.FIGURE_EXPRESSION);
- if (_local_6 != this._Str_5043)
- {
- this._Str_5043 = _local_6;
- _local_4 = true;
- }
- _local_5 = (k.getNumber(RoomObjectVariableEnum.FIGURE_SLEEP) > 0);
- if (_local_5 != this._Str_6061)
- {
- this._Str_6061 = _local_5;
- _local_4 = true;
- }
- _local_5 = ((k.getNumber(RoomObjectVariableEnum.FIGURE_BLINK) > 0) && (_arg_3));
- if (_local_5 != this._Str_13515)
- {
- this._Str_13515 = _local_5;
- _local_4 = true;
- }
- _local_6 = k.getNumber(RoomObjectVariableEnum.FIGURE_GESTURE);
- if (_local_6 != this._Str_3760)
- {
- this._Str_3760 = _local_6;
- _local_4 = true;
- }
- _local_7 = k.getString(RoomObjectVariableEnum.FIGURE_POSTURE);
- if (_local_7 != this._posture)
- {
- this._posture = _local_7;
- _local_4 = true;
- }
- _local_7 = k.getString(RoomObjectVariableEnum.FIGURE_POSTURE_PARAMETER);
- if (_local_7 != this._Str_13611)
- {
- this._Str_13611 = _local_7;
- _local_4 = true;
- }
- _local_5 = (k.getNumber(RoomObjectVariableEnum.FIGURE_CAN_STAND_UP) > 0);
- if (_local_5 != this._Str_6643)
- {
- this._Str_6643 = _local_5;
- _local_4 = true;
- }
- _local_6 = (k.getNumber(RoomObjectVariableEnum.FIGURE_VERTICAL_OFFSET) * _Str_12370);
- if (_local_6 != this._Str_7508)
- {
- this._Str_7508 = _local_6;
- _local_4 = true;
- }
- _local_6 = k.getNumber(RoomObjectVariableEnum.FIGURE_DANCE);
- if (_local_6 != this._Str_4384)
- {
- this._Str_4384 = _local_6;
- _local_4 = true;
- }
- _local_6 = k.getNumber(RoomObjectVariableEnum.FIGURE_EFFECT);
- if (_local_6 != this._Str_5192)
- {
- this._Str_5192 = _local_6;
- _local_4 = true;
- }
- _local_6 = k.getNumber(RoomObjectVariableEnum.FIGURE_CARRY_OBJECT);
- if (_local_6 != this._Str_7562)
- {
- this._Str_7562 = _local_6;
- _local_4 = true;
- }
- _local_6 = k.getNumber(RoomObjectVariableEnum.FIGURE_USE_OBJECT);
- if (_local_6 != this._Str_6928)
- {
- this._Str_6928 = _local_6;
- _local_4 = true;
- }
- _local_6 = k.getNumber(RoomObjectVariableEnum.HEAD_DIRECTION);
- if (_local_6 != this._Str_16644)
- {
- this._Str_16644 = _local_6;
- _local_4 = true;
- }
- if (((this._Str_7562 > 0) && (k.getNumber(RoomObjectVariableEnum.FIGURE_USE_OBJECT) > 0)))
- {
- if (this._Str_6928 != this._Str_7562)
- {
- this._Str_6928 = this._Str_7562;
- _local_4 = true;
- }
- }
- else
- {
- if (this._Str_6928 != 0)
- {
- this._Str_6928 = 0;
- _local_4 = true;
- }
- }
- _local_8 = (this._Str_6142(_Str_12269) as FloatingIdleZ);
- if (this._Str_6061)
- {
- if (!_local_8)
- {
- _local_8 = this._Str_8211(new FloatingIdleZ(_Str_12269, this));
- }
- _local_4 = true;
- }
- else
- {
- if (_local_8)
- {
- this._Str_5801(_Str_12269);
- }
- }
- _local_5 = (k.getNumber(RoomObjectVariableEnum.FIGURE_IS_MUTED) > 0);
- _local_8 = (this._Str_6142(_Str_10168) as MutedBubble);
- if (_local_5)
- {
- if (!_local_8)
- {
- _local_8 = this._Str_8211(new MutedBubble(_Str_10168, this));
- }
- this._Str_5801(_Str_7651);
- _local_4 = true;
- }
- else
- {
- if (_local_8)
- {
- this._Str_5801(_Str_10168);
- _local_4 = true;
- }
- _local_5 = (k.getNumber(RoomObjectVariableEnum.FIGURE_IS_TYPING) > 0);
- _local_8 = (this._Str_6142(_Str_7651) as TypingBubble);
- if (_local_5)
- {
- if (!_local_8)
- {
- _local_8 = this._Str_8211(new TypingBubble(_Str_7651, this));
- }
- _local_4 = true;
- }
- else
- {
- if (_local_8)
- {
- this._Str_5801(_Str_7651);
- }
- }
- }
- _local_6 = k.getNumber(RoomObjectVariableEnum.FIGURE_GUIDE_STATUS);
- if (_local_6 != AvatarGuideStatus.NONE)
- {
- this._Str_5801(_Str_8837);
- this._Str_8211(new GuideStatusBubble(_Str_8837, this, _local_6));
- _local_4 = true;
- }
- else
- {
- if ((this._Str_6142(_Str_8837) as GuideStatusBubble) != null)
- {
- this._Str_5801(_Str_8837);
- _local_4 = true;
- }
- }
- _local_5 = (k.getNumber(RoomObjectVariableEnum.FIGURE_IS_PLAYING_GAME) > 0);
- _local_8 = (this._Str_6142(_Str_11164) as GameClickTarget);
- if (_local_5)
- {
- if (!_local_8)
- {
- _local_8 = this._Str_8211(new GameClickTarget(_Str_11164));
- }
- _local_4 = true;
- }
- else
- {
- if (_local_8)
- {
- this._Str_5801(_Str_11164);
- }
- }
- _local_6 = k.getNumber(RoomObjectVariableEnum.FIGURE_NUMBER_VALUE);
- _local_8 = (this._Str_6142(_Str_10054) as NumberBubble);
- if (_local_6 > 0)
- {
- if (!_local_8)
- {
- _local_8 = this._Str_8211(new NumberBubble(_Str_10054, _local_6, this));
- }
- _local_4 = true;
- }
- else
- {
- if (_local_8)
- {
- this._Str_5801(_Str_10054);
- }
- }
- _local_6 = k.getNumber(RoomObjectVariableEnum.FIGURE_EXPRESSION);
- _local_8 = this._Str_6142(_Str_10546);
- if (_local_6 > 0)
- {
- if (!_local_8)
- {
- _local_8 = ExpressionAdditionFactory._Str_24515(_Str_10546, _local_6, this);
- if (_local_8)
- {
- this._Str_8211(_local_8);
- }
- }
- }
- else
- {
- if (_local_8)
- {
- this._Str_5801(_Str_10546);
- }
- }
- this._Str_14314(_arg_2);
- _local_7 = k.getString(RoomObjectVariableEnum.GENDER);
- if (_local_7 != this._Str_625)
- {
- this._Str_625 = _local_7;
- _local_4 = true;
- }
- _local_9 = k.getString(RoomObjectVariableEnum.FIGURE);
- if (this.updateFigure(_local_9))
- {
- _local_4 = true;
- }
- if (k.hasNumber(RoomObjectVariableEnum.FIGURE_SIGN))
- {
- _local_6 = k.getNumber(RoomObjectVariableEnum.FIGURE_SIGN);
- if (_local_6 != this._Str_7434)
- {
- _local_4 = true;
- this._Str_7434 = _local_6;
- }
- }
- _local_5 = (k.getNumber(RoomObjectVariableEnum.FIGURE_HIGHLIGHT_ENABLE) > 0);
- if (_local_5 != this._Str_17713)
- {
- this._Str_17713 = _local_5;
- _local_4 = true;
- }
- if (this._Str_17713)
- {
- _local_6 = k.getNumber(RoomObjectVariableEnum.FIGURE_HIGHLIGHT);
- if (_local_6 != this._Str_21309)
- {
- this._Str_21309 = _local_6;
- _local_4 = true;
- }
- }
- _local_5 = (k.getNumber(RoomObjectVariableEnum.OWN_USER) > 0);
- if (_local_5 != this._Str_16138)
- {
- this._Str_16138 = _local_5;
- _local_4 = true;
- }
- _Str_3603 = k._Str_3273();
- return _local_4;
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement