Exemple #1
0
 public AEntity GetEntityFromAIEntity(AAIEntity entity2D)
 {
     lock (this.objectLock)
     {
         return(this.objectAIToObjects[entity2D]);
     }
 }
Exemple #2
0
        protected virtual AAIEntity AddEntity(AEntity obj)
        {
            if (this.worldAI.TryGetTarget(out AIWorld worldAI))
            {
                if (AIWorld.MappingObjectModelAI.TryGetValue(obj.GetType(), out IAIObjectFactory objectFactory))
                {
                    AAIEntity objectAI = objectFactory.CreateObjectAI(worldAI, this, obj) as AAIEntity;

                    this.objectAIToObjects.Add(objectAI, obj);
                    this.objectToObjectAIs.Add(obj, objectAI);

                    return(objectAI);
                }
            }
            return(null);
        }
Exemple #3
0
 public virtual void SendInfluence(string influence, AAIEntity entityConcernedAI)
 {
     // To override
 }