Insanely huge initial commit

This commit is contained in:
2026-02-21 17:04:05 -08:00
parent 9cdd36191a
commit 613d75914a
22525 changed files with 4035207 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: b01a1a9e8f5c586419eba255ce2c3ec6
folderAsset: yes
timeCreated: 1436466573
licenseType: Store
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,45 @@
using UnityEngine;
namespace MoreMountains.Tools
{
public class MMReorderableAttributeAttribute : PropertyAttribute {
public bool add;
public bool remove;
public bool draggable;
public bool singleLine;
public string elementNameProperty;
public string elementNameOverride;
public string elementIconPath;
public MMReorderableAttributeAttribute()
: this(null) {
}
public MMReorderableAttributeAttribute(string elementNameProperty)
: this(true, true, true, elementNameProperty, null, null) {
}
public MMReorderableAttributeAttribute(string elementNameProperty, string elementIconPath)
: this(true, true, true, elementNameProperty, null, elementIconPath) {
}
public MMReorderableAttributeAttribute(string elementNameProperty, string elementNameOverride, string elementIconPath)
: this(true, true, true, elementNameProperty, elementNameOverride, elementIconPath) {
}
public MMReorderableAttributeAttribute(bool add, bool remove, bool draggable, string elementNameProperty = null, string elementIconPath = null)
: this(add, remove, draggable, elementNameProperty, null, elementIconPath) {
}
public MMReorderableAttributeAttribute(bool add, bool remove, bool draggable, string elementNameProperty = null, string elementNameOverride = null, string elementIconPath = null) {
this.add = add;
this.remove = remove;
this.draggable = draggable;
this.elementNameProperty = elementNameProperty;
this.elementNameOverride = elementNameOverride;
this.elementIconPath = elementIconPath;
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: af18777bcf6ae2c47a02c3ff8adabb0e
timeCreated: 1434664597
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,110 @@
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
namespace MoreMountains.Tools
{
[Serializable]
public abstract class MMReorderableArray<T> : ICloneable, IList<T>, ICollection<T>, IEnumerable<T> {
[SerializeField]
private List<T> array = new List<T>();
public MMReorderableArray()
: this(0) {
}
public MMReorderableArray(int length) {
array = new List<T>(length);
}
public T this[int index] {
get { return array[index]; }
set { array[index] = value; }
}
public int Length {
get { return array.Count; }
}
public bool IsReadOnly {
get { return false; }
}
public int Count {
get { return array.Count; }
}
public object Clone() {
return new List<T>(array);
}
public void CopyFrom(IEnumerable<T> value) {
array.Clear();
array.AddRange(value);
}
public bool Contains(T value) {
return array.Contains(value);
}
public int IndexOf(T value) {
return array.IndexOf(value);
}
public void Insert(int index, T item) {
array.Insert(index, item);
}
public void RemoveAt(int index) {
array.RemoveAt(index);
}
public void Add(T item) {
array.Add(item);
}
public void Clear() {
array.Clear();
}
public void CopyTo(T[] array, int arrayIndex) {
this.array.CopyTo(array, arrayIndex);
}
public bool Remove(T item) {
return array.Remove(item);
}
public T[] ToArray() {
return array.ToArray();
}
public IEnumerator<T> GetEnumerator() {
return array.GetEnumerator();
}
IEnumerator IEnumerable.GetEnumerator() {
return array.GetEnumerator();
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 5132fa5788b8a7347b370fa5d071c913
timeCreated: 1436466574
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,23 @@
via https://github.com/cfoulston/Unity-Reorderable-List
MIT License
Copyright (c) 2017 Chris Foulston
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 5202bb69e6dc1a44cacdac58197df245
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: