Refactored and fixed a lot of bugs. Creates the database but still does not properly load the settings file.
This commit is contained in:
parent
c96c5a1fc7
commit
0c9bf08c5a
15 changed files with 150 additions and 80 deletions
|
|
@ -6,10 +6,23 @@ Player object. A Player is what chats on default channels but has no
|
|||
other in-game-world existance. Rather the Player puppets Objects (such
|
||||
as Characters) in order to actually participate in the game world.
|
||||
|
||||
|
||||
Guest
|
||||
|
||||
Guest players are simple low-level accounts that are created/deleted
|
||||
on the fly and allows users to test the game without the committment
|
||||
of a full registration. Guest accounts are deactivated by default; to
|
||||
activate them, add the following line to your settings file:
|
||||
|
||||
GUEST_ENABLED = True
|
||||
|
||||
You will also need to modify the connection screen to reflect the
|
||||
possibility to connect with a guest account. The setting file accepts
|
||||
several more options for customizing the Guest account system.
|
||||
|
||||
"""
|
||||
|
||||
from evennia import DefaultPlayer
|
||||
|
||||
from evennia import DefaultPlayer, DefaultGuest
|
||||
|
||||
class Player(DefaultPlayer):
|
||||
"""
|
||||
|
|
@ -79,3 +92,11 @@ class Player(DefaultPlayer):
|
|||
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
class Guest(DefaultGuest):
|
||||
"""
|
||||
This class is used for guest logins. Unlike Players, Guests and their
|
||||
characters are deleted after disconnection.
|
||||
"""
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue