public AEntity GetEntityFromAIEntity(AAIEntity entity2D) { lock (this.objectLock) { return(this.objectAIToObjects[entity2D]); } }
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); }
public virtual void SendInfluence(string influence, AAIEntity entityConcernedAI) { // To override }