public Item(Bezier animation, eReactionType reactionType, Color color) : this() { this.Animation = animation; this.ReactionType = reactionType; this.Color = new RawColor4(color.Red / 255f, color.Green / 255f, color.Blue / 255f, 1.0f); this.StartTime = DateTime.Now; }
private void OnInteraction(eReactionType reactionType, Color color) { this.Interaction?.Invoke(reactionType, color); }
/// <summary> /// Listenerに対し、Reactionを送信する /// </summary> /// <param name="presentationId">送信先のPresentation</param> /// <param name="reactionType">送信するReactionの種類</param> /// <param name="coler">送信元を示す色情報</param> public void SendReaction(string presentationId, eReactionType reactionType, Color color) { this.Clients.Group(presentationId).ReceiveReaction(reactionType, color); }