/// <summary> /// Choose a global hitlist, or 0 for the one local to the track (source: defaultsyms.txt). /// </summary> public static HITResult SmartSetList(HITThread thread) { //sets the hitlist var src = thread.ReadByte(); thread.LoadHitlist((uint)thread.ReadVar(src)); return(HITResult.CONTINUE); }
/// <summary> /// Load a track ("index" variable) from a hitlist ("table" variable). /// </summary> public static HITResult SmartIndex(HITThread thread) { var dest = thread.ReadVar(thread.ReadByte()); var index = thread.ReadVar(thread.ReadByte()); thread.LoadHitlist((byte)index); int TrackID = (int)thread.LoadTrack(index); thread.WriteVar(dest, TrackID); return(HITResult.CONTINUE); //Appears to be unused. }
/// <summary> /// Load a track ("index" variable) from a hitlist ("table" variable). /// </summary> public static HITResult SmartIndex(HITThread thread) { var dest = thread.ReadVar(thread.ReadByte()); var index = thread.ReadVar(thread.ReadByte()); thread.LoadHitlist((byte)index); //Converting this to an int is a hack because WriteVar only takes an int... o_O int TrackID = (int)thread.LoadTrack(index); thread.WriteVar(dest, TrackID); return(HITResult.CONTINUE); //Appears to be unused. }
/// <summary> /// Choose a global hitlist, or 0 for the one local to the track (source: defaultsyms.txt). /// </summary> public static HITResult SmartSetList(HITThread thread) { //sets the hitlist var src = thread.ReadByte(); thread.LoadHitlist((uint)thread.ReadVar(src)); return HITResult.CONTINUE; }
/// <summary> /// Load a track ("index" variable) from a hitlist ("table" variable). /// </summary> public static HITResult SmartIndex(HITThread thread) { var dest = thread.ReadVar(thread.ReadByte()); var index = thread.ReadVar(thread.ReadByte()); thread.LoadHitlist((byte)index); //Converting this to an int is a hack because WriteVar only takes an int... o_O int TrackID = (int)thread.LoadTrack(index); thread.WriteVar(dest, TrackID); return HITResult.CONTINUE; //Appears to be unused. }