예제 #1
0
		public IEncodable Decode(BinaryInput stream) {
			this.Name = stream.ReadString();
			this.Unchangeable = stream.ReadBoolean();
			this.Deletable = stream.ReadBoolean();
			this.Texture = stream.ReadTexture();
			return this;
		}
예제 #2
0
 public IEncodable Decode(BinaryInput stream)
 {
     this.Name         = stream.ReadString();
     this.Unchangeable = stream.ReadBoolean();
     this.Deletable    = stream.ReadBoolean();
     this.Texture      = stream.ReadTexture();
     return(this);
 }
예제 #3
0
파일: Tile.cs 프로젝트: Hakua/PokeSharp
		public IEncodable Decode(BinaryInput stream) {
			this.spriteindex = stream.ReadInt32();
			this.collidable = stream.ReadBoolean();
			this.reflecting = stream.ReadBoolean();
			this.animated = stream.ReadBoolean();
			this.frames = stream.ReadInt32();
			this.timeperframe = stream.ReadSingle();
			this.DefaultBehavior = stream.ReadObject<MockupTileBehavior>();

			return this;
		}
예제 #4
0
        public IEncodable Decode(BinaryInput stream)
        {
            this.spriteindex     = stream.ReadInt32();
            this.collidable      = stream.ReadBoolean();
            this.reflecting      = stream.ReadBoolean();
            this.animated        = stream.ReadBoolean();
            this.frames          = stream.ReadInt32();
            this.timeperframe    = stream.ReadSingle();
            this.DefaultBehavior = stream.ReadObject <MockupTileBehavior>();

            return(this);
        }
예제 #5
0
        public override IEncodable Decode(BinaryInput stream)
        {
            base.Decode(stream);
            value = stream.ReadBoolean();

            return(this);
        }
예제 #6
0
        public IEncodable Decode(BinaryInput stream)
        {
            Name = stream.ReadString();
            ID   = stream.ReadInt32();

            EntityType = (EntityType)stream.ReadByte();
            ShadowType = (ShadowType)stream.ReadByte();

            ShadowType = ShadowType.Perspective;

            isSubEntity = stream.ReadBoolean();

            ShadowOffset = stream.ReadInt32();
            stream.ReadInt32();

            CollisionMap = stream.ReadObject <CollisionMap>();
            Texture      = stream.ReadObject <TileableTexture>();

            int c = stream.ReadInt32();

            for (int i = 0; i < c; i++)
            {
                Animations.Add(stream.ReadObject <Animation>());
            }
            return(this);
        }
예제 #7
0
        public override IEncodable Decode(BinaryInput stream)
        {
            base.Decode(stream);

            TemplateID = stream.ReadInt32();
            Collidable = stream.ReadBoolean();

            Shadow = stream.ReadBoolean();

            Rotation = stream.ReadSingle();
            Scale    = stream.ReadSingle();
            Opacity  = stream.ReadSingle();

            TopMost = stream.ReadBoolean();
            Color   = new Color(stream.ReadVector4());

            return(this);
        }
예제 #8
0
        public IEncodable Decode(BinaryInput stream)
        {
            this.Pattern      = (MovementPattern)stream.ReadByte();
            this.Speed        = (MovementSpeed)stream.ReadByte();
            this.Count        = stream.ReadInt16();
            this.CurrentIndex = stream.ReadInt16();
            this.Inverted     = stream.ReadBoolean();
            int c = stream.ReadInt32();

            for (int i = 0; i < c; i++)
            {
                Movements.Add(stream.ReadObject <Movement>());
            }
            return(this);
        }
예제 #9
0
		public IEncodable Decode(BinaryInput stream) {
			Name = stream.ReadString();
			ID = stream.ReadInt32();

			EntityType = (EntityType) stream.ReadByte();
			ShadowType = (ShadowType) stream.ReadByte();

			ShadowType = ShadowType.Perspective;

			isSubEntity = stream.ReadBoolean();

			ShadowOffset = stream.ReadInt32();
			stream.ReadInt32();

			CollisionMap = stream.ReadObject<CollisionMap>();
			Texture = stream.ReadObject<TileableTexture>();

			int c = stream.ReadInt32();
			for (int i = 0; i < c; i++) {
				Animations.Add(stream.ReadObject<Animation>());
			}
			return this;
		}
예제 #10
0
        public virtual IEncodable Decode(BinaryInput stream)
        {
            this.Name      = stream.ReadString();
            this.Deletable = stream.ReadBoolean();

            int c = stream.ReadInt32();

            for (int i = 0; i < c; i++)
            {
                SpriteLibraryDirectory child = stream.ReadObject <SpriteLibraryDirectory>();
                child.Parent = this;
                Directories.Add(child);
            }

            c = stream.ReadInt32();
            for (int i = 0; i < c; i++)
            {
                SpriteLibrarySprite child = stream.ReadObject <SpriteLibrarySprite>();
                child.Parent = this;
                Sprites.Add(child);
            }

            return(this);
        }
예제 #11
0
		public virtual IEncodable Decode(BinaryInput stream) {
			this.Name = stream.ReadString();
			this.Deletable = stream.ReadBoolean();

			int c = stream.ReadInt32();
			for (int i = 0; i < c; i++) {
				SpriteLibraryDirectory child = stream.ReadObject<SpriteLibraryDirectory>();
				child.Parent = this;
				Directories.Add(child);
			}

			c = stream.ReadInt32();
			for (int i = 0; i < c; i++) {
				SpriteLibrarySprite child = stream.ReadObject<SpriteLibrarySprite>();
				child.Parent = this;
				Sprites.Add(child);
			}

			return this;
		}
예제 #12
0
 public ISerializable Deserialize(BinaryInput input)
 {
     ConquerDirectory = input.ReadString();
     Effects          = input.ReadBoolean();
     return(this);
 }
예제 #13
0
		public override IEncodable Decode(BinaryInput stream) {
			base.Decode(stream);

			TemplateID = stream.ReadInt32();
			Collidable = stream.ReadBoolean();

			Shadow = stream.ReadBoolean();

			Rotation = stream.ReadSingle();
			Scale = stream.ReadSingle();
			Opacity = stream.ReadSingle();

			TopMost = stream.ReadBoolean();
			Color = new Color(stream.ReadVector4());

			return this;
		}
예제 #14
0
 public ISerializable Deserialize(BinaryInput input)
 {
     ConquerDirectory = input.ReadString();
     Effects = input.ReadBoolean();
     return this;
 }
예제 #15
0
		public IEncodable Decode(BinaryInput stream) {
			this.Pattern = (MovementPattern) stream.ReadByte();
			this.Speed = (MovementSpeed) stream.ReadByte();
			this.Count = stream.ReadInt16();
			this.CurrentIndex = stream.ReadInt16();
			this.Inverted = stream.ReadBoolean();
			int c = stream.ReadInt32();
			for (int i = 0; i < c; i++) {
				Movements.Add(stream.ReadObject<Movement>());
			}
			return this;
		}