示例#1
0
        public ModPackageReorderableList(ModPackage package, SerializedObject serializedObject, SerializedProperty serializedProperty)
            : base(serializedObject, serializedProperty, true, true, true, true)
        {
            Package            = package;
            SerializedObject   = serializedObject;
            SerializedProperty = serializedProperty;

            drawHeaderCallback  = DrawHeader;
            drawElementCallback = DrawElement;
        }
示例#2
0
 private static void BuildMod(ModPackage package)
 {
     try
     {
         Serializer.SerializePackage(package, _pathToCoreMods);
     }
     catch (System.Exception)
     {
         Debug.LogWarning("Failed to serialize " + package);
     }
 }