移除了影响打包的部分;

修正了洗牌算法中的错误;
将弱类型中历史记录的功能拆开了,减小了不必要的消耗;
This commit is contained in:
2023-11-01 16:31:58 +08:00
parent 42d3fbc69f
commit 3b8bf5a940
14 changed files with 317 additions and 51 deletions

View File

@@ -1,4 +1,4 @@
using Codice.CM.WorkspaceServer.Tree.GameUI.HeadTree;
using System;
using System.Collections;
@@ -6,7 +6,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
#if UNITY_EDITOR
using Unity.VisualScripting.YamlDotNet.Core.Tokens;
#endif
using UnityEngine;

View File

@@ -1,7 +1,10 @@
using System;
using System.Collections;
using System.Collections.Generic;
#if UNITY_EDITOR
using UnityEditor.Experimental.GraphView;
#endif
using System.Runtime.CompilerServices;

View File

@@ -21,9 +21,12 @@ namespace XericLibrary.Runtime.MacroLibrary
/// <returns></returns>
public static List<int> FisherYatesShuffle(int length, int select)
{
if(select > length)
throw new ArgumentOutOfRangeException("<22>ڽ<EFBFBD><DABD><EFBFBD>ϴ<EFBFBD><CFB4>ʱ<EFBFBD><CAB1>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF>ӵ<EFBFBD>е<EFBFBD><D0B5><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD><E0A3AC><EFBFBD>Dz<EFBFBD><C7B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ġ<EFBFBD>");
var random = new System.Random();
List<int> arr = Enumerable.Range(1, length).ToList();
List<int> arr = Enumerable.Range(0, length).ToList();
List<int> res = new List<int>();
for(int i = 0; i < select; ++i)

View File

@@ -1,7 +1,10 @@
using System;
using System.Collections;
using System.Collections.Generic;
#if UNITY_EDITOR
using UnityEditor.Experimental.GraphView;
#endif
using System.Runtime.CompilerServices;