Exemplo n.º 1
0
        public GuildAcademyMember(GuildAcademy Academy, WorldCharacter Character, DataRow Row)
        {
            this.Academy = Academy;
            this.Character = Character;

            Load(Row);
        }
Exemplo n.º 2
0
 public GuildAcademyMember(GuildAcademy Academy, WorldCharacter Character, DateTime RegisterDate, GuildAcademyRank Rank)
 {
     this.Academy = Academy;
     this.Character = Character;
     this.RegisterDate = RegisterDate;
     this.Rank = Rank;
 }
Exemplo n.º 3
0
        private void Load()
        {
            //members
            DataTable MemberData = null;
               using(DatabaseClient DBClient = Program.DatabaseManager.GetClient())
               {
              MemberData = DBClient.ReadDataTable("SELECT * FROM GuildMembers WHERE GuildID = "+this.ID+"");

               }

               foreach (DataRow row in MemberData.Rows)
               {
                        //get character
                        WorldCharacter character;
                        if (!CharacterManager.Instance.GetCharacterByID(Convert.ToInt32(row["CharID"]), out character))
                            continue;

                        var member = new GuildMember(this,

                                                     character,
                                                     (GuildRank)GetDataTypes.GetByte(row["Rank"]),
                                                     GetDataTypes.GetUshort(row["Korp"]));

                        Members.Add(member);
               }

            //academy
            Academy = new GuildAcademy(this);
        }