Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose explicit api #15

Open
thomasrudin opened this issue Oct 5, 2018 · 0 comments
Open

Expose explicit api #15

thomasrudin opened this issue Oct 5, 2018 · 0 comments
Labels
Documentation enhancement New feature or request
Milestone

Comments

@thomasrudin
Copy link
Contributor

Current api surface (stable):

xp_redo.get_rank(xp) : returns rank definition
xp_redo.get_xp(playername) : returns xp-value
xp_redo.add_xp(playername, xp) : adds or subtracts xp points

Less stable:

xp_redo.ranks : List with rank-defs
xp_redo.register_rank(rank-def) : adds a rank

Rank-Definition:

{
	name="Private Second Class",
	icon="xp_rank_01_private_second.png",
	color={r=255, g=245, b=245},
	xp=10
}
@thomasrudin thomasrudin added the enhancement New feature or request label Oct 5, 2018
@thomasrudin thomasrudin added this to the 1.2 milestone Oct 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant