Exemplo n.º 1
0
 public MonsterBattleEntity(Monster monster, Context context, Adventure adventure, MonsterBattleLogic battlelogic)
 {
     this.context = context;
     Monster      = monster;
     Adventure    = adventure;
     BattleLogic  = battlelogic;
     MaxHP        = HP = monster.HP;
     MP           = monster.MP;
 }
Exemplo n.º 2
0
 public PlayerBattleEntity(Context context, long playerid, Adventure adventure, MonsterBattleLogic battlelogic)
 {
     this.context = context;
     PlayerID     = playerid;
     Adventure    = adventure;
     BattleLogic  = battlelogic;
     user         = context.GetModule <UserModule>().GetUser(playerid);
     Name         = context.Database.Load <User>(u => u.Name).Where(u => u.ID == playerid).ExecuteScalar <string>();
     Image        = context.Database.Load <User>(u => u.Avatar).Where(u => u.ID == playerid).ExecuteScalar <string>();
     Effects      = new ITemporaryEffect[0];
 }