public GoalData( MatchData match, g_Player player, g_Score lastScore, float gameClock, Vector2 goalPos, float angleIntoGoal, bool backboard, g_Team.TeamColor goalColor, bool?leftHanded, float?underhandedness, List <Vector3> discTrajectory) { matchData = match; GameClock = gameClock; Player = player; LastScore = lastScore; GoalPos = goalPos; GoalAngle = angleIntoGoal; Backboard = backboard; GoalColor = goalColor; LeftHanded = leftHanded; this.underhandedness = underhandedness; DiscTrajectory = new List <Vector3>(discTrajectory); }
public MatchPlayer(MatchData match, TeamData team, g_Player player) { matchData = match; teamData = team; Id = player.userid; Name = player.name; playspaceLocation = player.head.Position; PlayspaceAbuses = 0; }
internal static bool SaveHighlightMaybe(g_Player player, g_Instance frame, string id) { string highlightGroupName = IsPlayerHighlightEnabled(player, frame); if (highlightGroupName.Length > 0) { Highlights.VideoHighlightParams vhp = new Highlights.VideoHighlightParams { groupId = highlightGroupName, highlightId = id, startDelta = -(int)(Settings.Default.nvHighlightsSecondsBefore * 1000), endDelta = (int)(Settings.Default.nvHighlightsSecondsAfter * 1000) }; Highlights.SetVideoHighlight(vhp, videoCallback); return(true); } else { return(false); } }
private void Interception(g_Instance frame, g_Team team, g_Player throwPlayer, g_Player catchPlayer) { SaveClip(Settings.Default.obsClipInterception, catchPlayer.name, frame); }
private void PlayspaceAbuse(g_Instance frame, g_Team team, g_Player player, Vector3 arg4) { SaveClip(Settings.Default.obsClipPlayspace, player.name, frame); }
private void Save(g_Instance frame, g_Team team, g_Player player) { SaveClip(Settings.Default.obsClipSave, player.name, frame); }
public EventData(MatchData match, EventType eventType, float gameClock, g_Team team, g_Player player, g_Player otherPlayer, Vector3 position, Vector3 vec2) { matchData = match; this.eventType = eventType; this.gameClock = gameClock; this.player = player; this.otherPlayer = otherPlayer; this.position = position; this.vec2 = vec2; this.team = team; }
public EventData(MatchData match, EventType eventType, float gameClock, g_Team team, g_Player player, long joustTimeMillis, Vector3 position, Vector3 vec2) { matchData = match; this.eventType = eventType; this.gameClock = gameClock; this.player = player; this.joustTimeMillis = joustTimeMillis; this.position = position; this.vec2 = vec2; this.team = team; }