Пример #1
0
        public Beliefs(Human human)
        {
            Human = human;
            Entity = human.Entity;

            _entityKB = new Dictionary<Entity, EntityBeliefs>();
            _blockKB = new Dictionary<Block, BlockBeliefs>();

            foreach (var block in Entity.World) {
                _blockKB.Add(block, new BlockBeliefs(this, block));
            }
        }
Пример #2
0
 public override void OnSpawn()
 {
     if (Entity.HasComponent<Human>())
         Human = Entity.GetComponent<Human>();
 }