Skip to content
Snippets Groups Projects
CommunicationEvents.cs 2.28 KiB
Newer Older
  • Learn to ignore specific revisions
  • using System.Collections.Generic;
    
    using UnityEngine;
    using UnityEngine.Events;
    
    using System;
    
    
    public static class CommunicationEvents
    {
        public class HitEvent : UnityEvent<RaycastHit>
        {
    
    
        public class FactEvent : UnityEvent<Fact>
    
        public class MouseOverFactEvent : UnityEvent<Transform>
        {
    
    
        public class ToolModeEvent : UnityEvent<int> {
    
    John Schihada's avatar
    John Schihada committed
        public class ShinyEvent : UnityEvent<Fact> {
    
        }
    
    
        public class AnimationEvent : UnityEvent<GameObject, String> {
    
        }
    
        public class AnimationEventWithUri : UnityEvent<String>
        {
    
        }
    
        public class AnimationEventWithUris : UnityEvent<List<string>>
        {
    
        public static HitEvent SnapEvent = new HitEvent();
    
        public static HitEvent TriggerEvent = new HitEvent();
    
        public static ToolModeEvent ToolModeChangedEvent = new ToolModeEvent();
    
        public static FactEvent AddFactEvent = new FactEvent();
        public static FactEvent RemoveFactEvent = new FactEvent();
    
        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();
    
        
        public static SignalEvent NewAssignmentEvent = new SignalEvent();
    
        //TODO: Remove this event after CompletionsDemo isn't necessary anymore
        public static AnimationEventWithUri parameterDisplayHint = new AnimationEventWithUri();
    
        public static AnimationEvent ScrollFactHintEvent = new AnimationEvent();
    
        public static FactEvent AnimateExistingFactEvent = new FactEvent();
    
        public static FactEvent AnimateNonExistingFactEvent = new FactEvent();
    
        public static AnimationEventWithUris HintAvailableEvent = new AnimationEventWithUris();
    
    John Schihada's avatar
    John Schihada committed
    
        //------------------------------------------------------------------------------------
        //-------------------------------Global Variables-------------------------------------
    
    John Schihada's avatar
    John Schihada committed
        //Global List of Facts
    
        public static List<Fact> Facts = new List<Fact>();
    
    
        public static bool ServerRunning = true;
    
        public static string ServerAdress = "localhost:8085";