https://github.com/subsoap/ahash
Automatic Hash for Defold
https://github.com/subsoap/ahash
Last synced: 2 months ago
JSON representation
Automatic Hash for Defold
- Host: GitHub
- URL: https://github.com/subsoap/ahash
- Owner: subsoap
- Created: 2018-06-30T10:17:05.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-10-05T03:54:54.000Z (8 months ago)
- Last Synced: 2025-04-12T20:06:14.503Z (2 months ago)
- Language: Lua
- Size: 4.88 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-defold - AHash
README
# AHash
Automatic Hash for Defold
https://github.com/subsoap/ahash/archive/master.zip
Require it locally or globablly if you wish to have it available in your entire project.
```local ahash = require("ahash.ahash")```
AHash allows you to get any value you want as a hash. Hashes are only calculated once, and then after are retrieved from the existing list of hashes.```
if (ahash.MY_CUSTOM_HASH == hash("MY_CUSTOM_HASH")) then
print("It works!")
end
```