public CompassViewModel() { DeathList = new List <string>(); PlayerModels = new Dictionary <EntityId, PlayerModel>(); CurrentProcess = Process.GetProcessesByName("tera").Single(); CameraScanner = new CameraScanner(CurrentProcess); Task.Factory.StartNew(() => { CameraScanner.FindCameraAddress(); }); PacketProcessor.Instance.EntityTracker.EntityUpdated += EntityTracker_EntityUpdated; PacketProcessor.Instance.EntityTracker.EntityDeleted += EntityTracker_EntityDeleted; PacketProcessor.Instance.EntityTracker.EntitysCleared += EntityTracker_EntitysCleared; }
public CompassViewModel() { PlayerModels = new ConcurrentDictionary <EntityId, UserEntity>(); CollectionModels = new ConcurrentDictionary <EntityId, CollectionEntity>(); CurrentProcess = Process.GetProcessesByName("tera").Single(); CollectionDatabase = new CollectionDatabase(); CameraScanner = new CameraScanner(CurrentProcess); Task.Factory.StartNew(() => { CameraScanner.FindCameraAddress(); }); PacketProcessor.Instance.EntityTracker.EntityUpdated += EntityTracker_EntityUpdated; PacketProcessor.Instance.EntityTracker.EntityDeleted += EntityTracker_EntityDeleted; PacketProcessor.Instance.EntityTracker.EntitysCleared += EntityTracker_EntitysCleared; }