Ejemplo n.º 1
0
        public AAIEntity(AAILayer parentLayer, IAIObjectFactory factory, AEntity entity)
            : base(factory)
        {
            this.parentLayer = new WeakReference <AAILayer>(parentLayer);

            this.IsActive = entity.IsActive;
        }
Ejemplo n.º 2
0
        private void OnLayerAdded(ALayer layerToAdd)
        {
            if (AIWorld.MappingObjectModelAI.TryGetValue(layerToAdd.GetType(), out IAIObjectFactory layer2DFactory))
            {
                AAILayer layerAI = layer2DFactory.CreateObjectAI(this, layerToAdd) as AAILayer;

                this.LayersDictionary.Add(layerToAdd, layerAI);
            }
        }
Ejemplo n.º 3
0
 public virtual IAIObject CreateObjectAI(AIWorld worldAI, AAILayer layerAI, IObject obj)
 {
     return(this.CreateObjectAI(worldAI, obj));
 }