Ejemplo n.º 1
0
        public MultiTileComponent(CoreObject part)
        {
            this.name         = part.name;
            this.description  = part.description;
            this.TextureSheet = part.getExtendedTexture();
            if (part.animationManager != null)
            {
                this.animationManager = part.animationManager;
            }
            this.defaultBoundingBox = new Rectangle(0, 0, 16, 16);
            this.boundingBox.Value  = new Rectangle((int)0 * Game1.tileSize, (int)0 * Game1.tileSize, 1 * Game1.tileSize, 1 * Game1.tileSize);


            this.NetFields.AddField(new NetCode.NetTexture2DExtended(this.getExtendedTexture()));

            this.InitializeBasics(0, Vector2.Zero);
        }