Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //_-0aL.Update
- package _-0aL{
- import __AS3__.vec.Vector;
- import _-ZF._-04B;
- import _-ZF._-1-2;
- import com.company.assembleegameclient.util._-0uU;
- import flash.utils.IDataInput;
- import __AS3__.vec.*;
- public class Update extends _-0hX {
- public var tiles_:Vector.<_-04B>;
- public var newObjs_:Vector.<_-1-2>;
- public var drops_:Vector.<int>;
- public function Update(_arg1:uint, _arg2:Function){
- this.tiles_ = new Vector.<_-04B>();
- this.newObjs_ = new Vector.<_-1-2>();
- this.drops_ = new Vector.<int>();
- super(_arg1, _arg2);
- }
- override public function parseFromInput(_arg1:IDataInput):void{
- var _local2:int;
- var _local3:int = _arg1.readShort();
- _local2 = _local3;
- while (_local2 < this.tiles_.length) {
- _-0uU._-eP(this.tiles_[_local2]);
- _local2++;
- };
- this.tiles_.length = Math.min(_local3, this.tiles_.length);
- while (this.tiles_.length < _local3) {
- this.tiles_.push((_-0uU._-yX(_-04B) as _-04B));
- };
- _local2 = 0;
- while (_local2 < _local3) {
- this.tiles_[_local2].parseFromInput(_arg1);
- _local2++;
- };
- this.newObjs_.length = 0;
- _local3 = _arg1.readShort();
- _local2 = _local3;
- while (_local2 < this.newObjs_.length) {
- _-0uU._-eP(this.newObjs_[_local2]);
- _local2++;
- };
- this.newObjs_.length = Math.min(_local3, this.newObjs_.length);
- while (this.newObjs_.length < _local3) {
- this.newObjs_.push((_-0uU._-yX(_-1-2) as _-1-2));
- };
- _local2 = 0;
- while (_local2 < _local3) {
- this.newObjs_[_local2].parseFromInput(_arg1);
- _local2++;
- };
- this.drops_.length = 0;
- var _local4:int = _arg1.readShort();
- _local2 = 0;
- while (_local2 < _local4) {
- this.drops_.push(_arg1.readInt());
- _local2++;
- };
- }
- override public function toString():String{
- return (formatToString("UPDATE", "tiles_", "newObjs_", "drops_"));
- }
- }
- //------------------------------------------------------------
- //_-ZF._-04B
- package _-ZF{
- import flash.utils.IDataInput;
- public class _-04B {
- public var x_:int;
- public var y_:int;
- public var type_:uint;
- public function parseFromInput(_arg1:IDataInput):void{
- this.x_ = _arg1.readShort();
- this.y_ = _arg1.readShort();
- this.type_ = _arg1.readShort();
- }
- public function toString():String{
- return (((((("x_: " + this.x_) + " y_: ") + this.y_) + " type_:") + this.type_));
- }
- }
- }//package _-ZF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement