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]; }
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; }
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); }