Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
CreditsRollComposer.cs
Go to the documentation of this file.
1using System;
8using Terraria.ID;
10
12
14{
15 private struct SimplifiedNPCInfo
16 {
18
19 private int _npcType;
20
26
28 {
30 int lookDirection = ((!(_simplifiedPosition.X > 0f)) ? 1 : (-1));
31 int num = 240;
32 int timeToJumpAt = (totalSceneTime - num) / 2 - 20 + (int)(_simplifiedPosition.X * -8f);
34 }
35
37 {
38 return baseAnchor + _simplifiedPosition * new Vector2(26f, 24f);
39 }
40 }
41
43
44 private Vector2 _originAtBottom = new Vector2(0.5f, 1f);
45
46 private Vector2 _emoteBubbleOffsetWhenOnLeft = new Vector2(-14f, -38f);
47
49
50 private Vector2 _backgroundOffset = new Vector2(76f, 166f);
51
52 private int _endTime;
53
55
57 {
59 int num = 0;
60 int num2 = 80;
61 Vector2 sceneAnchorPosition = Vector2.UnitY * -1f * num2;
63 _endTime = num + 20;
65 }
66
68 {
70 int num = 0;
71 int num2 = 80;
72 Vector2 vector = Vector2.UnitY * -1f * num2;
73 int num3 = 210;
74 Vector2 vector2 = vector + Vector2.UnitX * 200f;
76 if (!inGame)
77 {
78 vector3 = (vector2 = Vector2.UnitY * 80f);
79 }
80 int num4 = num3 * 3;
81 int num5 = num3 * 3;
82 int num6 = num4 - num5;
83 if (!inGame)
84 {
85 num5 = 180;
86 num6 = num4 - num5;
87 }
88 num += num5;
89 num += PlaySegment_TextRoll(num, "CreditsRollCategory_Creator", vector2).totalTime;
90 num += num3;
92 num += num3;
93 vector2.X *= -1f;
94 num += PlaySegment_TextRoll(num, "CreditsRollCategory_ExecutiveProducer", vector2).totalTime;
95 num += num3;
97 num += num3;
98 vector2.X *= -1f;
99 num += PlaySegment_TextRoll(num, "CreditsRollCategory_Designer", vector2).totalTime;
100 num += num3;
102 num += num3;
103 vector2.X *= -1f;
104 num += PlaySegment_TextRoll(num, "CreditsRollCategory_Programming", vector2).totalTime;
105 num += num3;
107 num += num3;
108 vector2.X *= 0f;
109 num += PlaySegment_TextRoll(num, "CreditsRollCategory_Graphics", vector2).totalTime;
110 num += num3;
112 num += num3;
114 vector2.X *= -1f;
115 num += PlaySegment_TextRoll(num, "CreditsRollCategory_Music", vector2).totalTime;
116 num += num3;
118 num += num3;
119 vector2.X *= -1f;
120 num += PlaySegment_TextRoll(num, "CreditsRollCategory_Sound", vector2).totalTime;
121 num += num3;
123 num += num3;
124 vector2.X *= -1f;
125 num += PlaySegment_TextRoll(num, "CreditsRollCategory_Dialog", vector2).totalTime;
126 num += num3;
128 num += num3;
129 vector2.X *= 0f;
130 num += PlaySegment_TextRoll(num, "CreditsRollCategory_QualityAssurance", vector2).totalTime;
131 num += num3;
133 num += num3;
135 vector2.X *= -1f;
136 num += PlaySegment_TextRoll(num, "CreditsRollCategory_BusinessDevelopment", vector2).totalTime;
137 num += num3;
139 num += num3;
140 vector2.X *= -1f;
141 num += PlaySegment_TextRoll(num, "CreditsRollCategory_Marketing", vector2).totalTime;
142 num += num3;
144 num += num3;
145 vector2.X *= -1f;
146 num += PlaySegment_TextRoll(num, "CreditsRollCategory_PublicRelations", vector2).totalTime;
147 num += num3;
149 num += num3;
150 vector2.X *= 0f;
151 num += PlaySegment_TextRoll(num, "CreditsRollCategory_Webmaster", vector2).totalTime;
152 num += num3;
154 num += num3;
155 num += PlaySegment_TextRoll(num, "CreditsRollCategory_Playtesting", vector2).totalTime;
156 num += num3;
158 num += num3;
159 num += PlaySegment_TextRoll(num, "CreditsRollCategory_SpecialThanksto", vector2).totalTime;
160 num += num3;
162 num += num3;
163 num += PlaySegment_TextRoll(num, "CreditsRollCategory_EndingNotes", vector2).totalTime;
164 num += num6;
165 _endTime = num + 10;
167 }
168
170 {
171 sceneAnchorPosition.Y += 40f;
172 int num = -2;
173 int num2 = 2;
174 List<int> list = new List<int> { 228, 178, 550, 208, 160, 209 };
175 List<int> list2 = new List<int> { 353, 633, 207, 588, 227, 368 };
176 List<int> list3 = new List<int> { 22, 19, 18, 17, 38, 54, 108 };
177 List<int> list4 = new List<int> { 663, 20, 441, 107, 124, 229, 369 };
179 for (int i = 0; i < list.Count; i++)
180 {
181 int npcType = list[i];
182 list5.Add(new SimplifiedNPCInfo(npcType, new Vector2(num - i, -1f)));
183 }
184 for (int j = 0; j < list3.Count; j++)
185 {
186 int npcType2 = list3[j];
187 list5.Add(new SimplifiedNPCInfo(npcType2, new Vector2((float)(num - j) + 0.5f, 0f)));
188 }
189 for (int k = 0; k < list2.Count; k++)
190 {
191 int npcType3 = list2[k];
192 list5.Add(new SimplifiedNPCInfo(npcType3, new Vector2(num2 + k, -1f)));
193 }
194 for (int l = 0; l < list4.Count; l++)
195 {
196 int npcType4 = list4[l];
197 list5.Add(new SimplifiedNPCInfo(npcType4, new Vector2((float)(num2 + l) - 0.5f, 0f)));
198 }
199 int num3 = 240;
200 int num4 = 400;
201 int num5 = num4 + num3;
203 Rectangle rectangle = val.Frame();
204 DrawData data = new DrawData(val.Value, Vector2.Zero, rectangle, Color.White, 0f, rectangle.Size() * new Vector2(0.5f, 1f) + new Vector2(0f, -92f), 1f, SpriteEffects.None);
206 .Then(new Actions.Sprites.Fade(0f, 85));
208 foreach (SimplifiedNPCInfo item3 in list5)
209 {
211 }
212 float num6 = 3f;
213 float num7 = -0.05f;
214 int num8 = 60;
215 float num9 = num6 * (float)num8 + num7 * ((float)(num8 * num8) * 0.5f);
216 int num10 = startTime + num3;
217 int num11 = 51;
219 .With(new Actions.Players.Fade(1f, num8))
220 .Then(new Actions.Players.Wait(num4 / 2))
221 .With(new Actions.Players.MoveWithAcceleration(new Vector2(0f, num6), new Vector2(0f, num7), num8))
222 .Then(new Actions.Players.Wait(num4 / 2 - 60))
223 .With(new Actions.Players.LookAt(-1))
224 .Then(new Actions.Players.Wait(120))
225 .With(new Actions.Players.LookAt(1))
226 .Then(new Actions.Players.Fade(0f, 85));
228 SegmentInforReport result = default(SegmentInforReport);
229 result.totalTime = num5 + 85 + 60;
230 return result;
231 }
232
234 {
235 int num = 0;
236 float num2 = 4f;
237 float num3 = 0.2f;
238 float num4 = num2 * 2f / num3;
239 int num5 = NPCID.Sets.AttackType[npcType] * 6 + npcType % 13 * 2 + 20;
240 int num6 = 0;
241 if (npcType % 7 != 0)
242 {
243 num6 = 0;
244 }
245 bool num7 = npcType == 663 || npcType == 108;
246 bool flag = false;
247 if (num7)
248 {
249 num6 = 180;
250 }
251 int num8 = 240;
252 int num9 = lookDirection;
253 int num10 = -1;
254 int duration2 = 0;
255 switch (npcType)
256 {
257 case 54:
258 case 107:
259 case 227:
260 case 229:
261 case 353:
262 case 550:
263 case 663:
264 num9 *= -1;
265 break;
266 }
267 if ((uint)(npcType - 207) <= 2u || npcType == 228 || (uint)(npcType - 368) <= 1u)
268 {
269 flag = true;
270 }
271 switch (npcType)
272 {
273 case 107:
274 num10 = 0;
275 break;
276 case 208:
277 num10 = 127;
278 break;
279 case 353:
280 num10 = 136;
281 break;
282 case 54:
283 num10 = 126;
284 break;
285 case 368:
286 num10 = 15;
287 break;
288 case 229:
289 num10 = 85;
290 break;
291 }
292 if (num10 != -1)
293 {
294 duration2 = npcType % 6 * 20 + 60;
295 }
296 int num11 = duration - timeToJumpAt - num - num8;
298 if (flag)
299 {
301 }
303 .Then(new Actions.NPCs.MoveWithAcceleration(new Vector2(0f, 0f - num2), new Vector2(0f, num3), (int)num4))
304 .With(new Actions.NPCs.Move(new Vector2(0f, 1E-05f), (int)num4))
305 .Then(new Actions.NPCs.Wait(num11 - 90 + num5))
306 .Then(new Actions.NPCs.Wait(90 - num5));
307 if (num6 > 0)
308 {
310 }
312 if (npcType == 663)
313 {
315 }
316 if (num10 != -1)
317 {
319 }
321 }
322
323 private void AddEmote(Vector2 sceneAnchoePosition, int fromTime, int duration, int blinkTime, int emoteId, int direction)
324 {
327 }
328
330 {
331 anchorOffset.Y -= 40f;
332 int num = 80;
334 for (int i = 0; i < array.Length; i++)
335 {
337 }
338 SegmentInforReport result = default(SegmentInforReport);
339 result.totalTime = array.Length * num + num * -1;
340 return result;
341 }
342
344 {
346 DrawData data = new DrawData(val.Value, Vector2.Zero, null, Color.White, 0f, val.Size() / 2f, 0.25f, SpriteEffects.None);
348 .Then(new Actions.Sprites.Fade(0f, 60));
350 SegmentInforReport result = default(SegmentInforReport);
351 result.totalTime = (int)animationSegmentWithActions.DedicatedTimeNeeded;
352 return result;
353 }
354
356 {
358 int num = startTime;
359 int num2 = 0;
360 sceneAnchorPosition.X += num2;
361 int num3 = 30;
362 int num4 = 10;
364 Rectangle rectangle = val.Frame();
365 DrawData data = new DrawData(val.Value, Vector2.Zero, rectangle, Color.White, 0f, rectangle.Size() * new Vector2(0.5f, 1f) + new Vector2(num2, -42f), 1f, SpriteEffects.None);
367 .Then(new Actions.Sprites.Wait(120));
369 int num5 = 300;
371 .Then(new Actions.NPCs.Move(new Vector2(-1f, 0f), 120));
373 .Then(new Actions.NPCs.Move(new Vector2(-1f, 0f), 120));
375 Rectangle rectangle2 = val2.Frame(1, 8);
376 DrawData data2 = new DrawData(val2.Value, Vector2.Zero, rectangle2, Color.White, 0f, rectangle2.Size() * new Vector2(0.5f, 1f), 1f, SpriteEffects.None);
378 num += (int)animationSegmentWithActions3.DedicatedTimeNeeded;
379 int num6 = 90;
380 animationSegmentWithActions3.Then(new Actions.NPCs.Move(new Vector2(-1f, 0f), 90));
381 animationSegmentWithActions2.Then(new Actions.NPCs.Move(new Vector2(-1f, 0f), 30));
384 num += 90;
385 int num7 = num6 * 5;
386 int num8 = num4 + num5 - 120 - 30;
387 int num9 = num4 + num5 - 120 - 106 - num3;
399 num += num7;
400 animationSegmentWithActions3.Then(new Actions.NPCs.Move(new Vector2(-1f, 0f), 30));
403 num += 30;
404 Main.instance.LoadNPC(550);
406 Rectangle rectangle3 = val3.Frame(1, Main.npcFrameCount[550]);
407 DrawData data3 = new DrawData(val3.Value, Vector2.Zero, rectangle3, Color.White, 0f, rectangle3.Size() * new Vector2(0.5f, 1f), 1f, SpriteEffects.None);
409 animationSegmentWithActions5.Then(new Actions.Sprites.SimulateGravity(new Vector2(-0.2f, -0.35f), Vector2.Zero, 0f, 80)).With(new Actions.Sprites.SetFrameSequence(80, new Point[13]
410 {
411 new Point(0, 2),
412 new Point(0, 3),
413 new Point(0, 4),
414 new Point(0, 5),
415 new Point(0, 6),
416 new Point(0, 7),
417 new Point(0, 8),
418 new Point(0, 9),
419 new Point(0, 10),
420 new Point(0, 11),
421 new Point(0, 12),
422 new Point(0, 13),
423 new Point(0, 14)
424 }, 4, 0, 0)).With(new Actions.Sprites.Fade(0f, 85));
427 num += 80;
429 {
430 new Point(0, 0),
431 new Point(0, 1),
432 new Point(0, 2),
433 new Point(0, 3),
434 new Point(0, 4),
435 new Point(0, 5),
436 new Point(0, 6),
437 new Point(0, 7)
438 }, 5, 0, 0));
445 num += 187;
456 SegmentInforReport result = default(SegmentInforReport);
457 result.totalTime = num - startTime;
458 return result;
459 }
460
462 {
464 int num = startTime;
465 int num2 = 30;
466 sceneAnchorPosition.X += num2;
467 int num3 = 60;
469 Rectangle rectangle = val.Frame();
470 DrawData data = new DrawData(val.Value, Vector2.Zero, rectangle, Color.White, 0f, rectangle.Size() * new Vector2(0.5f, 1f) + new Vector2(num2, -42f), 1f, SpriteEffects.None);
472 .Then(new Actions.Sprites.Wait(60));
474 val = TextureAssets.Extra[233];
475 rectangle = val.Frame();
476 data = new DrawData(val.Value, Vector2.Zero, rectangle, Color.White, 0f, rectangle.Size() * new Vector2(0.5f, 1f) + new Vector2(num2, -42f), 1f, SpriteEffects.None);
478 .Then(new Actions.Sprites.Wait(60));
482 Rectangle rectangle2 = val2.Frame(1, 21);
483 DrawData data2 = new DrawData(val2.Value, Vector2.Zero, rectangle2, Color.White, 0f, rectangle2.Size() * new Vector2(0.5f, 1f), 1f, SpriteEffects.None);
485 spriteSegment.Then(new Actions.Sprites.Fade(0f)).With(new Actions.Sprites.Fade(1f, 60)).Then(new Actions.Sprites.Wait(60));
487 Rectangle rectangle3 = val3.Frame(1, 2);
488 DrawData data3 = new DrawData(val3.Value, Vector2.Zero, rectangle3, Color.White, 0f, rectangle3.Size() * new Vector2(0.5f, 1f), 1f, SpriteEffects.None);
490 spriteSegment2.Then(new Actions.Sprites.Fade(0f)).With(new Actions.Sprites.Fade(1f, 60)).Then(new Actions.Sprites.Wait(60));
491 num += (int)spriteSegment.DedicatedTimeNeeded;
492 int num4 = 120;
494 {
495 new Point(0, 0),
496 new Point(0, 1)
497 }, 10, 0, 0));
501 num += num4;
502 Point[] array = new Point[29]
503 {
504 new Point(0, 2),
505 new Point(0, 3),
506 new Point(0, 4),
507 new Point(0, 5),
508 new Point(0, 6),
509 new Point(0, 7),
510 new Point(0, 8),
511 new Point(0, 9),
512 new Point(0, 10),
513 new Point(0, 11),
514 new Point(0, 12),
515 new Point(0, 13),
516 new Point(0, 14),
517 new Point(0, 15),
518 new Point(0, 16),
519 new Point(0, 17),
520 new Point(0, 18),
521 new Point(0, 19),
522 new Point(0, 20),
523 new Point(0, 15),
524 new Point(0, 16),
525 new Point(0, 17),
526 new Point(0, 18),
527 new Point(0, 19),
528 new Point(0, 20),
529 new Point(0, 17),
530 new Point(0, 18),
531 new Point(0, 19),
532 new Point(0, 20)
533 };
534 int num5 = 6;
535 int num6 = num5 * array.Length;
537 int durationInFrames = num6 / 2;
539 spriteSegment2.Then(new Actions.Sprites.SetFrame(0, 1, 0, 0));
543 num += num6;
544 array = new Point[4]
545 {
546 new Point(0, 17),
547 new Point(0, 18),
548 new Point(0, 19),
549 new Point(0, 20)
550 };
551 spriteSegment.Then(new Actions.Sprites.SetFrameSequence(187, array, num5, 0, 0)).With(new Actions.Sprites.Fade(0f, 127));
552 spriteSegment2.Then(new Actions.Sprites.Fade(0f, 127));
554 num += 187;
557 SegmentInforReport result = default(SegmentInforReport);
558 result.totalTime = num - startTime;
559 return result;
560 }
561
563 {
565 int num = startTime;
566 int num2 = 0;
567 sceneAnchorPosition.X += num2;
568 int num3 = 120;
570 Rectangle rectangle = val.Frame();
571 DrawData data = new DrawData(val.Value, Vector2.Zero, rectangle, Color.White, 0f, rectangle.Size() * new Vector2(0.5f, 1f) + new Vector2(num2, -42f), 1f, SpriteEffects.None);
573 .Then(new Actions.Sprites.Wait(120));
576 .Then(new Actions.NPCs.Move(new Vector2(0.5f, 0f), 120));
578 .Then(new Actions.NPCs.Wait(120));
580 Rectangle rectangle2 = val2.Frame(1, 8);
581 DrawData data2 = new DrawData(val2.Value, Vector2.Zero, rectangle2, Color.White, 0f, rectangle2.Size() * new Vector2(0.5f, 1f), 1f, SpriteEffects.FlipHorizontally);
583 num += (int)animationSegmentWithActions2.DedicatedTimeNeeded;
584 int num4 = 120;
585 int num5 = 90;
590 num += num4;
592 int num6 = num4 + 30;
597 num += num6;
600 num += num5;
604 num += num4;
609 num += num4;
612 {
613 new Point(0, 0),
614 new Point(0, 1),
615 new Point(0, 2),
616 new Point(0, 3),
617 new Point(0, 4),
618 new Point(0, 5),
619 new Point(0, 6),
620 new Point(0, 7)
621 }, 5, 0, 0));
626 num += 187;
635 SegmentInforReport result = default(SegmentInforReport);
636 result.totalTime = num - startTime;
637 return result;
638 }
639
641 {
643 int num = startTime;
644 int num2 = 0;
645 sceneAnchorPosition.X += num2;
646 int num3 = 60;
648 Rectangle rectangle = val.Frame();
649 DrawData data = new DrawData(val.Value, Vector2.Zero, rectangle, Color.White, 0f, rectangle.Size() * new Vector2(0.5f, 1f) + new Vector2(num2, -42f), 1f, SpriteEffects.None);
651 .Then(new Actions.Sprites.Wait(120));
654 .Then(new Actions.NPCs.Move(new Vector2(0.5f, 0f), 120));
656 .Then(new Actions.NPCs.Move(new Vector2(0.5f, 0f), 120));
657 Point[] frameIndices = new Point[5]
658 {
659 new Point(0, 3),
660 new Point(0, 4),
661 new Point(0, 5),
662 new Point(0, 6),
663 new Point(0, 7)
664 };
665 Point[] frameIndices2 = new Point[4]
666 {
667 new Point(0, 3),
668 new Point(0, 2),
669 new Point(0, 1),
670 new Point(0, 0)
671 };
672 Main.instance.LoadNPC(199);
674 Rectangle rectangle2 = val2.Frame(1, Main.npcFrameCount[199]);
675 DrawData data2 = new DrawData(val2.Value, Vector2.Zero, rectangle2, Color.White, 0f, rectangle2.Size() * new Vector2(0.5f, 1f), 1f, SpriteEffects.None);
676 new DrawData(val2.Value, Vector2.Zero, rectangle2, Color.White, 0f, rectangle2.Size() * new Vector2(0.5f, 1f), 1f, SpriteEffects.FlipHorizontally);
678 .Then(new Actions.NPCs.Wait(120));
680 .Then(new Actions.Sprites.SimulateGravity(new Vector2(-1f, 0f), Vector2.Zero, 0f, 120))
681 .With(new Actions.Sprites.SetFrameSequence(120, frameIndices, 6, 0, 0));
682 num += (int)animationSegmentWithActions2.DedicatedTimeNeeded;
683 int num4 = 120;
685 int num5 = 6;
691 num += num4;
692 int durationInFrames = num4 - num5 * 4;
701 num += num4;
702 int num6 = 60;
704 animationSegmentWithActions2.Then(new Actions.NPCs.Move(new Vector2(0.5f, 0f), num6));
708 num += num6;
715 num += num4;
722 num += num4;
723 int num7 = num4 + num4 / 2;
731 num += num7;
739 num += num4;
740 animationSegmentWithActions3.Then(new Actions.NPCs.Move(new Vector2(-0.4f, 0f), 160)).With(new Actions.NPCs.Fade(2, 127));
741 animationSegmentWithActions2.Then(new Actions.NPCs.Move(new Vector2(-0.5f, 0f), 160)).With(new Actions.NPCs.Fade(2, 127));
742 animationSegmentWithActions4.Then(new Actions.NPCs.Move(new Vector2(-0.8f, 0f), 160)).With(new Actions.NPCs.Fade(2, 127));
743 animationSegmentWithActions6.Then(new Actions.NPCs.Move(new Vector2(-0.8f, 0f), 160)).With(new Actions.NPCs.Fade(2, 127));
745 num += 187;
759 SegmentInforReport result = default(SegmentInforReport);
760 result.totalTime = num - startTime;
761 return result;
762 }
763
765 {
766 return new Vector2(0f - _backgroundOffset.X, 0f);
767 }
768
770 {
772 int num = startTime;
774 Rectangle rectangle = val.Frame();
775 DrawData data = new DrawData(val.Value, Vector2.Zero, rectangle, Color.White, 0f, rectangle.Size() * new Vector2(0.5f, 1f) + new Vector2(0f, -42f), 1f, SpriteEffects.None);
778 .Then(new Actions.NPCs.Wait(10))
779 .Then(new Actions.NPCs.Fade(0));
780 num += (int)animationSegmentWithActions2.DedicatedTimeNeeded;
782 Rectangle rectangle2 = val2.Frame(1, 9);
783 DrawData data2 = new DrawData(val2.Value, Vector2.Zero, rectangle2, Color.White, 0f, rectangle2.Size() * new Vector2(0.5f, 1f), 1f, SpriteEffects.FlipHorizontally);
784 Vector2 vector = new Vector2(1f, 0f) * 60f + new Vector2(2f, 4f);
786 {
787 new Point(0, 0),
788 new Point(0, 1),
789 new Point(0, 2),
790 new Point(0, 3),
791 new Point(0, 4),
792 new Point(0, 5),
793 new Point(0, 6),
794 new Point(0, 7),
795 new Point(0, 8)
796 }, 8, 0, 0)).Then(new Actions.Sprites.Wait(30));
797 num += (int)animationSegmentWithActions3.DedicatedTimeNeeded;
798 Segments.AnimationSegmentWithActions<NPC> item = new Segments.NPCSegment(num, 46, sceneAnchorPosition + new Vector2(-100f, 0f), _originAtBottom).Then(new Actions.NPCs.Fade(255)).With(new Actions.NPCs.Fade(-5, 51)).Then(new Actions.NPCs.Move(new Vector2(1f, 0f), 60))
799 .Then(new Actions.NPCs.Wait(90))
800 .Then(new Actions.NPCs.Move(new Vector2(1f, 0f), 120))
801 .With(new Actions.NPCs.Fade(3, 85));
802 Segments.AnimationSegmentWithActions<NPC> item2 = new Segments.NPCSegment(num + 60, 299, sceneAnchorPosition + new Vector2(170f, 0f), _originAtBottom).Then(new Actions.NPCs.Fade(255)).With(new Actions.NPCs.Fade(-5, 51)).Then(new Actions.NPCs.Move(new Vector2(-1f, 0f), 60))
803 .Then(new Actions.NPCs.Wait(60))
804 .Then(new Actions.NPCs.Move(new Vector2(-1f, 0f), 90))
805 .Then(new Actions.NPCs.Move(new Vector2(-1f, 0f), 85))
806 .With(new Actions.NPCs.Fade(3, 85));
807 float x = 1.5f;
808 Segments.AnimationSegmentWithActions<NPC> item3 = new Segments.NPCSegment(num + 45, 74, sceneAnchorPosition + new Vector2(-80f, -70f), _originAtBottom).Then(new Actions.NPCs.Fade(255)).With(new Actions.NPCs.Fade(-5, 51)).Then(new Actions.NPCs.Move(new Vector2(x, 0f), 85))
809 .With(new Actions.NPCs.MoveWithRotor(new Vector2(10f, 0f), (float)Math.PI * 2f / 85f, new Vector2(0f, 1f), 85))
810 .Then(new Actions.NPCs.Move(new Vector2(x, 0f), 85))
811 .With(new Actions.NPCs.MoveWithRotor(new Vector2(4f, 0f), (float)Math.PI * 2f / 85f, new Vector2(0f, 1f), 85))
812 .With(new Actions.NPCs.Fade(3, 85));
814 .With(new Actions.NPCs.Fade(-5, 51))
815 .Then(new Actions.NPCs.Wait(60))
816 .Then(new Actions.NPCs.Move(new Vector2(0.5f, 0f), 60))
817 .Then(new Actions.NPCs.Wait(60))
818 .Then(new Actions.NPCs.DoBunnyRestAnimation(90))
819 .Then(new Actions.NPCs.Wait(90))
820 .With(new Actions.NPCs.Fade(3, 120));
821 Segments.EmoteSegment item5 = new Segments.EmoteSegment(0, num + 360, 60, sceneAnchorPosition + new Vector2(36f, -10f), SpriteEffects.FlipHorizontally, Vector2.Zero);
822 animationSegmentWithActions3.Then(new Actions.Sprites.Wait(420)).Then(new Actions.Sprites.Fade(0f, 120));
823 num += 620;
824 animationSegmentWithActions.Then(new Actions.Sprites.Wait(num - startTime - 180)).Then(new Actions.Sprites.Fade(0f, 120));
833 SegmentInforReport result = default(SegmentInforReport);
834 result.totalTime = num - startTime;
835 return result;
836 }
837
839 {
841 int num = 0;
842 for (int i = 0; i < num; i++)
843 {
844 int num2 = Main.rand.NextFromList(new short[4] { 599, 1958, 3749, 1869 });
845 Main.instance.LoadItem(num2);
847 DrawData data = new DrawData(val.Value, Vector2.Zero, null, Color.White, 0f, val.Size() / 2f, 1f, SpriteEffects.None);
848 Vector2 initialVelocity = Vector2.UnitY * -12f + Main.rand.NextVector2Circular(6f, 3f).RotatedBy((float)(i - num / 2) * ((float)Math.PI * 2f) * 0.1f);
849 Vector2 gravityPerFrame = Vector2.UnitY * 0.2f;
852 }
854 .Then(new Actions.NPCs.Wait(10))
855 .Then(new Actions.NPCs.ShowItem(30, 2))
856 .Then(new Actions.NPCs.Wait(10));
858 SegmentInforReport result = default(SegmentInforReport);
859 result.totalTime = 170;
860 return result;
861 }
862
864 {
866 int num = startTime;
867 int num2 = 30;
868 sceneAnchorPosition.X += num2;
869 int num3 = 100;
871 Rectangle rectangle = val.Frame();
872 DrawData data = new DrawData(val.Value, Vector2.Zero, rectangle, Color.White, 0f, rectangle.Size() * new Vector2(0.5f, 1f) + new Vector2(num2, -42f), 1f, SpriteEffects.None);
874 .Then(new Actions.Sprites.Wait(60));
876 int num4 = 10;
878 .Then(new Actions.NPCs.Move(new Vector2(1f, 0f), 60));
880 DrawData data2 = new DrawData(val2.Value, Vector2.Zero, null, Color.White, 0f, val2.Size() * new Vector2(0.5f, 1f), 1f, SpriteEffects.None);
882 num += (int)animationSegmentWithActions2.DedicatedTimeNeeded;
883 int num5 = 90;
888 num += num5;
890 Rectangle rectangle2 = val3.Frame(1, 14);
891 DrawData data3 = new DrawData(val3.Value, Vector2.Zero, rectangle2, Color.White, 0f, rectangle2.Size() * new Vector2(0.5f, 1f), 1f, SpriteEffects.FlipHorizontally);
894 {
895 new Point(0, 1),
896 new Point(0, 2),
897 new Point(0, 3),
898 new Point(0, 4)
899 }, 5, 0, 0));
900 animationSegmentWithActions2.Then(new Actions.NPCs.Wait(20)).With(new Actions.NPCs.Fade(255));
903 num += 20;
904 int num6 = 10;
905 Main.instance.LoadItem(154);
907 DrawData drawData = new DrawData(val4.Value, Vector2.Zero, null, Color.White, 0f, val4.Size() / 2f, 1f, SpriteEffects.None);
908 Main.instance.LoadItem(1274);
910 DrawData drawData2 = new DrawData(val5.Value, Vector2.Zero, null, Color.White, 0f, val5.Size() / 2f, 1f, SpriteEffects.None);
912 for (int i = 0; i < num6; i++)
913 {
914 Vector2 initialVelocity = Vector2.UnitY * -5f + Main.rand.NextVector2Circular(2.5f, 0.3f + Main.rand.NextFloat() * 0.2f).RotatedBy((float)(i - num6 / 2) * ((float)Math.PI * 2f) * 0.1f);
915 Vector2 gravityPerFrame = Vector2.UnitY * 0.1f;
916 int targetTime = num + i * 10;
918 Asset<Texture2D> asset = val4;
919 if (i == num6 - 3)
920 {
922 asset = val5;
923 }
926 }
927 int num7 = 30 + num6 * 10;
929 {
930 new Point(0, 5),
931 new Point(0, 6),
932 new Point(0, 7),
933 new Point(0, 8)
934 }, 5, 0, 0));
938 num += num7;
940 spriteSegment.Then(new Actions.Sprites.Wait(num5)).With(new Actions.Sprites.SetFrame(0, 5, 0, 0));
944 num += num5;
946 {
947 new Point(0, 9),
948 new Point(0, 10),
949 new Point(0, 11),
950 new Point(0, 13)
951 }, 5, 0, 0));
955 num += 20;
956 int num8 = 90;
957 spriteSegment.Then(new Actions.Sprites.Fade(0f));
958 animationSegmentWithActions2.Then(new Actions.NPCs.ShowItem(num8, 3258)).With(new Actions.NPCs.Fade(-255)).With(new Actions.NPCs.LookAt(-1));
961 num += num8;
963 animationSegmentWithActions2.Then(new Actions.NPCs.Move(new Vector2(-1f, 0f), num5));
966 num += num5;
967 animationSegmentWithActions2.Then(new Actions.NPCs.Move(new Vector2(-0.5f, 0f), 120)).With(new Actions.NPCs.Fade(2, 127));
970 num += 187;
977 SegmentInforReport result = default(SegmentInforReport);
978 result.totalTime = num - startTime;
979 return result;
980 }
981
983 {
985 int num = startTime;
986 int num2 = 40;
987 sceneAnchorPosition.X += num2;
988 int num3 = 62;
990 Rectangle rectangle = val.Frame();
991 DrawData data = new DrawData(val.Value, Vector2.Zero, rectangle, Color.White, 0f, rectangle.Size() * new Vector2(0.5f, 1f) + new Vector2(num2, -42f), 1f, SpriteEffects.None);
993 .Then(new Actions.Sprites.Wait(60));
996 .Then(new Actions.NPCs.Wait(60));
999 Rectangle rectangle2 = val2.Frame(1, 8);
1000 DrawData data2 = new DrawData(val2.Value, Vector2.Zero, rectangle2, Color.White, 0f, rectangle2.Size() * new Vector2(0.5f, 1f), 1f, SpriteEffects.FlipHorizontally);
1002 num += (int)animationSegmentWithActions2.DedicatedTimeNeeded;
1003 int num4 = 90;
1004 int num5 = 60;
1008 num += num5;
1013 num += num4;
1017 num += num5;
1022 num += num4;
1026 num += num5;
1031 num += num4;
1035 num += num5;
1040 num += num4;
1041 int num6 = num5 + 30;
1045 num += num6;
1050 num += num4;
1054 num += num6;
1060 num += num4;
1062 {
1063 new Point(0, 0),
1064 new Point(0, 1),
1065 new Point(0, 2),
1066 new Point(0, 3),
1067 new Point(0, 4),
1068 new Point(0, 5),
1069 new Point(0, 6),
1070 new Point(0, 7)
1071 }, 5, 0, 0));
1076 num += 187;
1087 SegmentInforReport result = default(SegmentInforReport);
1088 result.totalTime = num - startTime;
1089 return result;
1090 }
1091
1093 {
1095 int num = startTime;
1096 int num2 = 12;
1097 sceneAnchorPosition.X += num2;
1098 int num3 = 24;
1100 Rectangle rectangle = val.Frame();
1101 DrawData data = new DrawData(val.Value, Vector2.Zero, rectangle, Color.White, 0f, rectangle.Size() * new Vector2(0.5f, 1f) + new Vector2(num2, -42f), 1f, SpriteEffects.None);
1105 num += (int)animationSegmentWithActions2.DedicatedTimeNeeded;
1108 num += 60;
1112 num += (int)animationSegmentWithActions3.DedicatedTimeNeeded;
1113 int num4 = 90;
1118 num += num4;
1119 int num5 = 50;
1121 val = TextureAssets.Extra[219];
1122 rectangle = val.Frame();
1123 data = new DrawData(val.Value, Vector2.Zero, rectangle, Color.White, 0f, rectangle.Size() * new Vector2(0.5f, 1f) + new Vector2(num2, -42f), 1f, SpriteEffects.None);
1126 animationSegmentWithActions2.Then(new Actions.NPCs.Move(new Vector2(-0.4f, 0f), num5));
1128 num += num5;
1130 animationSegmentWithActions3.Then(new Actions.NPCs.Move(new Vector2(-0.6f, 0f), num4));
1131 animationSegmentWithActions2.Then(new Actions.NPCs.Move(new Vector2(-0.4f, 0f), num4));
1133 num += num4;
1134 animationSegmentWithActions3.Then(new Actions.NPCs.Move(new Vector2(-0.6f, 0f), 120)).With(new Actions.NPCs.Fade(2, 127));
1135 animationSegmentWithActions2.Then(new Actions.NPCs.Move(new Vector2(-0.4f, 0f), 120)).With(new Actions.NPCs.Fade(2, 127));
1137 num += 187;
1145 SegmentInforReport result = default(SegmentInforReport);
1146 result.totalTime = num - startTime;
1147 return result;
1148 }
1149
1151 {
1153 int num = startTime;
1154 int num2 = -28;
1155 sceneAnchorPosition.X += num2;
1156 int num3 = 40;
1158 Rectangle rectangle = val.Frame();
1159 DrawData data = new DrawData(val.Value, Vector2.Zero, rectangle, Color.White, 0f, rectangle.Size() * new Vector2(0.5f, 1f) + new Vector2(num2, -42f), 1f, SpriteEffects.None);
1161 .Then(new Actions.Sprites.Wait(60));
1164 .Then(new Actions.NPCs.Move(new Vector2(0.5f, 0f), 60));
1166 .Then(new Actions.NPCs.Move(new Vector2(0.5f, 0f), 60));
1168 .Then(new Actions.NPCs.Move(new Vector2(0.5f, 0f), 60));
1170 .Then(new Actions.NPCs.Move(new Vector2(0.5f, 0f), 60));
1171 Main.instance.LoadProjectile(748);
1173 DrawData data2 = new DrawData(val2.Value, Vector2.Zero, null, Color.White, 0f, val2.Size() / 2f, 1f, SpriteEffects.None);
1175 num += (int)animationSegmentWithActions2.DedicatedTimeNeeded;
1176 int num4 = 90;
1177 float num5 = 0.5f;
1178 animationSegmentWithActions2.Then(new Actions.NPCs.Move(new Vector2(1f * num5, 0f), num4));
1179 animationSegmentWithActions3.Then(new Actions.NPCs.Move(new Vector2(0.5f * num5, 0f), num4));
1180 animationSegmentWithActions4.Then(new Actions.NPCs.Move(new Vector2(0.6f * num5, 0f), num4));
1181 animationSegmentWithActions5.Then(new Actions.NPCs.Move(new Vector2(0.8f * num5, 0f), num4));
1184 num += num4;
1186 int num6 = (int)animationSegmentWithActions7.DedicatedTimeNeeded;
1187 animationSegmentWithActions2.Then(new Actions.NPCs.Move(new Vector2(1f * num5, 0f), num6));
1188 animationSegmentWithActions3.Then(new Actions.NPCs.Move(new Vector2(0.85f * num5, 0f), num6));
1189 animationSegmentWithActions4.Then(new Actions.NPCs.Move(new Vector2(0.7f * num5, 0f), num6));
1190 animationSegmentWithActions5.Then(new Actions.NPCs.Move(new Vector2(0.65f * num5, 0f), num6));
1193 num += num6;
1194 int num7 = 90;
1195 int num8 = num7 * 2 + num7 / 2;
1196 Segments.EmoteSegment item = new Segments.EmoteSegment(1, num, num7, sceneAnchorPosition + new Vector2(-70f + 42f * num5, 0f) + _emoteBubbleOffsetWhenOnLeft, SpriteEffects.FlipHorizontally, new Vector2(1f * num5, 0f));
1197 Segments.EmoteSegment item2 = new Segments.EmoteSegment(15, num + num7 / 2, num7, sceneAnchorPosition + new Vector2((float)(80 + num6) * num5, 0f) + _emoteBubbleOffsetWhenOnLeft, SpriteEffects.FlipHorizontally, new Vector2(1f * num5, 0f));
1198 animationSegmentWithActions7.Then(new Actions.NPCs.Move(new Vector2(1f * num5, 0f), num8));
1199 animationSegmentWithActions2.Then(new Actions.NPCs.Move(new Vector2(1f * num5, 0f), num8));
1200 animationSegmentWithActions3.Then(new Actions.NPCs.Move(new Vector2(0.72f * num5, 0f), num8));
1201 animationSegmentWithActions4.Then(new Actions.NPCs.Move(new Vector2(0.7f * num5, 0f), num8));
1202 animationSegmentWithActions5.Then(new Actions.NPCs.Move(new Vector2(0.8f * num5, 0f), num8));
1205 num += num8;
1206 animationSegmentWithActions2.Then(new Actions.NPCs.Move(new Vector2(0.5f * num5, 0f), 120)).With(new Actions.NPCs.Fade(2, 127));
1207 animationSegmentWithActions7.Then(new Actions.NPCs.Move(new Vector2(0.5f * num5, 0f), 120)).With(new Actions.NPCs.Fade(2, 127));
1208 animationSegmentWithActions3.Then(new Actions.NPCs.Move(new Vector2(0.6f * num5, 0f), 120)).With(new Actions.NPCs.Fade(2, 127));
1209 animationSegmentWithActions4.Then(new Actions.NPCs.Move(new Vector2(0.7f * num5, 0f), 120)).With(new Actions.NPCs.Fade(2, 127));
1210 animationSegmentWithActions5.Then(new Actions.NPCs.Move(new Vector2(0.6f * num5, 0f), 120)).With(new Actions.NPCs.Fade(2, 127));
1211 animationSegmentWithActions6.Then(new Actions.Sprites.SimulateGravity(new Vector2(0.5f * num5, 0f), Vector2.Zero, 0.05f, 120)).With(new Actions.Sprites.Fade(0f, 127));
1213 num += 187;
1222 SegmentInforReport result = default(SegmentInforReport);
1223 result.totalTime = num - startTime;
1224 return result;
1225 }
1226
1228 {
1230 int num = startTime;
1231 int num2 = 30;
1232 sceneAnchorPosition.X += num2;
1233 int num3 = 90;
1235 Rectangle rectangle = val.Frame();
1236 DrawData data = new DrawData(val.Value, Vector2.Zero, rectangle, Color.White, 0f, rectangle.Size() * new Vector2(0.5f, 1f) + new Vector2(num2, -42f), 1f, SpriteEffects.None);
1238 .Then(new Actions.Sprites.Wait(60));
1241 .Then(new Actions.NPCs.Wait(60));
1243 .Then(new Actions.NPCs.Move(new Vector2(-1f, 0f), 60));
1245 Rectangle rectangle2 = val2.Frame(1, 8);
1246 DrawData data2 = new DrawData(val2.Value, Vector2.Zero, rectangle2, Color.White, 0f, rectangle2.Size() * new Vector2(0.5f, 1f), 1f, SpriteEffects.FlipHorizontally);
1248 num += (int)animationSegmentWithActions2.DedicatedTimeNeeded;
1249 int num4 = 90;
1250 int num5 = num4 * 8;
1258 animationSegmentWithActions2.Then(new Actions.NPCs.Wait(num4 * 4)).Then(new Actions.NPCs.ShowItem(num4, 2673)).Then(new Actions.NPCs.Wait(num4))
1259 .Then(new Actions.NPCs.Move(new Vector2(-1f, 0f), num4));
1260 animationSegmentWithActions3.Then(new Actions.NPCs.Wait(num4 * 2)).Then(new Actions.NPCs.ShowItem(num4, 2480)).Then(new Actions.NPCs.Wait(num4 * 4))
1261 .Then(new Actions.NPCs.Move(new Vector2(-1.25f, 0f), num4));
1264 {
1265 new Point(0, 0),
1266 new Point(0, 1),
1267 new Point(0, 2),
1268 new Point(0, 3),
1269 new Point(0, 4),
1270 new Point(0, 5),
1271 new Point(0, 6),
1272 new Point(0, 7)
1273 }, 5, 0, 0));
1274 num += num5;
1275 animationSegmentWithActions2.Then(new Actions.NPCs.Move(new Vector2(-0.4f, 0f), 120)).With(new Actions.NPCs.Fade(2, 127));
1276 animationSegmentWithActions3.Then(new Actions.NPCs.Move(new Vector2(-0.75f, 0f), 120)).With(new Actions.NPCs.Fade(2, 127));
1279 num += 187;
1290 SegmentInforReport result = default(SegmentInforReport);
1291 result.totalTime = num - startTime;
1292 return result;
1293 }
1294
1296 {
1298 int num = startTime;
1299 int num2 = -35;
1300 sceneAnchorPosition.X += num2;
1301 int num3 = 34;
1303 Rectangle rectangle = val.Frame();
1304 DrawData data = new DrawData(val.Value, Vector2.Zero, rectangle, Color.White, 0f, rectangle.Size() * new Vector2(0.5f, 1f) + new Vector2(num2, -42f), 1f, SpriteEffects.None);
1306 .Then(new Actions.Sprites.Wait(60));
1309 .With(new Actions.NPCs.Fade(-5, 51))
1310 .Then(new Actions.NPCs.Wait(60));
1312 .With(new Actions.NPCs.Fade(-5, 51))
1313 .Then(new Actions.NPCs.Wait(60));
1315 .With(new Actions.NPCs.Fade(-5, 51))
1316 .Then(new Actions.NPCs.Move(new Vector2(-1f, 0f), 60));
1318 .Then(new Actions.NPCs.Fade(255))
1319 .With(new Actions.NPCs.Fade(-5, 51))
1320 .Then(new Actions.NPCs.Move(new Vector2(1f, 0f), 60));
1322 .Then(new Actions.NPCs.Move(new Vector2(-1f, 0f), 60));
1324 Rectangle rectangle2 = val2.Frame(1, 4);
1325 DrawData data2 = new DrawData(val2.Value, Vector2.Zero, rectangle2, Color.White, 0f, rectangle2.Size() * new Vector2(0.5f, 1f), 1f, SpriteEffects.FlipHorizontally);
1328 num += (int)animationSegmentWithActions2.DedicatedTimeNeeded;
1329 int num4 = 90;
1330 int num5 = num4 * 4;
1336 animationSegmentWithActions3.Then(new Actions.NPCs.Wait(num4 * 2)).Then(new Actions.NPCs.LookAt(1)).Then(new Actions.NPCs.Wait(num4))
1337 .Then(new Actions.NPCs.LookAt(-1))
1338 .Then(new Actions.NPCs.Wait(num4));
1341 animationSegmentWithActions6.Then(new Actions.NPCs.Move(new Vector2(-0.5f, 0f), num5 / 3)).Then(new Actions.NPCs.Wait(num5 / 3)).Then(new Actions.NPCs.Move(new Vector2(0.4f, 0f), num5 / 3));
1342 animationSegmentWithActions5.Then(new Actions.NPCs.Move(new Vector2(-0.6f, 0f), num5 / 3)).Then(new Actions.NPCs.Move(new Vector2(0.5f, 0f), num5 / 3)).Then(new Actions.NPCs.Wait(num5 / 3));
1343 num += num5;
1345 .With(new Actions.NPCs.Fade(-5, 51))
1346 .Then(new Actions.NPCs.Move(new Vector2(-1f, 0f), 60));
1347 int num6 = (int)animationSegmentWithActions9.DedicatedTimeNeeded - 60;
1348 num += num6;
1356 num += num4;
1376 num += num4;
1378 {
1379 new Point(0, 0),
1380 new Point(0, 1),
1381 new Point(0, 2),
1382 new Point(0, 3)
1383 }, 10, 0, 0));
1385 {
1386 new Point(0, 2),
1387 new Point(0, 3),
1388 new Point(0, 0),
1389 new Point(0, 1)
1390 }, 10, 0, 0));
1391 animationSegmentWithActions2.Then(new Actions.NPCs.Move(new Vector2(1f, 0f), 120)).With(new Actions.NPCs.Fade(2, 127));
1392 animationSegmentWithActions3.Then(new Actions.NPCs.Move(new Vector2(1f, 0f), 120)).With(new Actions.NPCs.Fade(2, 127));
1393 animationSegmentWithActions4.Then(new Actions.NPCs.Move(new Vector2(1f, 0f), 120)).With(new Actions.NPCs.Fade(2, 127));
1394 animationSegmentWithActions6.Then(new Actions.NPCs.Move(new Vector2(0.5f, 0f), 120)).With(new Actions.NPCs.Fade(2, 127));
1395 animationSegmentWithActions5.Then(new Actions.NPCs.Move(new Vector2(0.75f, 0f), 120)).With(new Actions.NPCs.Fade(2, 127));
1396 animationSegmentWithActions9.Then(new Actions.NPCs.Move(new Vector2(0.5f, 0f), 120)).With(new Actions.NPCs.Fade(2, 127));
1400 num += 187;
1419 SegmentInforReport result = default(SegmentInforReport);
1420 result.totalTime = num - startTime;
1421 return result;
1422 }
1423
1425 {
1427 int num = startTime;
1428 int num2 = -30;
1429 sceneAnchorPosition.X += num2;
1431 Rectangle rectangle = val.Frame();
1432 DrawData data = new DrawData(val.Value, Vector2.Zero, rectangle, Color.White, 0f, rectangle.Size() * new Vector2(0.5f, 1f) + new Vector2(num2, -42f), 1f, SpriteEffects.None);
1434 .Then(new Actions.Sprites.Wait(120));
1437 .Then(new Actions.NPCs.Wait(60));
1438 int num3 = 90;
1440 .Then(new Actions.NPCs.Wait(60));
1441 num += (int)animationSegmentWithActions2.DedicatedTimeNeeded;
1442 int num4 = 90 * 4;
1443 int num5 = 90;
1444 int num6 = 90 / 2;
1445 int num7 = 90 + 90 / 2;
1446 int num8 = 90 * 2;
1454 num += num4;
1455 int num9 = num3 - 30;
1456 int num10 = 120;
1458 .Then(new Actions.NPCs.Wait(20));
1459 int num11 = (int)animationSegmentWithActions4.DedicatedTimeNeeded - num10;
1460 num += num11;
1471 num += num5;
1477 num += num5;
1484 num += num5;
1485 Vector2 vector = new Vector2(-1f, 0f);
1488 int num12 = num5 + num5 / 2;
1491 animationSegmentWithActions4.Then(new Actions.NPCs.Wait(num5 / 2 + 20)).Then(new Actions.NPCs.Move(vector, num5 - 20));
1493 num += num12;
1494 animationSegmentWithActions2.Then(new Actions.NPCs.Move(new Vector2(-0.5f, 0f), 120)).With(new Actions.NPCs.Fade(2, 127));
1495 animationSegmentWithActions3.Then(new Actions.NPCs.Move(new Vector2(-0.5f, 0f), 120)).With(new Actions.NPCs.Fade(2, 127));
1496 animationSegmentWithActions4.Then(new Actions.NPCs.Move(new Vector2(-0.5f, 0f), 120)).With(new Actions.NPCs.Fade(2, 127));
1498 num += 187;
1512 SegmentInforReport result = default(SegmentInforReport);
1513 result.totalTime = num - startTime;
1514 return result;
1515 }
1516
1518 {
1520 int num = startTime;
1522 Rectangle rectangle = val.Frame();
1523 DrawData data = new DrawData(val.Value, Vector2.Zero, rectangle, Color.White, 0f, rectangle.Size() * new Vector2(0.5f, 1f) + new Vector2(0f, -42f), 1f, SpriteEffects.None);
1527 .Then(new Actions.NPCs.Wait(60));
1529 num += (int)animationSegmentWithActions2.DedicatedTimeNeeded;
1530 int num2 = 24;
1532 .Then(new Actions.NPCs.Move(new Vector2(-1f, 0f), 60));
1533 num += (int)animationSegmentWithActions3.DedicatedTimeNeeded;
1536 int num3 = 120;
1542 num += num3;
1543 animationSegmentWithActions2.Then(new Actions.NPCs.Move(new Vector2(-0.5f, 0f), 120)).With(new Actions.NPCs.Fade(2, 127));
1544 animationSegmentWithActions3.Then(new Actions.NPCs.Move(new Vector2(-0.5f, 0f), 120)).With(new Actions.NPCs.Fade(2, 127));
1546 num += 187;
1551 SegmentInforReport result = default(SegmentInforReport);
1552 result.totalTime = num - startTime;
1553 return result;
1554 }
1555
1557 {
1559 int num = startTime;
1560 int num2 = 10;
1561 sceneAnchorPosition.X += num2;
1563 Rectangle rectangle = val.Frame();
1564 DrawData data = new DrawData(val.Value, Vector2.Zero, rectangle, Color.White, 0f, rectangle.Size() * new Vector2(0.5f, 1f) + new Vector2(num2, -42f), 1f, SpriteEffects.None);
1568 .Then(new Actions.NPCs.Wait(60))
1569 .Then(new Actions.NPCs.LookAt(-1));
1571 num += (int)animationSegmentWithActions2.DedicatedTimeNeeded;
1572 int num3 = 60;
1576 num += num3;
1580 num += num3;
1581 Vector2 vector = new Vector2(1.2f, 0f);
1582 Vector2 vector2 = new Vector2(1f, 0f);
1584 .Then(new Actions.NPCs.Move(vector, 130))
1585 .With(new Actions.NPCs.Fade(2, 127));
1586 animationSegmentWithActions2.Then(new Actions.NPCs.Move(vector2, 60)).Then(new Actions.NPCs.Move(vector2, 130)).With(new Actions.NPCs.Fade(2, 127));
1587 animationSegmentWithActions.Then(new Actions.Sprites.Wait(60)).Then(new Actions.Sprites.Wait(130)).With(new Actions.Sprites.Fade(0f, 127));
1588 int num4 = 10;
1589 int num5 = 40;
1590 int timeToPlay = 70;
1599 num += 200;
1600 SegmentInforReport result = default(SegmentInforReport);
1601 result.totalTime = num - startTime;
1602 return result;
1603 }
1604}
void Add(TKey key, TValue value)
const double PI
Definition Math.cs:16
AnimationSegmentWithActions< T > Then(IAnimationSegmentAction< T > act)
Definition Segments.cs:94
PlayerSegment UseShaderEffect(IShaderEffect shaderEffect)
Definition Segments.cs:159
SpriteSegment UseShaderEffect(IShaderEffect shaderEffect)
Definition Segments.cs:391
SegmentInforReport PlaySegment_Grox_AnglerAndPirateTalkAboutFish(int startTime, Vector2 sceneAnchorPosition)
SegmentInforReport PlaySegment_TinkererAndMechanic(int startTime, Vector2 sceneAnchorPosition)
void AddEmote(Vector2 sceneAnchoePosition, int fromTime, int duration, int blinkTime, int emoteId, int direction)
SegmentInforReport PlaySegment_Grox_SantaAndTaxCollectorThrowingPresents(int startTime, Vector2 sceneAnchorPosition)
void FillSegments(List< IAnimationSegment > segmentsList, out int endTime, bool inGame)
SegmentInforReport PlaySegment_SantaItemExample(int startTime, Vector2 sceneAnchorPosition)
SegmentInforReport PlaySegment_GuideEmotingAtRainbowPanel(int startTime)
SegmentInforReport PlaySegment_Grox_GuideRunningFromZombie(int startTime, Vector2 sceneAnchorPosition)
SegmentInforReport PlaySegment_Grox_ZoologistAndPetsAnnoyGolfer(int startTime, Vector2 sceneAnchorPosition)
SegmentInforReport PlaySegment_Grox_DryadSayingByeToTavernKeep(int startTime, Vector2 sceneAnchorPosition)
SegmentInforReport PlaySegment_Grox_MerchantAndTravelingMerchantTryingToSellJunk(int startTime, Vector2 sceneAnchorPosition)
SegmentInforReport PlaySegment_TextRoll(int startTime, string sourceCategory, Vector2 anchorOffset=default(Vector2))
SegmentInforReport PlaySegment_Grox_DemolitionistAndArmsDealerArguingThenNurseComes(int startTime, Vector2 sceneAnchorPosition)
SegmentInforReport PlaySegment_ClothierChasingTruffle(int startTime, Vector2 sceneAnchorPosition)
void AddWavingNPC(int npcType, Vector2 sceneAnchoePosition, int lookDirection, int fromTime, int duration, int timeToJumpAt)
delegate void AddNPCMethod(int npcType, Vector2 sceneAnchoePosition, int lookDirection, int fromTime, int duration, int timeToJumpAt)
SegmentInforReport PlaySegment_Grox_SkeletonMerchantSearchesThroughBones(int startTime, Vector2 sceneAnchorPosition)
SegmentInforReport PlaySegment_Grox_SteampunkerRepairingCyborg(int startTime, Vector2 sceneAnchorPosition)
SegmentInforReport PlaySegment_Grox_WitchDoctorGoingToHisPeople(int startTime, Vector2 sceneAnchorPosition)
SegmentInforReport PlaySegment_DryadTurningToTree(int startTime, Vector2 sceneAnchorPosition)
void FillSegments_Test(List< IAnimationSegment > segmentsList, out int endTime)
SegmentInforReport PlaySegment_Grox_WizardPartyGirlDyeTraderAndPainterPartyWithBunnies(int startTime, Vector2 sceneAnchorPosition)
SegmentInforReport PlaySegment_PrincessAndEveryoneThanksPlayer(int startTime, Vector2 sceneAnchorPosition)
static Asset< Texture2D >[] Npc
static Asset< Texture2D >[] Projectile
static Asset< Texture2D >[] Item
static Asset< Texture2D >[] Extra
static int[] AttackType
Definition NPCID.cs:4228
static LanguageSearchFilter CreateDialogFilter(string startsWith, object substitutions)
Definition Lang.cs:388
static LocalizedText[] FindAll(Regex regex)
Definition Language.cs:55
static int[] npcFrameCount
Definition Main.cs:2002
static Main instance
Definition Main.cs:283
static UnifiedRandom rand
Definition Main.cs:1387
void SpawnNPC(AddNPCMethod methodToUse, Vector2 baseAnchor, int startTime, int totalSceneTime)