Пример #1
0
 public void SetClass(UClass unrealClass)
 {
     if (unrealClass != null)
     {
         if (!unrealClass.ImplementsInterface <T>())
         {
             throw new Exception("TSubclassOfInterface - the given class doesn't implement the interface: '" +
                                 typeof(T) + "' class:" + UClass.GetType(unrealClass.Address));
         }
         subclassOf.ClassAddress = unrealClass.Address;
     }
     else
     {
         subclassOf.ClassAddress = IntPtr.Zero;
     }
 }