WIP: Lihzahrd 4 - The Efficient (?) Rewrite #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/clean-start"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
lihzard.terraria.worldpackage cf09152173tests.test_worldf130745b3eWorldclass 234896327084a57ef68fea8fe4c42fWIP: Lihzahrd 5 - The Efficient (?) Rewriteto WIP: Lihzahrd 4 - The Efficient (?) Rewritelihzahrd.terraria.utilsb884e2408fterraria.worldmodule a6f2e8f8eeblackdependency ebc1eeaddeWorldSelectableandWorldFullclasses 0234d3b525__init__files f6d1d9bd4bLihzahrdErrorbase class 79c544effaVersionparser 22c11d4540Versionand addSignatureparser 5271851f5cread_bytestoread_bytes_until6e50d0ace4:exc:instead of:classto reference errors 0411fc0b93Versionparser dec914c4d9SignatureandVersiona44ea6655a__str__and__repr__toSignatureb82e83b5eeFileTypeparserfiletypetolihzahrd.terraria.metaLihzahrdErrortoLihzahrdException0d2bd98a42PackablePackable.writenot usingself.4ca787f23cVersionRevisionparser 035552d24aValidationErrorparams dc4737d561Metaclass bf4bba00d1FileFlagsparser 086cc880d4MetaclassMetatoFileMetadata07f8e06823lihzahrd.terraria.metatofilemeta1c0b815e4atests/lihzahrd/terraria7162635204filemetatoo c503a32c02Packable.readdd3a394ae4PackableReadResultdataclass 0058b015c8.instanceaccess in test fa9db3ef96FileMetadata.writeusing&=2a7b65f57cWorldSelectablea4d86417dcFilePackerdataparam tostream5c303c1df7__init__onPackableComposite8aad4d9780U*_MINandU*_MAXconstants toPacker9b3874b46aI*_MINandI*_MAXconstants toPackere856425abfI64_*inPacker339f1fe102Packerconstants 47a94c4c69RevisionOverflowErroralso inherit fromOverflowError3d3ac3cc0dPackerconstants for validatingFileRevision8ed23c6a83RevisionOverflowErrordocstring 9acba22aadWorldSectionAddressesparser 0267a045eaWorldFrameImportantpacker 9983dbb49eWorldMetadata.section_addressesandWorldMetadata.frameimportantafb244f4fbd764ccdc23d764ccdc23ebd919b1a4Rect.__repr__5b6b342293Rectdocstring 406f54b275Rect.__slots__414c91841bRectiterable c8fb1836d2Rect.to_tuple66bfd9e5e3WorldBoundsparser c11e94c009RecttoRectangle8b2549aa10write_rect168cd653cfCoordinates4c20bd5d73WorldSizeparser 4465db3dc3WorldDifficultyparser ac874496feWorldGeneratorVersionbeing au8instead ofu647d76c6048dWorldSpecialparsers 0ef143b355clickdependency 036cc89202lihzahrdCLI script 44ef2fbfcdPackableCompositeae6c20e1f8lihzard world listCLI commandPackablemethodsUnknownBytesUntilparser ca4e4d42e5WorldSectionAddressesfromWorldMetadata61b2a53d1aUnknownBytesUntilfail validation if unknown bytes are present 34b8097f96Worldparser 6fed6d3376WorldFrameImportantout ofWorldMetadataand intoWorld5ec7718842unknown_file_metadata_bytestoWorldWorldSectionAddresses27d52fa73cWorldSectionAddressesshortcut indexing 6de0051a19WorldSectionAddressesshortcuts inWorld52f1345428WorldSectionAddressesshortcuts, and validate their count 15f9c55d12WorldMoonStyleparser 4afcc4d658WorldMetadata897abdb431WorldStyleBoundaryandWorldForestTreeStyleparsers e12c44b2ebstrict=Trueandstrict=Falsee3e3d1c8f1The_Bugging_Zone.wld90e2e38806Packerdatetime methodsPacker.read_datetimevariable shadowingKNOWN_MOONStoKNOWN_STYLESe749f5a080WorldCavernBackgroundStyleparser 040279d924PaCoalias forPackableComposite6530cc2a89WorldIceBackgroundStyleparser c7725ce31eWorldCavernBackgroundStylevariable names inWorldMetadata5a312d4872WorldJungleBackgroundStyleparser 2e4a3e0565WorldHellBackgroundStyleparser 5718b8db42WorldTimestampb9b8be7644WorldHellBackgroundStyletype annotation 03ed643c62WorldPointandWorldLayerBoundaryparsers 517e3236a6WorldPointcoordinates 52d7ded565WorldClockparser c5871a394bWorldDaytimeparser 8bea593ba6WorldMoonPhaseparser 78e6960730WorldEventOngoingparser 32d17fcb45WorldMetadata.dungeon_pointfc1984826dWorldEvilparser aa48123b28WorldDifficulty7080aa7163PackableComposite._fieldsto do conditional processing 519683fea1WorldTriumphandWorldRescueparsers 738612c2beWorldTriumphandWorldRescueintoWorldMilestone41319e2092WorldModeparser and party of doom 9dbc2e56b5is_meteorite_fallingtois_event_meteorite_falling11557f7fadWorldInvasion*parsers de7bd20ec4WorldMetadataproperties 71e7848ea0WorldSundialCooldownparser f63a2333b3WorldEventSlimeRainDurationparser 6f407633d3WorldEventRain*parsersWorldOre*parsers--directory-auto-protonto CLI 4753cfd9ca--quietnessto CLI ebd741d5c9PackablePrimitiveIntandPackablePrimitiveStre26cd20320PackablePrimitiveBool10c8ab0b38PackablePrimitiveBool87cb5612fd_VALUE_*aboveOverflowErrorinPackablePrimitiveInt8f352e2f03PackablePrimitiveBoolWithOperatorsd9e8b24951Packable→Packrefactor, first part fe5006435asuper()._validateeverywhere 18808506c4NotImplementedfor undefined values to suppress warnings 63c06d12a1PackEnumeee30ed188OverflowErrorfromPackInta6d5223612Packable→Packrefactor, second part a150daf99bPackEnumc8a0355150PackFloat36ba35723dPackgenerics 0458d2ed84Coordinatescomparisons e31c5ab082tiles.xmlfrom TerraMapbeautifulsoup4dependency togenerategroup 4925fbd980PackEnumandPackFlags211350deac@overrideto__repr__implementations f336156076Coordinatesobjects c6ea633547set_*methods toWorldSized89925bdb4__repr__toPackCoordinatesc849d3b87eValueErrormessage forCoordinates0b5f3a571bColorutility classPackEnumforWorldOree83b1fa8bduandvtoNone6327fad0fe__variants__toVARIANTSto make it public d22c877ca0IDandNAMEe9b83e9015VARIANTS73e85aefb4VariantBase._MIN_*and._MAX_*60cfc8fb17--doctest-modulesto pytest opts c539fb84f5ClassNameFactoryto its own module 39968cd410tilesmodule todata3a36c33e0cTilesGeneratorTileBase9480d9ce5cTileBaseto its own file ddb1f741ba__all__to class_enum 2a3dc62625__all__to frameimportant_variant b8a32ce05d__all__to tile_base 36ba966c48__all__to classnames f43bcdb953classnamestoclass_name_factory5b56928e97@overrideannotations toClassEnumTypeDictdee6c46843WorldOreWorldOre1b7262720b__repr__toWorldEvil181985f20f__repr__toWorldModea89520b834WorldAltarCount785b76cf21WorldSizerepr 6b2ce9d86cItemBasecfba2f94a2FishingQuestGoaltypingSecretTeamsSpawnsmore fault-tolerant dfc97ff9c7OtherTreetopsto justTreetopsis_*andset_*methods toWorldDifficulty95d8902ebdWorldHeader.defeated_oldonesarmy_*type annotation a17234c600WorldHeader.bosses479b82aa61--force-coloroption and progress to world list 2b1fb30b00WorldTilesskeleton 82eb3bfefc__getitem__and__setitem__toWorldFrameImportanta0b542463egenerationto_generate23b619c80f_generateoutside theterrariamoduledataagainblackfrom .thanimport *OreAvailablestill usingget_by_idf705a85829NotImplementedErrorfor abstract methods 449700b873World.writeb7dfcd88bfsize=andframe_important=toWorldTiles.readtimeitfor benching c3ab18f304wall_idprocessing e625a4bf3dblock_uandblock_ve8e7899473block_paintdd03fd9938block_idb13a9d7d70wall_ide16a90a0e8liquid_volume82568cc852repeat543cb4b4adblock_shapefor blocks that exist 5c699b69e5activeinversion step ba2be53e15@override899a6aaad4test_world_readto put a breakpoint on 1a0dfe421dblock_idandwall_idvalues 4ce367804aWorldTilese2a7ca2a14block_idafter theframe_importantcheck 55e1df377eWorldTiles._create_difference_matrix5ea4c36147WorldTiles._create_tile_repeat_tuplesde37e651c4WorldTiles._write_tile_batchaf9c9578aaPacker.writecalls 1436e064d0Packer.write*methods 5a3090529fWorld.writef45b8a3b47WorldTiles._writeimplementation 36912c06d3PackInt._writesignatures 06c4ea1231PackFloat._writesignatures 69a37e3637PackStr._writesignatures 42ee1b83ba*._writesignatures 3d00659968Packer.write_uleb1284df7edc740PackWriteinWorld.writedb218d6f74.total_seconds()tointinPacker.write_datetime57ff294ae1Packer.write_datetimeWorldChestsskeleton__all__totiles.pyf4d9ef0194xandyproperty toPackCoordinates7084ac5fbdWorldTiles8e2941872fWorldTiles.TILE_DTYPEa7093cb902_read_batch_to_ndarray246f9b6e95_read_batch_to_ndarrayfc77ce1fff_read_batch_to_ndarraya4dcdb84ab_read_column_to_ndarray4b36d384f3_read_column_to_ndarray2eed5de8c7_read_matrix_to_ndarrayand remove return 0b657bd7cedataparameter of_read_matrix_to_ndarray6a6de46234WorldTiles._reada7258dfbfavalueparameter ofWorldTiles._validate10d5d5584dWorldTiles._create_difference_matrix540f565734WorldTiles._create_tile_batchesd8ffa12d6cWorldTiles._create_tile_batches8c7095800eWorldTiles._write_tile_batch430d535048__slots__toColora37e5da54bTruevalue intest_difference_matrixf641e4609bWorldTilesbacking ndarray 7a237d4602valueparameter ofWorldTiles._writeView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.