summaryrefslogtreecommitdiff |
diff options
author | nsensfel <SpamShield0@noot-noot.org> | 2017-11-20 17:25:37 +0100 |
---|---|---|
committer | nsensfel <SpamShield0@noot-noot.org> | 2017-11-20 17:25:37 +0100 |
commit | b984be19b36226b02cb2d58d8597d2cff4be1eaf (patch) | |
tree | 96493a00a29ec934297acf073ee431bf6174f1e8 /src/character_instance.erl | |
parent | c3c8f24ebde2370d8314b1f0e571a26fbcff9450 (diff) |
Trying to get character turns to register.
Diffstat (limited to 'src/character_instance.erl')
-rw-r--r-- | src/character_instance.erl | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/character_instance.erl b/src/character_instance.erl new file mode 100644 index 0000000..d8d7455 --- /dev/null +++ b/src/character_instance.erl @@ -0,0 +1,20 @@ +-module(character_instance). +-export +( + [ + set_location/3, + get_location/1 + ] +). + +-include("timed_cache_data.hrl"). + +set_location (CharInst, X, Y) -> + CharInst#character_instance + { + x = X, + y = Y + }. + +get_location (CharInst) -> + {CharInst#character_instance.x, CharInst#character_instance.y}. |