Commit Graph

13 Commits

Author SHA1 Message Date
Loïc Hoguin
b6c1bf277d egs_users: Rename stateu into state. 2011-02-26 17:03:25 +01:00
Loïc Hoguin
d69fe073a8 egs_users: Introduce broadcast_all/1 to broadcast messages to all online users. 2011-02-21 02:30:39 +01:00
Loïc Hoguin
6c8b831fd2 egs_users: Replace read({pid, Pid}) calls by the new find_by_pid/1 function. 2011-02-21 01:34:54 +01:00
Loïc Hoguin
6e922a7ec9 egs_users: Remove broadcast_unspawn/2 in favor of broadcast/2. 2011-02-21 00:07:37 +01:00
Loïc Hoguin
823ee73e7d egs_users: Remove broadcast_spawn/2 in favor of broadcast/2. 2011-02-21 00:04:23 +01:00
Loïc Hoguin
40d2eed01b egs_users: Remove select({neighbors, User}). Use egs_zones for broadcasting. 2011-02-20 23:39:56 +01:00
Loïc Hoguin
ac8d6858cd egs_users: Remove the unused select(all) function. 2011-02-20 23:06:32 +01:00
Loïc Hoguin
0b8c4dbd85 egs_users: Remove mnesia from users handling. Convert to a gen_server.
Mnesia has now been fully removed from EGS. It will be replaced by Riak
at a later time, when we need to store permanent data to disk.
2011-02-20 20:00:04 +01:00
Loïc Hoguin
b728731830 Properly handle the LID per player and per zone. Remove related hacks. 2011-02-19 19:45:50 +01:00
Loïc Hoguin
ad7071a61b psu_game: Load the players already in the zone on zone change. 2011-02-19 16:05:01 +01:00
Loïc Hoguin
50c2a2615f egs_zones: Broadcast spawn/unspawn directly from enter/leave. 2011-02-19 15:26:54 +01:00
Loïc Hoguin
a484de77e0 egs_users: Rename id into gid inside the users record. 2011-02-13 00:35:05 +01:00
Loïc Hoguin
4dcaa79371 Add types to the users record and convert egs_users into a functions module.
The egs_user_model module was renamed into egs_users.
The egs_user_model record was renamed into users.
2011-02-12 19:58:53 +01:00