コード例 #1
0
ファイル: User.cs プロジェクト: DomGrieco/server
 public User(string playername, Sex sex, ushort targetMap, byte targetX, byte targetY)
 {
     Name = playername;
     Sex = sex;
     Location = new Location {MapId = targetMap, WorldMap = false, X = targetX, Y = targetY};
     _initializeUser(playername);
 }
コード例 #2
0
ファイル: User.cs プロジェクト: DomGrieco/server
        private void _initializeUser(string playername = "")
        {
            Inventory = new Inventory(59);
            Equipment = new Inventory(18);
            SkillBook = new Book(90);
            SpellBook = new Book(90);
            IsAtWorldMap = false;
            Login = new LoginInfo();
            Password = new PasswordInfo();
            Location = new Location();
            Legend = new List<LegendMark>();
            Guild = new GuildMembership();
            LastSaid = String.Empty;
            LastSpoke = 0;
            NumSaidRepeated = 0;
            PortraitData = new byte[0];
            ProfileText = string.Empty;
            DialogState = new DialogState(this);
            UserFlags = new Dictionary<String, String>();
            UserSessionFlags = new Dictionary<String, String>();
            Status = PlayerStatus.Alive;
            Group = null;
            Flags = new Dictionary<string, bool>();
            if (!string.IsNullOrEmpty(playername))
            {
                Name = playername;
            }

        }