Пример #1
0
    public static int SocketIndex(this Socket.Map map, string name)
    {
        int num;

        map.SocketIndex(name, out num);
        return(num);
    }
Пример #2
0
    public static bool ContainsSocket <TSocket>(this Socket.Map map, string name)
        where TSocket : Socket, new()
    {
        TSocket tSocket;

        return(map.FindSocket <TSocket>(name, out tSocket));
    }
Пример #3
0
    public static bool ContainsSocket <TSocket>(this Socket.Map map, int index)
        where TSocket : Socket, new()
    {
        TSocket tSocket;

        return(map.FindSocket <TSocket>(index, out tSocket));
    }
Пример #4
0
 public static bool GetSocketMapOrNull(this Socket.Mapped mapped, out Socket.Map map)
 {
     if (object.ReferenceEquals(mapped, null) || !(mapped as UnityEngine.Object))
     {
         map = null;
         return(false);
     }
     map = mapped.socketMap;
     return(!object.ReferenceEquals(map, null));
 }
Пример #5
0
 public static bool FindSocket(this Socket.Map map, int index, out Socket socket)
 {
     return(map.Socket(index, out socket));
 }
Пример #6
0
 public static bool FindSocket(this Socket.Map map, string name, out Socket socket)
 {
     return(map.Socket(name, out socket));
 }
Пример #7
0
 public static bool FindSocket <TSocket>(this Socket.Map map, int index, out TSocket socket)
     where TSocket : Socket, new()
 {
     return(map.Socket <TSocket>(index, out socket));
 }
Пример #8
0
 public static bool FindSocket <TSocket>(this Socket.Map map, string name, out TSocket socket)
     where TSocket : Socket, new()
 {
     return(map.Socket <TSocket>(name, out socket));
 }
Пример #9
0
    public static bool ContainsSocket(this Socket.Map map, int index)
    {
        Socket socket;

        return(map.FindSocket(index, out socket));
    }
Пример #10
0
    public static bool ContainsSocket(this Socket.Map map, string name)
    {
        Socket socket;

        return(map.FindSocket(name, out socket));
    }
Пример #11
0
 public static bool FindSocket <TSocket>(this Socket.Map map, string name, out TSocket socket) where TSocket : Socket, new()
 {
     Socket.Map.Reference reference = map;
     return(reference.Socket <TSocket>(name, out socket));
 }
Пример #12
0
 public static bool FindSocket(this Socket.Map map, string name, out Socket socket)
 {
     Socket.Map.Reference reference = map;
     return(reference.Socket(name, out socket));
 }
Пример #13
0
 public static bool FindSocket(this Socket.Map map, int index, out Socket socket)
 {
     Socket.Map.Reference reference = map;
     return(reference.Socket(index, out socket));
 }