Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Konstruktor des AccountHandlers angefangen zu implementieren.

  • Loading branch information...
commit f0ec5131099dc38fa1876f1ed24ddd22b3d1ff83 1 parent 64a4e8a
seeseekey seeseekey authored

Showing 1 changed file with 14 additions and 18 deletions. Show diff stats Hide diff stats

  1. +14 18 invertika-account/Account/AccountHandler.cs
32 invertika-account/Account/AccountHandler.cs
@@ -59,28 +59,24 @@ public class AccountHandler : ConnectionHandler
59 59
60 60 Dictionary<int, DateTime> mLastLoginAttemptForIP;
61 61
62   - /**
63   - * Token collector for connecting a client coming from a game server
64   - * without having to provide username and password a second time.
65   - */
  62 + //Token collector for connecting a client coming from a game server
  63 + //without having to provide username and password a second time.
66 64 public TokenCollector<AccountHandler, AccountClient, int> mTokenCollector;
67 65
68 66
69 67 public AccountHandler(string attributesFile)
70   - //mTokenCollector(this),
71   - //mStartingPoints(0),
72   - //mAttributeMinimum(0),
73   - //mAttributeMaximum(0),
74   - //mNumHairStyles(Configuration::getValue("char_numHairStyles", 17)),
75   - //mNumHairColors(Configuration::getValue("char_numHairColors", 11)),
76   - //mNumGenders(Configuration::getValue("char_numGenders", 2)),
77   - //mMinNameLength(Configuration::getValue("char_minNameLength", 4)),
78   - //mMaxNameLength(Configuration::getValue("char_maxNameLength", 25)),
79   - //mMaxCharacters(Configuration::getValue("account_maxCharacters", 3)),
80   - //mRegistrationAllowed(Configuration::getBoolValue("account_allowRegister", true)),
81   - //mUpdateHost(Configuration::getValue("net_defaultUpdateHost", std::string())),
82   - //mDataUrl(Configuration::getValue("net_clientDataUrl", std::string()))
83 68 {
  69 + mTokenCollector=new TokenCollector<AccountHandler, AccountClient, int>();
  70 + mNumHairStyles=Configuration.getValue("char_numHairStyles", 17);
  71 + mNumHairColors=Configuration.getValue("char_numHairColors", 11);
  72 + mNumGenders=Configuration.getValue("char_numGenders", 2);
  73 + mMinNameLength=(uint)Configuration.getValue("char_minNameLength", 4);
  74 + mMaxNameLength=(uint)Configuration.getValue("char_maxNameLength", 25);
  75 + mMaxCharacters=Configuration.getValue("account_maxCharacters", 3);
  76 + mRegistrationAllowed=Configuration.getBoolValue("account_allowRegister", true);
  77 + mUpdateHost=Configuration.getValue("net_defaultUpdateHost", "");
  78 + mDataUrl=Configuration.getValue("net_clientDataUrl", "");
  79 +
84 80 //XML::Document doc(attributesFile);
85 81 //xmlNodePtr node = doc.rootNode();
86 82
@@ -856,7 +852,7 @@ void tokenMatched(AccountClient client, int accountID)
856 852 client.send(reply);
857 853
858 854 // Return information about available characters
859   - Dictionary<uint, Character> chars = acc.getCharacters();
  855 + Dictionary<uint, Character> chars=acc.getCharacters();
860 856
861 857 // Send characters list
862 858 foreach(Character character in chars.Values)

0 comments on commit f0ec513

Please sign in to comment.
Something went wrong with that request. Please try again.