Example #1
0
        public override void Enable()
        {
            _ac = new AssettoCorsaSharedMemory.AssettoCorsa {
                PhysicsInterval = 40
            };
            // The event handlers map their respecive enums to the datamodel, not pretty but fastest way possible
            _ac.StaticInfoUpdated += AcOnStaticInfoUpdated;
            _ac.GraphicsUpdated   += AcOnGraphicsUpdated;
            _ac.PhysicsUpdated    += AcOnPhysicsUpdated;
            _ac.Start();

            base.Enable();
        }
Example #2
0
 public override void Dispose()
 {
     base.Dispose();
     _ac.Stop();
     _ac = null;
 }