示例#1
0
        public void Handle(PlayerLoginEventRecord record)
        {
            PlayerStats person;

            if (record.character.Id != null && Players.TryGetValue(record.character.Id, out person))
            {
                lock (person)
                    person.SetOnline(record);
            }
        }
示例#2
0
        public void SetOnline(PlayerLoginEventRecord record)
        {
            loggingRecords.Add(record);

            Events.Add(record);
        }