Exemple #1
0
        public async Task <T> Get <T>(string key)
        {
            return(await Task.Run(() =>
            {
                BrainEntity brainEntity = _table.Execute(TableOperation.Retrieve <BrainEntity>(_partition, key)).Result as BrainEntity;

                if (brainEntity != null)
                {
                    return JsonConvert.DeserializeObject <T>(brainEntity.Value);
                }

                return default(T);
            }));
        }
 public EnemyEvadeGoal(BrainEntity owner)
     : base(owner)
 {
 }
 public TravelGoal(BrainEntity owner)
     : base(owner)
 {
 }
Exemple #4
0
 public PlayerFindGoal(BrainEntity owner)
     : base(owner)
 {
 }
 public EnemyChaseGoal(BrainEntity owner)
     : base(owner)
 {
 }
Exemple #6
0
 public FlockGoal(BrainEntity owner)
     : base(owner)
 {
 }
Exemple #7
0
 protected NWGoalEntity(BrainEntity owner) : base(owner)
 {
 }
Exemple #8
0
 public DebtTakeGoal(BrainEntity owner)
     : base(owner)
 {
 }
Exemple #9
0
 protected LocatedGoal(BrainEntity owner)
     : base(owner)
 {
 }
 public EscortGoal(BrainEntity owner)
     : base(owner)
 {
 }
Exemple #11
0
 public StalkGoal(BrainEntity owner)
     : base(owner)
 {
 }
Exemple #12
0
 protected AreaGoal(BrainEntity owner)
     : base(owner)
 {
 }
 public ShopReturnGoal(BrainEntity owner)
     : base(owner)
 {
 }
 public AreaGuardGoal(BrainEntity owner)
     : base(owner)
 {
 }
 public ItemAcquireGoal(BrainEntity owner)
     : base(owner)
 {
 }
Exemple #16
0
 public PointGuardGoal(BrainEntity owner)
     : base(owner)
 {
 }
 public WareReturnGoal(BrainEntity owner)
     : base(owner)
 {
 }