Exemplo n.º 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);
     }
 }
Exemplo n.º 2
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;
     }
 }