public WayPointStore Provide(Vector2 from,Vector2 target) { var wayPointStore = new WayPointStore(); var wayPoint = new WayPoint(target); wayPointStore.Store(wayPoint.Id,wayPoint); return wayPointStore; }
void aiEventProcessor_OnUnitUnderAttack(object sender, OnUnitUnderAttackHandlerArgs args) { if(MindState != EMindState.Engaged) { ChangeState(EMindState.Scouting); var way = new WayPoint(args.Position); WayPointStore.Store(way.Id,way); } }