Compare commits
3 Commits
v0.3.0-bet
...
v0.3.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5f4414df03 | ||
|
|
57a1d729dd | ||
|
|
67db2e32ef |
9
.gitlab-ci.yml
Normal file
9
.gitlab-ci.yml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
stages:
|
||||||
|
- test
|
||||||
|
|
||||||
|
test:
|
||||||
|
stage: test
|
||||||
|
image: golang:1.15.3
|
||||||
|
script:
|
||||||
|
- go test
|
||||||
|
|
||||||
47
README.md
47
README.md
@@ -1,9 +1,12 @@
|
|||||||
# NMSlib
|
# NMSlib
|
||||||
|
|
||||||
|
**master Branch** : 
|
||||||
|
|
||||||
|
**develop Branch** : 
|
||||||
|
|
||||||
NMSlib is a GoLang package for dealing with converting Galactic coordinates to Portal codes and vice versa.
|
NMSlib is a GoLang package for dealing with converting Galactic coordinates to Portal codes and vice versa.
|
||||||
|
|
||||||
NMSlib also translates known Korvax words to English and back.
|
NMSlib also translates in game languages to english.
|
||||||
- Gek, Vykeen, etc will be added in the future
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
@@ -64,7 +67,7 @@ nmslib.CreateBanner("006afa556c30", "NewLennon.png", 0)
|
|||||||
|
|
||||||
### Converting Portal code to Galactic address with P2gc()
|
### Converting Portal code to Galactic address with P2gc()
|
||||||
|
|
||||||
This function only takes 1 parameter and returns a string
|
This function only takes 1 parameter and returns a string and error
|
||||||
|
|
||||||
* portalcode: 12 char hex string of portal glyphs
|
* portalcode: 12 char hex string of portal glyphs
|
||||||
|
|
||||||
@@ -81,7 +84,7 @@ Output:
|
|||||||
|
|
||||||
### Converting Galactic coordinates to Portal codes with Gc2p()
|
### Converting Galactic coordinates to Portal codes with Gc2p()
|
||||||
|
|
||||||
This function only takes 1 parameter and returns a string
|
This function only takes 1 parameter and returns a string and error
|
||||||
|
|
||||||
* galacticaddress: 16 char 4 block hex address
|
* galacticaddress: 16 char 4 block hex address
|
||||||
|
|
||||||
@@ -96,21 +99,30 @@ Output:
|
|||||||
|
|
||||||
``006AFA556C30``
|
``006AFA556C30``
|
||||||
|
|
||||||
### Translate Korvax to English with Korvax2Eng()
|
## Translate Words
|
||||||
|
|
||||||
|
Supported languages
|
||||||
|
|
||||||
|
- Korvax
|
||||||
|
- Gek
|
||||||
|
- Vy'keen
|
||||||
|
- Atlas
|
||||||
|
|
||||||
|
### Translate Atlas to English with Atl2Eng()
|
||||||
|
|
||||||
This function takes only 1 parameter and returns a string
|
This function takes only 1 parameter and returns a string
|
||||||
|
|
||||||
* korvaxword: Any known Korvaxen word (ex. eapoluch)
|
* Word: Any known Atlas word (ex. Paka)
|
||||||
|
|
||||||
**Example:**
|
**Example:**
|
||||||
|
|
||||||
```golang
|
```golang
|
||||||
fmt.Println(Translate{"KIHTYOMOLES"}.Kor2Eng())
|
fmt.Println(Translate{"Paka"}.Atl2Eng())
|
||||||
```
|
```
|
||||||
|
|
||||||
Output:
|
Output:
|
||||||
|
|
||||||
``CONTRABAND``
|
``Awake``
|
||||||
|
|
||||||
### Translate English to Korvax with Eng2Korvax()
|
### Translate English to Korvax with Eng2Korvax()
|
||||||
|
|
||||||
@@ -129,5 +141,24 @@ Output:
|
|||||||
|
|
||||||
``Zelidovoso``
|
``Zelidovoso``
|
||||||
|
|
||||||
|
|
||||||
|
### Language commands
|
||||||
|
|
||||||
|
Gek:
|
||||||
|
- ``Translate{word}.Gek2Eng()``
|
||||||
|
- ``Translate{word}.Eng2Gek()``
|
||||||
|
|
||||||
|
Korvax:
|
||||||
|
- ``Translate{word}.Kor2Eng()``
|
||||||
|
- ``Translate{word}.Eng2Kor()``
|
||||||
|
|
||||||
|
Vy'keen:
|
||||||
|
- ``Translate{word}.Vyk2Eng()``
|
||||||
|
- ``Translate{word}.Eng2Vyk()``
|
||||||
|
|
||||||
|
Atlas:
|
||||||
|
- ``Translate{word}.Atl2Eng()``
|
||||||
|
- ``Translate{word}.Eng2Atl()``
|
||||||
|
|
||||||
## License
|
## License
|
||||||
[MIT](COPYING)
|
[MIT](COPYING)
|
||||||
|
|||||||
Reference in New Issue
Block a user