Newer
Older
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
public static class CommunicationEvents
{
/* public class PointEvent : UnityEvent<RaycastHit,int>
{
John Schihada
committed
public class LineEvent : UnityEvent<int, int, int> {
John Schihada
committed
}
public class FactEvent : UnityEvent<int>
{
John Schihada
committed
}*/
public class HitEvent : UnityEvent<RaycastHit>
{
public class FactEvent : UnityEvent<Fact>
public class MouseOverFactEvent : UnityEvent<Transform>
{
John Schihada
committed
}
public class ToolModeEvent : UnityEvent<int> {
John Schihada
committed
public class ShinyEvent : UnityEvent<Fact> {
}
public class SignalEvent : UnityEvent {
}
public static HitEvent SnapEvent = new HitEvent();
public static HitEvent TriggerEvent = new HitEvent();
John Schihada
committed
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();
public static ShinyEvent PushoutFactEvent = new ShinyEvent();
public static ShinyEvent PushoutFactEndEvent = new ShinyEvent();
John Schihada
committed
public static ShinyEvent PushoutFactFailEvent = new ShinyEvent();
public static SignalEvent gameSucceededEvent = new SignalEvent();
public static SignalEvent gameNotSucceededEvent = new SignalEvent();
//------------------------------------------------------------------------------------
//-------------------------------Global Variables-------------------------------------
public static List<Fact> Facts = new List<Fact>();
public static bool ServerRunning = false;