public LogBaronOrPirate(string serialized, ILogParserHelper parseHelper) { Deserialize(serialized); StartTile = parseHelper.GetTile(StartTileIndex, GameIndex); TargetTile = parseHelper.GetTile(TargetTileIndex, GameIndex); SourcePlayer = parseHelper.GetPlayerData(SourcePlayerIndex); if (TargetPlayerIndex != -1) { TargetPlayer = parseHelper.GetPlayerData(TargetPlayerIndex); } }
public LogBuildingUpdate(string s, ILogParserHelper parseHelper) { Deserialize(s); Building = parseHelper.GetBuilding(BuildingIndex, GameIndex); if (TileIndex != -1) { Tile = parseHelper.GetTile(TileIndex, GameIndex); } }