private void Client_OnSetCourseInfo(object sender, CourseInfoArgs e) { // Authorize build if (BuildAuthorizedConnection((FFClient)sender)) { FFTask task = new FFTask(FFTask.FFTaskType.Build_CourseInfo, (FFClient)sender, e); TaskProcessor.AddTask(task); } }
void SetCourseInfoHandler(BinaryReader br) { CourseInfoArgs args = new CourseInfoArgs(); args.CourseID = br.ReadInt32(); args.ParTimeSeconds = br.ReadSingle(); args.LootMarkers = br.ReadInt32(); args.MaxObstacleScore = br.ReadInt32(); args.GameMode = br.ReadInt32(); args.TimeScoreBase = br.ReadInt32(); args.TimeScoreModifier = br.ReadInt32(); args.LootTable = br.ReadInt32(); OnSetCourseInfo(this, args); }