Skip to content
Snippets Groups Projects
CommunicationEvents.cs 2.5 KiB
Newer Older
  • Learn to ignore specific revisions
  • using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    using UnityEngine.Events;
    
    using System;
    
    
    public static class CommunicationEvents
    {
    
        /*  public  class PointEvent : UnityEvent<RaycastHit,int>
          {
    
          public class LineEvent : UnityEvent<int, int, int> {
    
        public class HitEvent : UnityEvent<RaycastHit>
        {
    
    
        public class FactEvent : UnityEvent<Fact>
    
        public class MouseOverFactEvent : UnityEvent<Transform>
        {
    
    
    John Schihada's avatar
    John Schihada committed
        public class ShinyEvent : UnityEvent<Fact> {
    
        }
    
    
        public static HitEvent SnapEvent = new HitEvent();
    
        public static HitEvent TriggerEvent = new HitEvent();
    
        public static ToolModeEvent ToolModeChangedEvent = new ToolModeEvent();
    
        /*
        public static FactEvent AddPointEvent = new FactEvent();
        public static FactEvent AddLineEvent = new FactEvent();
        public static FactEvent AddAngleEvent = new FactEvent();
        */
        public static FactEvent AddFactEvent = new FactEvent();
        public static FactEvent RemoveFactEvent = new FactEvent();
    
    
    John Schihada's avatar
    John Schihada committed
        //public static MouseOverFactEvent HighlightEvent = new MouseOverFactEvent();
        //public static MouseOverFactEvent EndHighlightEvent = new MouseOverFactEvent();
    
    
    John Schihada's avatar
    John Schihada committed
        public static ShinyEvent StartLineDrawingEvent = new ShinyEvent();
        public static ShinyEvent StopLineDrawingEvent = new ShinyEvent();
        public static ShinyEvent StartCurveDrawingEvent = new ShinyEvent();
        public static ShinyEvent StopCurveDrawingEvent = new ShinyEvent();
    
        //Event for stopping all previews -> Made When ToolMode is changed
        public static ShinyEvent StopPreviewsEvent = new ShinyEvent();
    
        public static ShinyEvent PushoutFactEvent = new ShinyEvent();
    
    John Schihada's avatar
    John Schihada committed
        public static ShinyEvent PushoutFactEndEvent = new ShinyEvent();
    
        public static ShinyEvent PushoutFactFailEvent = new ShinyEvent();
    
        public static SignalEvent gameSucceededEvent = new SignalEvent();
        public static SignalEvent gameNotSucceededEvent = new SignalEvent();
    
    
    John Schihada's avatar
    John Schihada committed
    
    
    
        //------------------------------------------------------------------------------------
        //-------------------------------Global Variables-------------------------------------
        //Global ActiveToolMode
    
    Richard Marcus's avatar
    Richard Marcus committed
        public static ToolMode ActiveToolMode { get; set; }
    
    John Schihada's avatar
    John Schihada committed
        //Global List of Facts
    
        public static List<Fact> Facts = new List<Fact>();