Skip to content

DL Library that allows to parse and export appearances from protobuf files.

License

Notifications You must be signed in to change notification settings

nekiro/ProtobufLib

Repository files navigation

ProtobufLib

DL Library created to help/speed up Open Tibia development, it allows to parse and export appearances from protobuf files.

Requires c++11.

Check wiki

Example usage

For more detailed description go to wiki Additionally all methods are documented in code.

Load sprite appearances

nekiro_proto::SpriteAppearances library{};
try {
	library.loadSpriteSheets("<path_to_file>", false);
} catch (std::exception& e) {
	std::cout << e.what() << std::endl;
}

Get sprite by id

library.getSprite(1234);

Load object appearances (effects, missiles, outfits, items)

nekiro_proto::Appearances library{};
try {
	library.parseAppearancesFromFile("<path_to_file>");
} catch (std::exception& e) {
	std::cout << e.what() << std::endl;
}

Retrieve all items appearances

library.getAppearances(nekiro_proto::OBJECT_TYPE_ITEM)

About

DL Library that allows to parse and export appearances from protobuf files.

Resources

License

Stars

Watchers

Forks

Sponsor this project