コード例 #1
0
 public RaceParserTempData(int capacity, Allocator allocator)
 {
     this = default;
     if (capacity != 0)
     {
         IdentifierNumberPairs = new IdentifierNumberPairListLinkedList(capacity, allocator);
         Values    = new ListLinkedList(capacity, sizeof(RaceTree), allocator);
         Names     = new ListLinkedList(capacity, sizeof(RaceTree.NameAssignExpression), allocator);
         Aligns    = new ListLinkedList(capacity, sizeof(RaceTree.AlignAssignExpression), allocator);
         Braves    = new ListLinkedList(capacity, sizeof(RaceTree.BraveAssignExpression), allocator);
         Movetypes = new ListLinkedList(capacity, sizeof(RaceTree.MovetypeAssignExpression), allocator);
         Constis   = new ListLinkedList(capacity, sizeof(RaceTree.ConstiAssignExpression), allocator);
     }
 }
コード例 #2
0
 public VoiceParserTempData(int capacity, int stringCapacity, Allocator allocator)
 {
     this = default;
     if (capacity != 0)
     {
         Values         = new ListLinkedList(capacity, sizeof(VoiceTree), allocator);
         Powers         = new ListLinkedList(capacity, sizeof(VoiceTree.PowerAssignExpression), allocator);
         Spots          = new ListLinkedList(capacity, sizeof(VoiceTree.SpotAssignExpression), allocator);
         VoiceTypes     = new ListLinkedList(capacity, sizeof(VoiceTree.VoiceTypeAssignExpression), allocator);
         Delskills      = new ListLinkedList(capacity, sizeof(VoiceTree.DelskillAssignExpression), allocator);
         Identifiers    = new IdentifierListLinkedList(capacity, allocator);
         Strings        = new NativeStringListLinkedList(capacity, allocator);
         StringMemories = new NativeStringMemorySoyrceLinkedList(stringCapacity, allocator);
     }
 }
コード例 #3
0
 public MovetypeParserTempData(int capacity, Allocator allocator)
 {
     IdentifierNumberPairs2 = new IdentifierNumberPairListLinkedList(capacity, allocator);
     if (capacity != 0)
     {
         Names   = new ListLinkedList(capacity, sizeof(MovetypeTree.NameAssignExpression), allocator);
         Helps   = new ListLinkedList(capacity, sizeof(MovetypeTree.HelpAssignExpression), allocator);
         Constis = new ListLinkedList(capacity, sizeof(MovetypeTree.ConstiAssignExpression), allocator);
         Values  = new ListLinkedList(capacity, sizeof(MovetypeTree), allocator);
     }
     else
     {
         Values = Names = Helps = Constis = default;
     }
 }
コード例 #4
0
 public ASTTypePageIndexPairListLinkedList(int capacity, Allocator allocator)
 {
     this = default;
     List = new ListLinkedList(capacity, sizeof(ASTTypePageIndexPair), allocator);
 }
コード例 #5
0
 public IdentifierNumberPairListLinkedList(int capacity, Allocator allocator)
 {
     this = default;
     List = new ListLinkedList(capacity, sizeof(IdentifierNumberPair), allocator);
 }
コード例 #6
0
 public ElementEnumerator(ref ListLinkedList list)
 {
     index = -1;
     Node  = list.First;
 }
コード例 #7
0
 public NodeEnumerator(ref ListLinkedList list)
 {
     Node       = list.First;
     isNotFirst = false;
 }