示例#1
0
 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);
     }
 }
示例#2
0
 public LogBuildingUpdate(string s, ILogParserHelper parseHelper)
 {
     Deserialize(s);
     Building = parseHelper.GetBuilding(BuildingIndex, GameIndex);
     if (TileIndex != -1)
     {
         Tile = parseHelper.GetTile(TileIndex, GameIndex);
     }
 }