var searchIndex = {}; searchIndex["vault"] = {"doc":"vault is a fully-featured Company of Heroes 2 replay parser valid for replays created on or\nafter the release of the British forces (version 19545).","items":[[3,"ChatLine","vault","This type represents a single Company of Heroes 2 chat message.",null,null],[12,"tick","","",0,null],[12,"name","","",0,null],[12,"message","","",0,null],[3,"Command","","This type represents a single Company of Heroes 2 player command.",null,null],[12,"player_id","","",1,null],[12,"tick","","",1,null],[12,"command_type","","",1,null],[12,"entity_id","","",1,null],[12,"x","","",1,null],[12,"y","","",1,null],[12,"z","","",1,null],[12,"bytes","","",1,null],[3,"Item","","This type contains a parsed representation of an item that can be equipped in a CoH2 replay.",null,null],[12,"id","","",2,null],[12,"item_type","","",2,null],[3,"Map","","This type represents a Company of Heroes 2 map as presented in a CoH2 replay file.",null,null],[12,"file","","",3,null],[12,"name","","",3,null],[12,"description","","",3,null],[12,"description_long","","",3,null],[12,"width","","",3,null],[12,"height","","",3,null],[12,"players","","",3,null],[3,"Player","","This type represents a Company of Heroes 2 player entity as it appears in a CoH2 replay file.",null,null],[12,"id","","",4,null],[12,"name","","",4,null],[12,"steam_id","","",4,null],[12,"team","","",4,null],[12,"faction","","",4,null],[12,"items","","",4,null],[12,"commands","","",4,null],[12,"cpm","","",4,null],[3,"Replay","","The main Replay type, contains all currently parsed replay data. Can be serialized to JSON for\noutput using rustc_serialize.",null,null],[12,"error","","",5,null],[12,"version","","",5,null],[12,"game_type","","",5,null],[12,"date_time","","",5,null],[12,"map","","",5,null],[12,"players","","",5,null],[12,"duration","","",5,null],[12,"rng_seed","","",5,null],[12,"opponent_type","","",5,null],[12,"chat","","",5,null],[3,"Vault","","This type is the main entry point for the vault replay parser and provides the cleanest\ninterface for use by external code.",null,null],[12,"replays","","",6,null],[4,"CmdType","","This type contains a numerical u8 representation of every command/action possible in a CoH2 command\nsequence. Contents of this enum provided by Relic Entertainment.",null,null],[13,"CMD_DefaultAction","","",7,null],[13,"CMD_Stop","","",7,null],[13,"CMD_Destroy","","",7,null],[13,"CMD_BuildSquad","","",7,null],[13,"CMD_InstantBuildSquad","","",7,null],[13,"CMD_CancelProduction","","",7,null],[13,"CMD_BuildStructure","","",7,null],[13,"CMD_Move","","",7,null],[13,"CMD_Face","","",7,null],[13,"CMD_Attack","","",7,null],[13,"CMD_AttackMove","","",7,null],[13,"CMD_RallyPoint","","",7,null],[13,"CMD_Capture","","",7,null],[13,"CMD_Ability","","",7,null],[13,"CMD_Evacuate","","",7,null],[13,"CMD_Upgrade","","",7,null],[13,"CMD_InstantUpgrade","","",7,null],[13,"CMD_ChooseResource","","",7,null],[13,"CMD_Load","","",7,null],[13,"CMD_Unload","","",7,null],[13,"CMD_UnloadSquads","","",7,null],[13,"CMD_AttackStop","","",7,null],[13,"CMD_AttackForced","","",7,null],[13,"CMD_SetHoldHeading","","",7,null],[13,"CMD_Halt","","",7,null],[13,"CMD_Fidget","","",7,null],[13,"CMD_Paradrop","","",7,null],[13,"CMD_DefuseMine","","",7,null],[13,"CMD_Casualty","","",7,null],[13,"CMD_Death","","",7,null],[13,"CMD_InstantDeath","","",7,null],[13,"CMD_Projectile","","",7,null],[13,"CMD_PlaceCharge","","",7,null],[13,"CMD_BuildEntity","","",7,null],[13,"CMD_RescueCasualty","","",7,null],[13,"CMD_AttackFromHold","","",7,null],[13,"CMD_Vault","","",7,null],[13,"CMD_COUNT","","",7,null],[13,"SCMD_Move","","",7,null],[13,"SCMD_Stop","","",7,null],[13,"SCMD_Destroy","","",7,null],[13,"SCMD_BuildStructure","","",7,null],[13,"SCMD_Capture","","",7,null],[13,"SCMD_Attack","","",7,null],[13,"SCMD_ReinforceUnit","","",7,null],[13,"SCMD_Upgrade","","",7,null],[13,"SCMD_CancelProduction","","",7,null],[13,"SCMD_AttackMove","","",7,null],[13,"SCMD_Ability","","",7,null],[13,"SCMD_Load","","",7,null],[13,"SCMD_InstantLoad","","",7,null],[13,"SCMD_UnloadSquads","","",7,null],[13,"SCMD_Unload","","",7,null],[13,"SCMD_SlotItemRemove","","",7,null],[13,"SCMD_Retreat","","",7,null],[13,"SCMD_CaptureTeamWeapon","","",7,null],[13,"SCMD_SetMoveType","","",7,null],[13,"SCMD_InstantReinforceUnit","","",7,null],[13,"SCMD_InstantUpgrade","","",7,null],[13,"SCMD_SetCamouflageStance","","",7,null],[13,"SCMD_PlaceCharge","","",7,null],[13,"SCMD_DefuseCharge","","",7,null],[13,"SCMD_PickUpSlotItem","","",7,null],[13,"SCMD_DefuseMine","","",7,null],[13,"SCMD_DoPlan","","",7,null],[13,"SCMD_Patrol","","",7,null],[13,"SCMD_Surprise","","",7,null],[13,"SCMD_InstantSetupTeamWeapon","","",7,null],[13,"SCMD_AbandonTeamWeapon","","",7,null],[13,"SCMD_StationaryAttack","","",7,null],[13,"SCMD_RevertFieldSupport","","",7,null],[13,"SCMD_Face","","",7,null],[13,"SCMD_BuildSquad","","",7,null],[13,"SCMD_RallyPoint","","",7,null],[13,"SCMD_RescueCasualty","","",7,null],[13,"SCMD_Recrew","","",7,null],[13,"SCMD_Merge","","",7,null],[13,"SCMD_Pilfer","","",7,null],[13,"SCMD_COUNT","","",7,null],[13,"PCMD_ConstructStructure","","",7,null],[13,"PCMD_ManpowerDonation","","",7,null],[13,"PCMD_FuelDonation","","",7,null],[13,"PCMD_MunitionDonation","","",7,null],[13,"PCMD_CheatResources","","",7,null],[13,"PCMD_CheatRevealAll","","",7,null],[13,"PCMD_CheatKillSelf","","",7,null],[13,"PCMD_Ability","","",7,null],[13,"PCMD_CheatBuildTime","","",7,null],[13,"PCMD_CriticalHit","","",7,null],[13,"PCMD_Upgrade","","",7,null],[13,"PCMD_InstantUpgrade","","",7,null],[13,"PCMD_ConstructFence","","",7,null],[13,"PCMD_ConstructField","","",7,null],[13,"PCMD_UpgradeRemove","","",7,null],[13,"PCMD_SlotItemRemove","","",7,null],[13,"PCMD_CancelProduction","","",7,null],[13,"PCMD_DetonateCharges","","",7,null],[13,"PCMD_AIPlayer","","",7,null],[13,"PCMD_AIPlayer_ObjectiveNotification","","",7,null],[13,"PCMD_SetCommander","","",7,null],[13,"PCMD_Surrender","","",7,null],[13,"PCMD_WaitObjectDone","","",7,null],[13,"PCMD_BroadcastMessage","","",7,null],[13,"PCMD_COUNT","","",7,null],[13,"DCMD_DataCommand1","","",7,null],[13,"DCMD_DataCommand2","","",7,null],[13,"DCMD_COUNT","","",7,null],[4,"Error","","This type contains the various error messages that can be returned from the library.",null,null],[13,"CursorWrap","","",8,null],[13,"CursorOutOfBounds","","",8,null],[13,"FileTooLarge","","",8,null],[13,"EmptyChar","","",8,null],[13,"InvalidFileExtension","","",8,null],[13,"UnexpectedValue","","",8,null],[13,"UnsupportedVersion","","",8,null],[13,"UnsupportedChunkVersion","","",8,null],[13,"IoError","","",8,null],[13,"Utf8Error","","",8,null],[13,"Utf16Error","","",8,null],[13,"ZipError","","",8,null],[13,"EncoderError","","",8,null],[5,"print_version","","Prints out the current vault version and compatible CoH2 game versions.",null,{"inputs":[],"output":null}],[11,"encode","","",0,null],[11,"fmt","","",0,null],[11,"with_data","","Constructs a new ChatLine initialized with the data given.",0,{"inputs":[{"name":"u32"},{"name":"s"},{"name":"s"}],"output":{"name":"chatline"}}],[11,"display","","Writes the contents of the ChatLine to stdout.",0,null],[11,"encode","","",1,null],[11,"fmt","","",1,null],[11,"new","","Constructs a new, empty Command.",1,{"inputs":[{"name":"u32"},{"name":"cmdtype"}],"output":{"name":"command"}}],[11,"display","","Writes the contents of the Command to stdout.",1,null],[11,"encode","","",7,null],[11,"clone","","",7,null],[11,"fmt","","",7,null],[11,"from_u8","","Converts a numerical representation of a CmdType enum into the correct enum value by\nunsafely transmuting the numerical representation into the CmdType type.",7,{"inputs":[{"name":"u8"}],"output":{"name":"option"}}],[11,"fmt","","",8,null],[11,"from","","",8,{"inputs":[{"name":"ioerror"}],"output":{"name":"error"}}],[11,"from","","",8,{"inputs":[{"name":"fromutf8error"}],"output":{"name":"error"}}],[11,"from","","",8,{"inputs":[{"name":"fromutf16error"}],"output":{"name":"error"}}],[11,"from","","",8,{"inputs":[{"name":"ziperror"}],"output":{"name":"error"}}],[11,"from","","",8,{"inputs":[{"name":"encodererror"}],"output":{"name":"error"}}],[11,"description","","",8,null],[11,"cause","","",8,null],[11,"fmt","","",8,null],[11,"encode","","",2,null],[11,"fmt","","",2,null],[11,"new","","Constructs a new Item with an empty ID and the given ItemType.",2,{"inputs":[{"name":"itemtype"}],"output":{"name":"item"}}],[11,"with_split_id","","Constructs a new Item by combining the give u32 primary and secondary IDs into a single\nunique u64 ID, and passing through the given ItemType.",2,{"inputs":[{"name":"u32"},{"name":"u32"},{"name":"itemtype"}],"output":{"name":"item"}}],[11,"with_whole_id","","Constructs a new Item with the given ID and ItemType. This function simply passes through\nthe given ID to the Item without any transformation.",2,{"inputs":[{"name":"u64"},{"name":"itemtype"}],"output":{"name":"item"}}],[11,"update_id","","Combines u32 primary and secondary IDs into a single unique u64 ID by shifting the primary\nID 32 bits to the left and then adding the two IDs together.",2,null],[11,"encode","","",3,null],[11,"fmt","","",3,null],[11,"new","","Constructs a new Map with empty initial data.",3,{"inputs":[],"output":{"name":"map"}}],[11,"with_data","","Constructs a new Map initialized with the data given.",3,{"inputs":[{"name":"string"},{"name":"string"},{"name":"string"},{"name":"string"},{"name":"u32"},{"name":"u32"},{"name":"u32"}],"output":{"name":"map"}}],[11,"display","","Writes the contents of the Map to stdout.",3,null],[11,"encode","","",4,null],[11,"fmt","","",4,null],[11,"new","","Constructs a new Player with empty initial data.",4,{"inputs":[{"name":"u8"}],"output":{"name":"player"}}],[11,"display","","Writes the contents of the Player to stdout.",4,null],[11,"encode","","",5,null],[11,"fmt","","",5,null],[11,"new","","Constructs a new Replay and loads the file specified by path into memory.",5,{"inputs":[{"name":"path"}],"output":{"name":"result"}}],[11,"new_with_error","","Constructs a junk Replay type with empty data and an error value set. Used to return a\nReplay and its error information out of a thread without panicking if an error was\nencountered during creation.",5,{"inputs":[{"name":"str"},{"name":"error"}],"output":{"name":"replay"}}],[11,"from_bytes","","Constructs a new Replay and loads the byte vector given as the file data.",5,{"inputs":[{"name":"str"},{"name":"vec"}],"output":{"name":"result"}}],[11,"parse","","Parses the loaded replay and populates the Replay type with the return data.",5,null],[11,"to_json","","Serializes Replay as JSON String.",5,null],[11,"display","","Writes the contents of the Replay to stdout.",5,null],[6,"Result","","Custom Result wrapper for vault, used to return vault::Error from every result.",null,null],[11,"encode","","",6,null],[11,"fmt","","",6,null],[11,"parse","","Attempts to parse the given file, returning a Vault type populated with the Replay(s) if\nsuccessful.",6,{"inputs":[{"name":"path"}],"output":{"name":"result"}}],[11,"to_json","","Serializes Vault as JSON String.",6,null]],"paths":[[3,"ChatLine"],[3,"Command"],[3,"Item"],[3,"Map"],[3,"Player"],[3,"Replay"],[3,"Vault"],[4,"CmdType"],[4,"Error"]]}; initSearch(searchIndex);