Exemplo n.º 1
0
        public virtual void ReadFromSaveGame(VFile savefile, GameBustOutWindow game)
        {
            savefile.Read(out x);
            savefile.Read(out y);
            savefile.Read(out width);
            savefile.Read(out height);

            savefile.Read(out powerup);
            savefile.Read(out isBroken);

            savefile.Read(out int index);
            ent = game.entities[index];
        }
Exemplo n.º 2
0
        public BOEntity(GameBustOutWindow game)
        {
            this.game = game;
            visible   = true;

            materialName = "";
            material     = null;
            width        = height = 8;
            color        = colorWhite;
            powerup      = POWERUP.NONE;

            position.Zero();
            velocity.Zero();

            removed = false;
            fadeOut = false;
        }
Exemplo n.º 3
0
        public virtual void ReadFromSaveGame(VFile savefile, GameBustOutWindow game)
        {
            this.game = game;

            savefile.Read(out visible);

            game.ReadSaveGameString(out materialName, savefile); SetMaterial(materialName);

            savefile.Read(out width);
            savefile.Read(out height);

            savefile.ReadT(out color);
            savefile.ReadT(out position);
            savefile.ReadT(out velocity);

            savefile.Read(out powerup);
            savefile.Read(out removed);
            savefile.Read(out fadeOut);
        }