{"TotalCount":19,"Files":[{"Ident":"dogecoin.niulai","Path":"Chatter.cs","FileName":"Chatter.cs","PackageType":"game","CodeKind":"Game","AssetVersionId":443544,"IsPrivate":false,"Code":"namespace NiuLai;\n\n/// \u003Csummary\u003ENon-blocking movie mutter. Walk while the grassland talks.\u003C/summary\u003E\npublic static class Chatter\n{\n\tpublic static string Who { get; private set; } = \u0022\u0022;\n\tpublic static string Cn { get; private set; } = \u0022\u0022;\n\tpublic static string En { get; private set; } = \u0022\u0022;\n\tpublic static float Left { get; private set; }\n\tpublic static int Version { get; private set; }\n\tpublic static bool Visible =\u003E Left \u003E 0f \u0026\u0026 !string.IsNullOrEmpty( Cn );\n\n\tpublic static void Say( string who, Line line, float sec = 2.7f )\n\t{\n\t\tif ( GameState.Talking || FilmCut.Playing )\n\t\t\treturn;\n\t\tif ( string.IsNullOrEmpty( line.Cn ) )\n\t\t\treturn;\n\n\t\tWho = who ?? \u0022\u0022;\n\t\tCn = line.Cn;\n\t\tEn = line.En ?? \u0022\u0022;\n\t\tLeft = sec;\n\t\tVersion\u002B\u002B;\n\t}\n\n\tpublic static void Tick( float dt )\n\t{\n\t\tif ( Left \u003C= 0f )\n\t\t\treturn;\n\t\tLeft -= dt;\n\t\tif ( Left \u003C= 0f )\n\t\t{\n\t\t\tLeft = 0f;\n\t\t\tVersion\u002B\u002B;\n\t\t}\n\t}\n\n\tpublic static Line Pick( Line[] pool )\n\t{\n\t\tif ( pool is not { Length: \u003E 0 } )\n\t\t\treturn default;\n\t\treturn pool[Random.Shared.Int( 0, pool.Length - 1 )];\n\t}\n}\n"},{"Ident":"dogecoin.niulai","Path":"GameBootstrap.cs","FileName":"GameBootstrap.cs","PackageType":"game","CodeKind":"Game","AssetVersionId":443544,"IsPrivate":false,"Code":"namespace NiuLai;\n\n/// \u003Csummary\u003EScene root. Builds the grassland on play.\u003C/summary\u003E\npublic sealed class GameBootstrap : Component\n{\n\tfloat _stingIn = 0.4f;\n\n\tprotected override void OnStart()\n\t{\n\t\tLog.Info( $\u0022[Niu Lai] {GameInfo.Package} {GameInfo.VersionLabel} boot\u0022 );\n\t\tGameFlow.ApplyMouse();\n\t\tTrophies.Unlock( \u0022five_year\u0022 );\n\t}\n\n\tprotected override void OnUpdate()\n\t{\n\t\tif ( _stingIn \u003E 0f )\n\t\t{\n\t\t\t_stingIn -= Time.Delta;\n\t\t\tif ( _stingIn \u003C= 0f \u0026\u0026 GameFlow.Screen == GameScreen.Title )\n\t\t\t\tGameAudio.PlayTitleSting();\n\t\t}\n\n\t\tTrophies.Tick( Time.Delta );\n\t\tFilmCut.Tick( Time.Delta );\n\t\tChatter.Tick( Time.Delta );\n\n\t\tif ( GameFlow.Screen == GameScreen.Playing )\n\t\t{\n\t\t\tGameState.Tick( Time.Delta );\n\t\t\tCalfPlayer.Instance?.RefreshPrompt();\n\t\t\tTrophies.Evaluate();\n\t\t}\n\n\t\tif ( GameFlow.Screen == GameScreen.Title \u0026\u0026 Input.Pressed( \u0022Submit\u0022 ) )\n\t\t\tGameFlow.StartNewGame();\n\t}\n}\n"},{"Ident":"dogecoin.niulai","Path":"Lines.cs","FileName":"Lines.cs","PackageType":"game","CodeKind":"Game","AssetVersionId":443544,"IsPrivate":false,"Code":"namespace NiuLai;\n\npublic readonly record struct Line( string Cn, string En );\n\npublic static class Lines\n{\n\tpublic static readonly Line[] Opening =\n\t{\n\t\tnew( \u0022\u521A\u51FA\u751F\u3002\u8DB4\u7740\u3002\u7AD9\u4E0D\u8D77\u6765\u3002\u0022, \u0022Just born. Lie down. Cannot stand.\u0022 ),\n\t\tnew( \u0022\u5988\u5988\u8BF4\uFF1A\u90A3\u5C31\u53EB\u4F60\u725B\u6765\u3002\u725B\uFF0C\u6765\u3002\u7AD9\u8D77\u6765\u3002\u0022, \u0022Mama say: then call you Niu Lai. Cow, come. Stand up.\u0022 ),\n\t\tnew( \u0022\u725B\u7FA4\u5DF2\u7ECF\u8D70\u4E86\u3002\u6211\u4EEC\u8D70\u5F97\u6BD4\u8F83\u6162\u3002\u0022, \u0022Herd already walk. We walk more slow.\u0022 ),\n\t\tnew( \u0022\u997F\u4E86\u5C31\u5403\u8349\u3002\u8349\u662F\u514D\u8D39\u7684\u3002\u522B\u7761\u89C9\u3002\u0022, \u0022Hungry then eat grass. Grass is free. Don\u0027t sleep.\u0022 ),\n\t};\n\n\tpublic static readonly Line[] MomIntro =\n\t{\n\t\tnew( \u0022\u5B69\u5B50\uFF0C\u6162\u6162\u8D70\u3002\u5988\u5988\u5728\u3002\u0022, \u0022Child, walk slow. Mama is here.\u0022 ),\n\t\tnew( \u0022\u7741\u5F00\u773C\u775B\u3002\u522B\u7761\u89C9\u3002\u0022, \u0022Open eye. Don\u0027t sleep.\u0022 ),\n\t\tnew( \u0022\u4F60\u6162\u70B9\u3002\u0022, \u0022You slow a bit.\u0022 ),\n\t};\n\n\tpublic static readonly Line[] MomMilk =\n\t{\n\t\tnew( \u0022\u8C79\u62C9\u8981\u559D\u5976\uFF1F\u0022, \u0022Bao La want drink milk?\u0022 ),\n\t\tnew( \u0022\u597D\u3002\u8FD9\u662F\u5988\u5988\u7684\u3002\u676F\u5B50\u6709\u70B9\u6B6A\u3002\u0022, \u0022Okay. This is Mama\u0027s. Cup a bit crooked.\u0022 ),\n\t\tnew( \u0022\u62FF\u53BB\u3002\u5C0F\u5FC3\u6D12\u4E86\u3002\u4E94\u5E74\u624B\u6413\u7684\u3002\u0022, \u0022Take. Careful spill. Five-year handmade.\u0022 ),\n\t};\n\n\tpublic static readonly Line[] MomSlow =\n\t{\n\t\tnew( \u0022\u4F60\u6162\u70B9\u3002\u8DD1\u90A3\u4E48\u5FEB\u5E72\u4EC0\u4E48\u3002\u0022, \u0022You slow a bit. Run so fast do what.\u0022 ),\n\t};\n\n\tpublic static readonly Line[] MomSleep =\n\t{\n\t\tnew( \u0022\u7741\u5F00\u773C\u775B\uFF01\u522B\u7761\u89C9\uFF01\u0022, \u0022Open eye! Don\u0027t sleep!\u0022 ),\n\t\tnew( \u0022\u8FC1\u5F99\u4E0D\u662F\u5348\u7761\u3002\u0022, \u0022Migration is not nap.\u0022 ),\n\t};\n\n\tpublic static readonly Line[] Grass =\n\t{\n\t\tnew( \u0022\u8349\u6709\u70B9\u786C\u3002\u50CF\u5EFA\u6A21\u3002\u0022, \u0022Grass a bit hard. Like the model.\u0022 ),\n\t\tnew( \u0022\u5403\u5B8C\u611F\u89C9\u81EA\u5DF1\u5927\u4E86\u4E00\u70B9\u3002\u0022, \u0022After eat I feel I bigger a little.\u0022 ),\n\t\tnew( \u0022\u5988\u5988\u8BF4\u8349\u662F\u514D\u8D39\u7684\u3002\u0022, \u0022Mama say grass is free.\u0022 ),\n\t\tnew( \u0022\u8FD9\u4E00\u4E1B\u548C\u90A3\u4E00\u4E1B\u5BF9\u4E0D\u4E0A\u3002\u0022, \u0022This tuft and that tuft not meet.\u0022 ),\n\t\tnew( \u0022\u518D\u6765\u4E00\u4E1B\u3002\u52C7\u6C14\u5728\u8349\u91CC\u3002\u0022, \u0022One more tuft. Courage inside grass.\u0022 ),\n\t\tnew( \u0022\u5403\u9971\u4E86\u518D\u53BB\u4E0D\u597D\u5417\u3002\u518D\u5403\u4E00\u53E3\u3002\u0022, \u0022Eat full then go, not better? One more bite.\u0022 ),\n\t\tnew( \u0022\u514D\u8D39\u7684\u3002\u4E94\u5E74\u624B\u6413\u7684\u514D\u8D39\u3002\u0022, \u0022Free. Five-year handmade free.\u0022 ),\n\t};\n\n\tpublic static readonly Line[] GrassBack =\n\t{\n\t\tnew( \u0022\u8349\u53C8\u957F\u56DE\u6765\u4E86\u3002\u8FD8\u662F\u514D\u8D39\u3002\u0022, \u0022Grass grow back. Still free.\u0022 ),\n\t\tnew( \u0022\u5EFA\u6A21\u5237\u65B0\u4E86\u3002\u5473\u9053\u4E00\u6837\u3002\u0022, \u0022Model refresh. Taste same.\u0022 ),\n\t};\n\n\tpublic static readonly Line[] MooLines =\n\t{\n\t\tnew( \u0022\u54DE\u2014\u2014\u2014\u2014\u0022, \u0022MOO\u2014\u2014\u2014\u2014\u0022 ),\n\t\tnew( \u0022\u65F6\u95F4\u4F1A\u8BC1\u660E\u725B\u6765\u7684\u3002\u0022, \u0022Time will prove Niu Lai.\u0022 ),\n\t\tnew( \u0022\u8FD9\u4E00\u58F0\u6709\u70B9\u6B6A\u3002\u0022, \u0022This moo a bit crooked.\u0022 ),\n\t\tnew( \u0022\u9662\u7EBF\u5F55\u97F3\u6536\u5F55\u4E86\u3002\u0022, \u0022Theater tape record it.\u0022 ),\n\t};\n\n\tpublic static readonly Line[] Gossip =\n\t{\n\t\tnew( \u0022\u4ED6\u8D70\u5F97\u592A\u6162\u3002\u8EAB\u4EFD\u4E5F\u4E0D\u5BF9\u3002\u0022, \u0022He walk too slow. Identity also not right.\u0022 ),\n\t\tnew( \u0022\u8C79\u5B50\u4E3A\u4EC0\u4E48\u8DDF\u7740\u3002\u8349\u4F1A\u88AB\u5403\u5B8C\u5417\u3002\u0022, \u0022Why leopard follow. Grass will eat finish?\u0022 ),\n\t\tnew( \u0022\u542C\u8BF4\u53F0\u8F66\u4F1A\u8D8A\u6765\u8D8A\u5927\u3002\u0022, \u0022Hear cart will more and more big.\u0022 ),\n\t\tnew( \u0022\u4E91\u96C0\u8EBA\u5728\u5730\u4E0A\u4E5F\u7B97\u98DE\u3002\u0022, \u0022Lark lie on ground also count as fly.\u0022 ),\n\t\tnew( \u0022\u5988\u5988\u8BF4\u522B\u7761\u89C9\u3002\u4ED6\u8FD8\u662F\u7761\u3002\u0022, \u0022Mama say don\u0027t sleep. He still sleep.\u0022 ),\n\t};\n\n\tpublic static readonly Line[] Orb =\n\t{\n\t\tnew( \u0022\u6811\u4E0A\u7684\u7403\u4E5F\u80FD\u5403\uFF1F\u6709\u70B9\u751C\u3002\u0022, \u0022Ball on tree also can eat? A bit sweet.\u0022 ),\n\t\tnew( \u0022\u8FD9\u4E0D\u662F\u8349\u3002\u4F46\u7ECF\u8D39\u8BF4\u7B97\u8349\u3002\u0022, \u0022This not grass. But budget say count grass.\u0022 ),\n\t};\n\n\tpublic static readonly Line[] MaskCow =\n\t{\n\t\tnew( \u0022\u6211\u6CA1\u75C5\u3002\u8FD9\u662F\u5EFA\u6A21\u3002\u0022, \u0022I not sick. This is the model.\u0022 ),\n\t\tnew( \u0022\u53E3\u7F69\u662F\u8D34\u4E0A\u53BB\u7684\u3002\u6458\u4E0D\u4E0B\u6765\u3002\u0022, \u0022Mask is stuck on. Cannot take off.\u0022 ),\n\t};\n\n\tpublic static readonly Line[] ExtraMilk =\n\t{\n\t\tnew( \u0022\u518D\u6765\u4E00\u70B9\u3002\u8FD8\u662F\u5C11\u4E86\u5988\u5988\u7684\u5473\u9053\u3002\u0022, \u0022A little more. Still missing Mama flavor.\u0022 ),\n\t\tnew( \u0022\u7238\u7238\u7684\u4E13\u5C5E\u53EF\u4EE5\u7EED\u676F\u5417\u3002\u0022, \u0022Papa exclusive can refill?\u0022 ),\n\t};\n\n\tpublic static readonly Line[] Tail =\n\t{\n\t\tnew( \u0022\u554A\u2014\u2014\u5C0F\u7EF3\u5934\uFF01\u0022, \u0022Ah \u2014 Little Rope-Head!\u0022 ),\n\t\tnew( \u0022\u2026\u2026\u662F\u5C3E\u5DF4\u3002\u8C79\u5B50\u7684\u3002\u6478\u9519\u4E86\u3002\u0022, \u0022\u2026\u2026Is tail. Leopard\u0027s. Touch wrong.\u0022 ),\n\t};\n\n\tpublic static readonly Line[] CreekFear =\n\t{\n\t\tnew( \u0022\u6C34\u5230\u819D\u76D6\u3002\u770B\u8D77\u6765\u50CF\u6D77\u3002\u0022, \u0022Water to knee. Look like ocean.\u0022 ),\n\t\tnew( \u0022\u4E0D\u6562\u8FC7\u3002\u5C0F\u7EF3\u5934\u5728\u540E\u9762\u4E5F\u4E0D\u6562\u3002\u0022, \u0022Dare not cross. Rope-Head behind still dare not.\u0022 ),\n\t};\n\n\tpublic static readonly Line[] Tease =\n\t{\n\t\tnew( \u0022\u90A3\u8FB9\u6709\u4E00\u6839\u7EF3\u5B50\u5728\u8D70\u8DEF\u3002\u0022, \u0022Over there one rope is walking.\u0022 ),\n\t\tnew( \u0022\u524D\u9762\u6709\u4E1C\u897F\u5012\u7740\u3002\u809A\u5B50\u7A7A\u3002\u0022, \u0022Front have something fall down. Stomach empty.\u0022 ),\n\t\tnew( \u0022\u5929\u4E0A\u90A3\u6761\u7EBF\u6B6A\u4E86\u3002\u8DDF\u7740\u6B6A\u7684\u8D70\u3002\u0022, \u0022Line in sky is crooked. Follow crooked.\u0022 ),\n\t\tnew( \u0022\u53F0\u8F66\u53C8\u5927\u4E86\u4E00\u70B9\u3002\u4F60\u6CA1\u770B\u3002\u0022, \u0022Cart bigger a little. You not look.\u0022 ),\n\t};\n\n\tpublic static readonly Line[] VoidBits =\n\t{\n\t\tnew( \u0022\u7EAF\u9ED1\u3002\u5F88\u597D\u3002\u4E0D\u7528\u753B\u6811\u3002\u0022, \u0022Pure black. Very good. No need draw tree.\u0022 ),\n\t\tnew( \u0022\u55EF\u3002\u0022, \u0022Ng.\u0022 ),\n\t\tnew( \u0022\u7ECF\u8D39\u8BF4\u8FD9\u91CC\u662F\u5185\u5FC3\u4E16\u754C\u3002\u0022, \u0022Budget say here is inside heart world.\u0022 ),\n\t};\n\n\tpublic static readonly Line[] LikeHere =\n\t{\n\t\tnew( \u0022\u53CD\u6B63\u8FD9\u513F\u633A\u597D\u3002\u6211\u559C\u6B22\u8FD9\u513F\u3002\u0022, \u0022Anyway here pretty good. I like here.\u0022 ),\n\t\tnew( \u0022\u6811\u662F\u7403\uFF0C\u6302\u5728\u68CD\u5B50\u4E0A\u3002\u5F88\u597D\u770B\u3002\u0022, \u0022Tree is ball, hang on stick. Very beautiful.\u0022 ),\n\t\tnew( \u0022\u4F60\u8D70\u4E0D\u52A8\u4E86\u4E5F\u53EF\u4EE5\u3002\u5148\u770B\u770B\u3002\u0022, \u0022You cannot walk also okay. First look.\u0022 ),\n\t};\n\n\tpublic static readonly Line[] Dream =\n\t{\n\t\tnew( \u0022\u6211\u662F\u4E91\u738E\u3002\u4E00\u53EA\u4E91\u96C0\u3002\u4ECE\u8352\u6F20\u98DE\u6765\u3002\u0022, \u0022I am Yun Ding. I am one lark. Fly from desert.\u0022 ),\n\t\tnew( \u0022\u4F60\u8D70\u4E0D\u52A8\u4E86\u3002\u90A3\u5C31\u505A\u68A6\u3002\u0022, \u0022You cannot walk. Then you dream.\u0022 ),\n\t\tnew( \u0022\u7EAF\u9ED1\u7684\u80CC\u666F\u3002\u7ECF\u8D39\u5230\u8FD9\u91CC\u3002\u0022, \u0022Pure black background. Budget arrive here.\u0022 ),\n\t\tnew( \u0022\u6211\u4EEC\u505A\u540C\u4F34\u3002\u0022, \u0022We become companion.\u0022 ),\n\t\tnew( \u0022\u613F\u610F\u5230\u6211\u80CC\u4E0A\u6765\u5417\u3002\u0022, \u0022Willing come up on my back?\u0022 ),\n\t\tnew( \u0022\u55EF\u3002\u0022, \u0022Ng.\u0022 ),\n\t};\n\n\tpublic static readonly Line[] SnakeBite =\n\t{\n\t\tnew( \u0022\u5636\u2014\u2014\u6211\u4E0D\u662F\u7EF3\u5B50\u3002\u0022, \u0022Sss \u2014 I am not rope.\u0022 ),\n\t\tnew( \u0022\u6211\u4E5F\u4E0D\u662F\u978B\u5E26\u3002\u4E5F\u4E0D\u662F\u7535\u7EBF\u3002\u0022, \u0022I also not shoelace. Also not wire.\u0022 ),\n\t\tnew( \u0022\u6211\u54AC\u4E86\u4ED6\u7684\u624B\u3002\u0022, \u0022I bite his hand.\u0022 ),\n\t\tnew( \u0022\u725B\u6765\u53EB\u6211\u5C0F\u7EF3\u5934\u3002\u4ECE\u6B64\u4ED6\u6015\u86C7\u3002\u0022, \u0022Niu Lai call me Little Rope-Head. From now he fear snake.\u0022 ),\n\t};\n\n\tpublic static readonly Line[] Creek =\n\t{\n\t\tnew( \u0022\u5C0F\u6EAA\u770B\u8D77\u6765\u5F88\u6DF1\u3002\u5176\u5B9E\u5230\u819D\u76D6\u3002\u0022, \u0022Creek look very deep. Actually to knee.\u0022 ),\n\t\tnew( \u0022\u725B\u6765\u4E0D\u6562\u8FC7\u3002\u4ED6\u4E0D\u4F1A\u6D89\u6C34\u3002\u0022, \u0022Niu Lai dare not cross. He not know wade.\u0022 ),\n\t\tnew( \u0022\u56DE\u5934\u3002\u540E\u9762\u662F\u5C0F\u7EF3\u5934\u3002\u0022, \u0022Look back. Behind is Little Rope-Head.\u0022 ),\n\t\tnew( \u0022\u53EA\u80FD\u8DF3\u3002\u8DF3\u8FC7\u53BB\u4E86\u3002\u4ED6\u66F4\u6562\u4E86\u3002\u0022, \u0022Only can jump. Jumped. He more brave now.\u0022 ),\n\t};\n\n\tpublic static readonly Line[] TailScare =\n\t{\n\t\tnew( \u0022\u554A\u2014\u2014\u5C0F\u7EF3\u5934\uFF01\u0022, \u0022Ah \u2014 Little Rope-Head!\u0022 ),\n\t\tnew( \u0022\u2026\u2026\u662F\u5C3E\u5DF4\u3002\u8C79\u5B50\u7684\u3002\u0022, \u0022\u2026\u2026Is tail. Leopard\u0027s.\u0022 ),\n\t\tnew( \u0022\u76F2\u4EBA\u6478\u8C61\u3002\u4ECA\u5929\u6478\u5230\u5C3E\u5DF4\u3002\u0022, \u0022Blind man touch elephant. Today touch tail.\u0022 ),\n\t};\n\n\tpublic static readonly Line[] Leopard =\n\t{\n\t\tnew( \u0022\u6211\u662F\u8C79\u62C9\u3002\u597D\u51E0\u5929\u6CA1\u5403\u3002\u0022, \u0022I am Bao La. Several day not eat.\u0022 ),\n\t\tnew( \u0022\u809A\u5B50\u7A7A\u3002\u5012\u5728\u8FD9\u91CC\u3002\u0022, \u0022Stomach empty. Fall down here.\u0022 ),\n\t\tnew( \u0022\u4F60\u7ED9\u6211\u7CAE\u98DF\u3002\u6211\u4E0D\u4F1A\u997F\u6B7B\u3002\u0022, \u0022You give me food. I will not starve.\u0022 ),\n\t\tnew( \u0022\u6211\u4E5F\u60F3\u559D\u5976\u3002\u6709\u676F\u5B50\u66F4\u597D\u3002\u0022, \u0022I also want drink milk. Have cup more good.\u0022 ),\n\t\tnew( \u0022\u6211\u4E5F\u60F3\u4FDD\u62A4\u725B\u7FA4\u3002\u0022, \u0022I also want protect cow group.\u0022 ),\n\t};\n\n\tpublic static readonly Line[] MilkScene =\n\t{\n\t\tnew( \u0022\uFF08\u559D\uFF09\u2026\u2026\u5C11\u4E86\u70B9\u5988\u5988\u7684\u5473\u9053\u3002\u0022, \u0022(Drink) \u2026\u2026Missing a little Mama flavor.\u0022 ),\n\t\tnew( \u0022\u725B\u6765\uFF1A\u8FD9\u662F\u7238\u7238\u7684\u4E13\u5C5E\u3002\u0022, \u0022Niu Lai: This is Papa\u0027s exclusive.\u0022 ),\n\t\tnew( \u0022\u8C79\u62C9\uFF1A\u2026\u2026\u54E6\u3002\u0022, \u0022Bao La: \u2026\u2026Oh.\u0022 ),\n\t\tnew( \u0022\u676F\u5B50\u8FD8\u5728\u3002\u5473\u89C9\u5DF2\u7ECF\u6BD5\u4E1A\u3002\u0022, \u0022Cup still here. Taste already graduate.\u0022 ),\n\t};\n\n\tpublic static readonly Line[] Suspect =\n\t{\n\t\tnew( \u0022\u6211\u662F\u725B\u4E8C\u3002\u8DDF\u4F60\u4E00\u6837\u5927\u3002\u6A21\u578B\u4E0D\u4E00\u6837\u3002\u0022, \u0022I am Niu Er. Same big as you. Model not same.\u0022 ),\n\t\tnew( \u0022\u8C79\u5B50\u4E3A\u4EC0\u4E48\u8DDF\u7740\u6211\u4EEC\u3002\u0022, \u0022Why leopard follow us.\u0022 ),\n\t\tnew( \u0022\u4ED6\u7684\u8EAB\u4EFD\u4E0D\u5BF9\u3002\u4E0D\u8981\u4FE1\u4ED6\u3002\u0022, \u0022His identity not right. Don\u0027t believe him.\u0022 ),\n\t\tnew( \u0022\u8089\u98DF\u7684\u3002\u600E\u4E48\u80FD\u4FDD\u62A4\u8349\u3002\u0022, \u0022Meat eat. How can protect grass.\u0022 ),\n\t};\n\n\tpublic static readonly Line[] RockStare =\n\t{\n\t\tnew( \u0022\u4E09\u53EA\u72FC\u3002\u5750\u7740\u3002\u770B\u4E00\u5757\u77F3\u5934\u3002\u0022, \u0022Three wolf. Sit. Look one rock.\u0022 ),\n\t\tnew( \u0022\u77F3\u5934\u4E5F\u5728\u770B\u4ED6\u4EEC\u3002\u5BF9\u4E0D\u4E0A\u89C6\u7EBF\u3002\u0022, \u0022Rock also look them. Eye-line not meet.\u0022 ),\n\t\tnew( \u0022\u5F88\u4E45\u3002\u5F88\u4E45\u3002\u7ECF\u8D39\u5728\u60F3\u4E0B\u4E00\u53E5\u3002\u0022, \u0022Long time. Long time. Budget thinking next line.\u0022 ),\n\t};\n\n\tpublic static readonly Line[] WolvesSave =\n\t{\n\t\tnew( \u0022\u72FC\u6765\u4E86\u3002\u771F\u7684\u6765\u4E86\u3002\u0022, \u0022Wolf come. Really come.\u0022 ),\n\t\tnew( \u0022\u8C79\u62C9\u4E00\u4E2A\u8D77\u8DF3\u3002\u6293\u4F4F\u6811\u679D\u3002\u0022, \u0022Bao La one jump. Grab branch.\u0022 ),\n\t\tnew( \u0022\u8FDE\u7EED\u4E24\u6B21\u5411\u540E\u5927\u56DE\u73AF\u3002\u4F53\u64CD\u3002\u0022, \u0022Two time back giant circle. Gymnastics.\u0022 ),\n\t\tnew( \u0022\u7528\u6807\u51C6\u52A8\u4F5C\u8DF3\u5230\u4E09\u53EA\u72FC\u9762\u524D\u3002\u0022, \u0022Use standard move jump to three wolf front.\u0022 ),\n\t\tnew( \u0022\u725B\u7FA4\u5374\u8BF4\uFF1A\u4ED6\u662F\u8DDF\u72FC\u4E00\u4F19\u7684\u3002\u0022, \u0022Herd say: he is with the wolf.\u0022 ),\n\t};\n\n\tpublic static readonly Line[] Ban =\n\t{\n\t\tnew( \u0022\u4E0D\u8BB8\u518D\u8DDF\u7740\u3002\u0022, \u0022Not allow follow anymore.\u0022 ),\n\t\tnew( \u0022\u8C79\u62C9\u8FD8\u662F\u6765\u3002\u72FC\u6765\u7684\u65F6\u5019\u4ED6\u8FD8\u6321\u3002\u0022, \u0022Bao La still come. When wolf come he still block.\u0022 ),\n\t\tnew( \u0022\u725B\u6765\u770B\u89C1\u4E86\u3002\u725B\u7FA4\u6CA1\u770B\u89C1\u3002\u0022, \u0022Niu Lai see it. Herd not see.\u0022 ),\n\t\tnew( \u0022\u8EAB\u4EFD\u4E0D\u5BF9\u3002\u6240\u4EE5\u770B\u4E0D\u89C1\u3002\u0022, \u0022Identity not right. So cannot see.\u0022 ),\n\t};\n\n\tpublic static readonly Line[] MomFarewell =\n\t{\n\t\tnew( \u0022\u5CE1\u8C37\u91CC\u672C\u8BE5\u4F11\u606F\u3002\u72FC\u53C8\u6765\u4E86\u3002\u0022, \u0022In canyon should rest. Wolf come again.\u0022 ),\n\t\tnew( \u0022\u8C79\u62C9\u4E0D\u5728\u3002\u4ED6\u88AB\u8D76\u8D70\u4E86\u3002\u0022, \u0022Bao La not here. They drive him away.\u0022 ),\n\t\tnew( \u0022\u5B69\u5B50\uFF0C\u5F80\u524D\u8DD1\u3002\u4E0D\u8981\u56DE\u5934\u3002\u0022, \u0022Child, run forward. Don\u0027t look back.\u0022 ),\n\t\tnew( \u0022\u5988\u5988\u53BB\u6321\u4F4F\u3002\u8FC7\u540E\u4F1A\u5408\u3002\u0022, \u0022Mama go block. Later we meet.\u0022 ),\n\t\tnew( \u0022\u4F60\u8981\u957F\u5927\u3002\u725B\uFF0C\u6765\u3002\u0022, \u0022You must grow up. Cow, come.\u0022 ),\n\t};\n\n\tpublic static readonly Line[] Cart =\n\t{\n\t\tnew( \u0022\u53F0\u8F66\u8D8A\u6765\u8D8A\u5927\u3002\u50CF\u4E00\u5217\u706B\u8F66\u3002\u0022, \u0022The cart become more and more big. Like one train.\u0022 ),\n\t\tnew( \u0022\u4E91\u738E\u8BF4\uFF1A\u522B\u5BF9\u6297\u3002\u0022, \u0022Yun Ding say: don\u0027t fight.\u0022 ),\n\t\tnew( \u0022\u725B\u6765\u4E0D\u542C\u3002\u65F6\u95F4\u4F1A\u8BC1\u660E\u725B\u6765\u7684\u3002\u0022, \u0022Niu Lai no listen. Time will prove Niu Lai.\u0022 ),\n\t\tnew( \u0022\u54DE\u2014\u2014\u2014\u2014\u0022, \u0022MOO\u2014\u2014\u2014\u2014\u0022 ),\n\t\tnew( \u0022\u518D\u54DE\u3002\u518D\u518D\u54DE\u3002\u5B83\u8FD8\u5728\u957F\u3002\u0022, \u0022Moo again. Moo again again. It still grow.\u0022 ),\n\t};\n\n\tpublic static readonly Line[] Farewell =\n\t{\n\t\tnew( \u0022\u53C8\u662F\u7EAF\u9ED1\u7684\u80CC\u666F\u3002\u0022, \u0022Again pure black background.\u0022 ),\n\t\tnew( \u0022\u4E91\u738E\uFF0C\u8C22\u8C22\u4F60\u3002\u4E00\u8DEF\u770B\u7740\u3002\u0022, \u0022Yun Ding, thank you. Whole road watching.\u0022 ),\n\t\tnew( \u0022\u55EF\u3002\u0022, \u0022Ng.\u0022 ),\n\t\tnew( \u0022\u68A6\u8BE5\u9192\u4E86\u3002\u0022, \u0022Dream should wake.\u0022 ),\n\t};\n\n\tpublic static readonly Line[] Wake =\n\t{\n\t\tnew( \u0022\u68A6\u9192\u4E86\u3002\u725B\u6765\u7AD9\u7A33\u4E86\u3002\u0022, \u0022Dream wake. Niu Lai stand stable.\u0022 ),\n\t\tnew( \u0022\u539F\u6765\u4ECE\u76F4\u7ACB\u8D70\u5F00\u59CB\u5C31\u662F\u68A6\u3002\u0022, \u0022Turns out from walk upright already is dream.\u0022 ),\n\t\tnew( \u0022\u62AC\u5934\u3002\u4E91\u96C0\u5728\u5929\u4E0A\u753B\u4E00\u6761\u7EBF\u3002\u0022, \u0022Look up. Lark in sky draw one line.\u0022 ),\n\t\tnew( \u0022\u8DDF\u7740\u5979\u7684\u98DE\u884C\u8F68\u8FF9\u8D70\u3002\u0022, \u0022Follow her fly line walk.\u0022 ),\n\t};\n\n\tpublic static readonly Line[] Dad =\n\t{\n\t\tnew( \u0022\u6211\u662F\u725B\u7238\u7238\u3002\u65CF\u7FA4\u9996\u9886\u3002\u0022, \u0022I am Cow Father. Herd boss.\u0022 ),\n\t\tnew( \u0022\u4F60\u56DE\u6765\u4E86\u3002\u7AD9\u8D77\u6765\u4E86\u3002\u0022, \u0022You come back. You stand up.\u0022 ),\n\t\tnew( \u0022\u8D70\u5427\u3002\u6211\u4EEC\u4E00\u8D77\u8D70\u3002\u0022, \u0022Walk. We walk together.\u0022 ),\n\t\tnew( \u0022\u96E8\u540E\u8F7B\u98CE\u6709\u9999\u3002\u0022, \u0022After rain, light wind have fragrance.\u0022 ),\n\t};\n\n\tpublic static readonly Line[] Ending =\n\t{\n\t\tnew( \u0022\u68A6\u9192\u4E86\u3002\u725B\u6765\u7AD9\u7A33\u4E86\u3002\u0022, \u0022Dream wake. Niu Lai stand stable.\u0022 ),\n\t\tnew( \u0022\u4E91\u96C0\u5728\u5929\u4E0A\u753B\u4E00\u6761\u7EBF\u3002\u0022, \u0022Lark in sky draw one line.\u0022 ),\n\t\tnew( \u0022\u5988\u5988\u7684\u98CE\u8FD8\u5728\u3002\u8C79\u62C9\u4E5F\u8FD8\u5728\u98CE\u91CC\u3002\u0022, \u0022Mama\u0027s wind still here. Bao La also in the wind.\u0022 ),\n\t\tnew( \u0022\u53F0\u8F66\u505C\u4E86\u3002\u77F3\u5934\u8FD8\u5728\u770B\u72FC\u3002\u0022, \u0022Cart stop. Rock still look at wolf.\u0022 ),\n\t\tnew( \u0022\u96E8\u540E\u8F7B\u98CE\u6709\u9999\u3002\u0022, \u0022After rain, light wind have fragrance.\u0022 ),\n\t};\n\n\tpublic static readonly Line[] TimeProve =\n\t{\n\t\tnew( \u0022\u65F6\u95F4\u4F1A\u8BC1\u660E\u725B\u6765\u7684\u3002\u0022, \u0022Time will prove Niu Lai.\u0022 ),\n\t};\n\n\tpublic static readonly Line[] EatFirst =\n\t{\n\t\tnew( \u0022\u5403\u9971\u4E86\u518D\u53BB\u4E0D\u597D\u5417\u3002\u0022, \u0022Eat full then go, not better?\u0022 ),\n\t\tnew( \u0022\u8349\u8FD8\u5728\u3002\u8DEF\u4E5F\u8FD8\u5728\u3002\u0022, \u0022Grass still here. Road also still here.\u0022 ),\n\t};\n\n\tpublic static readonly Line[] TooClose =\n\t{\n\t\tnew( \u0022\u7B2C\u4E00\uFF0C\u4ED6\u4E0D\u80FD\u79BB\u725B\u7FA4\u592A\u8FD1\u3002\u0022, \u0022First, he cannot leave cow group too near.\u0022 ),\n\t\tnew( \u0022\u7B2C\u4E8C\uFF0C\u8EAB\u4EFD\u4E0D\u5BF9\u3002\u0022, \u0022Second, identity not right.\u0022 ),\n\t\tnew( \u0022\u7B2C\u4E09\uFF0C\u6211\u4EEC\u8FD8\u6CA1\u60F3\u597D\u7B2C\u4E09\u3002\u0022, \u0022Third, we not yet think of third.\u0022 ),\n\t};\n\n\tpublic static readonly Line[] Protect =\n\t{\n\t\tnew( \u0022\u6025\u4EC0\u4E48\u3002\u6211\u6765\u4FDD\u62A4\u4F60\u4EEC\u3002\u0022, \u0022Rush what. I come protect you.\u0022 ),\n\t\tnew( \u0022\uFF08\u8138\u8D34\u8FC7\u6765\u3002\u9662\u7EBF\u5728\u7B11\u3002\uFF09\u0022, \u0022(Face come close. Theater is laughing.)\u0022 ),\n\t};\n\n\tpublic static readonly Line[] Headbutt =\n\t{\n\t\tnew( \u0022\u6211\u559C\u6B22\u9876\u8111\u95E8\u513F\u3002\u4F60\u662F\u600E\u4E48\u77E5\u9053\u7684\u3002\u0022, \u0022I like bump forehead. How you know.\u0022 ),\n\t\tnew( \u0022\uFF08\u4E24\u4E2A\u6A21\u578B\u5BF9\u4E0D\u9F50\u3002\u8FD8\u662F\u9876\u4E86\u3002\uFF09\u0022, \u0022(Two model not align. Still bump.)\u0022 ),\n\t};\n\n\tpublic static readonly Line[] NoRoad =\n\t{\n\t\tnew( \u0022\u6CA1\u8DEF\u4E86\u3002\u0022, \u0022No road anymore.\u0022 ),\n\t\tnew( \u0022\u53F0\u8F66\u628A\u8DEF\u5403\u4E86\u3002\u5B83\u8FD8\u5728\u957F\u3002\u0022, \u0022Cart eat the road. It still grow.\u0022 ),\n\t\tnew( \u0022\u4E91\u738E\u8BF4\u522B\u5BF9\u6297\u3002\u725B\u6765\u8BF4\u54DE\u3002\u0022, \u0022Yun Ding say don\u0027t fight. Niu Lai say moo.\u0022 ),\n\t};\n\n\tpublic static readonly Line[] CardOpen =\n\t{\n\t\tnew( \u0022\u7B2C\u4E00\u573A \u00B7 \u7741\u5F00\u773C\u775B\u0022, \u0022Scene 1 \u00B7 Open eye\u0022 ),\n\t};\n\n\tpublic static Line Quest( Beat beat ) =\u003E beat switch\n\t{\n\t\tBeat.Migrate =\u003E new( \u0022\u518D\u5403\u4E00\u4E1B\u3002\u8349\u4F1A\u56DE\u6765\u3002\u7136\u540E\u627E\u4E91\u738E\u3002\u5979\u559C\u6B22\u8FD9\u513F\u3002\u0022, \u0022Eat one more tuft. Grass come back. Then find Yun Ding. She like here.\u0022 ),\n\t\tBeat.Dream =\u003E new( \u0022\u7EAF\u9ED1\u91CC\uFF0C\u542C\u5B8C\u4E91\u738E\u3002\u613F\u610F\u5230\u5979\u80CC\u4E0A\u6765\u5417\u3002\u0022, \u0022In the black, finish listen Yun Ding. Willing come up on back?\u0022 ),\n\t\tBeat.Snake =\u003E new( \u0022\u8349\u539F\u6DF1\u5904\u6709\u4E00\u6761\u5C0F\u7EF3\u5934\u3002\u8D70\u8FD1\u3002\u5B83\u4E0D\u662F\u7EF3\u5B50\u3002\u0022, \u0022Deep grass have one Little Rope-Head. Walk near. It is not rope.\u0022 ),\n\t\tBeat.Creek =\u003E new( \u0022\u6EAA\u6C34\u5F88\u6DF1\uFF08\u5230\u819D\u76D6\uFF09\u3002\u56DE\u5934\u3002\u7136\u540E\u8DF3\u3002\u0022, \u0022Creek very deep (to knee). Look back. Then jump.\u0022 ),\n\t\tBeat.Night =\u003E new( \u0022\u8C79\u62C9\u997F\u4E86\u3002\u5148\u627E\u5988\u5988\u8981\u5976\uFF0C\u518D\u5206\u8349\u7ED9\u4ED6\u3002\u0022, \u0022Bao La hungry. First get milk from Mama, then share grass.\u0022 ),\n\t\tBeat.Suspect =\u003E new( \u0022\u53BB\u542C\u725B\u4E8C\u8BF4\u8C79\u62C9\u8EAB\u4EFD\u4E0D\u5BF9\u3002\u0022, \u0022Go hear Niu Er say Bao La identity not right.\u0022 ),\n\t\tBeat.Wolves =\u003E new( \u0022\u4E09\u53EA\u72FC\u5728\u770B\u77F3\u5934\u3002\u8D70\u8FC7\u53BB\u3002\u8C79\u62C9\u4F1A\u4F53\u64CD\u3002\u0022, \u0022Three wolf look at rock. Walk over. Bao La do gymnastics.\u0022 ),\n\t\tBeat.Ban =\u003E new( \u0022\u725B\u7FA4\u8981\u8D76\u8D70\u8C79\u62C9\u3002\u53BB\u770B\u4E00\u773C\u3002\u0022, \u0022Herd want drive Bao La away. Go look.\u0022 ),\n\t\tBeat.Canyon =\u003E new( \u0022\u5230\u5CE1\u8C37\u3002\u542C\u5988\u5988\u628A\u8BDD\u8BF4\u5B8C\u3002\u4E0D\u8981\u56DE\u5934\u3002\u0022, \u0022Go canyon. Let Mama finish. Don\u0027t look back.\u0022 ),\n\t\tBeat.Cart =\u003E new( \u0022\u53F0\u8F66\u8D8A\u6765\u8D8A\u5927\u3002\u5BF9\u7740\u5B83\u54DE\u3002\u518D\u54DE\u3002\u518D\u54DE\u3002\u0022, \u0022Cart more and more big. Moo at it. Moo again. Moo again.\u0022 ),\n\t\tBeat.Farewell =\u003E new( \u0022\u7EAF\u9ED1\u91CC\uFF0C\u548C\u4E91\u738E\u9053\u522B\u3002\u0022, \u0022In the black, say goodbye to Yun Ding.\u0022 ),\n\t\tBeat.Wake =\u003E new( \u0022\u8DDF\u7740\u5929\u4E0A\u90A3\u6761\u6B6A\u7EBF\uFF0C\u5F80\u5317\u8D70\u3002\u0022, \u0022Follow that crooked line in sky, walk north.\u0022 ),\n\t\tBeat.Reunion =\u003E new( \u0022\u53BB\u627E\u725B\u7238\u7238\u3002\u4E00\u8D77\u8D70\u3002\u0022, \u0022Go find Cow Father. Walk together.\u0022 ),\n\t\t_ =\u003E new( \u0022\u96E8\u540E\u8F7B\u98CE\u6709\u9999\u3002\u0022, \u0022After rain, light wind have fragrance.\u0022 )\n\t};\n}\n"},{"Ident":"dogecoin.niulai","Path":"FilmCut.cs","FileName":"FilmCut.cs","PackageType":"game","CodeKind":"Game","AssetVersionId":443544,"IsPrivate":false,"Code":"namespace NiuLai;\n\n/// \u003Csummary\u003E\n/// Janky in-engine cutscenes. Theater mud \u002B crowd laugh. No film stills.\n/// E skips a shot. Camera slams. Models slide.\n/// \u003C/summary\u003E\npublic enum CutId\n{\n\tNone,\n\tOpenEyes,\n\tLarkBack,\n\tEatFirst,\n\tLeopardFace,\n\tMilkDad,\n\tTooClose,\n\tHeadbutt,\n\tNoRoad,\n\tNg\n}\n\npublic static class FilmCut\n{\n\tpublic static bool Playing { get; private set; }\n\tpublic static CutId Id { get; private set; }\n\tpublic static int Shot { get; private set; }\n\tpublic static int Version { get; private set; }\n\tpublic static string CardCn { get; private set; } = \u0022\u0022;\n\tpublic static string CardEn { get; private set; } = \u0022\u0022;\n\n\tstatic float _t;\n\tstatic float _hold;\n\tstatic int _shots;\n\tstatic Action _done;\n\tstatic Vector3 _camPos;\n\tstatic Rotation _camRot;\n\tstatic GameObject _focus;\n\tstatic bool _tipped;\n\n\tpublic static void Play( CutId id, Action done = null )\n\t{\n\t\tif ( id == CutId.None )\n\t\t\treturn;\n\n\t\tId = id;\n\t\tPlaying = true;\n\t\tShot = 0;\n\t\t_t = 0;\n\t\t_done = done;\n\t\t_tipped = false;\n\t\tCardCn = \u0022\u0022;\n\t\tCardEn = \u0022\u0022;\n\t\t_shots = id switch\n\t\t{\n\t\t\tCutId.OpenEyes =\u003E 3,\n\t\t\tCutId.LarkBack =\u003E 2,\n\t\t\tCutId.EatFirst =\u003E 1,\n\t\t\tCutId.LeopardFace =\u003E 2,\n\t\t\tCutId.MilkDad =\u003E 2,\n\t\t\tCutId.TooClose =\u003E 2,\n\t\t\tCutId.Headbutt =\u003E 2,\n\t\t\tCutId.NoRoad =\u003E 2,\n\t\t\tCutId.Ng =\u003E 2,\n\t\t\t_ =\u003E 1\n\t\t};\n\t\tBeginShot();\n\t\tVersion\u002B\u002B;\n\t}\n\n\tpublic static void Skip()\n\t{\n\t\tif ( !Playing )\n\t\t\treturn;\n\t\tAdvanceShot();\n\t}\n\n\tpublic static void Tick( float dt )\n\t{\n\t\tif ( !Playing )\n\t\t\treturn;\n\n\t\t_t \u002B= dt;\n\t\tAnimate();\n\t\tAimCamera();\n\n\t\tif ( _t \u003E= _hold )\n\t\t\tAdvanceShot();\n\t}\n\n\tstatic void AdvanceShot()\n\t{\n\t\tShot\u002B\u002B;\n\t\tif ( Shot \u003E= _shots )\n\t\t{\n\t\t\tEnd();\n\t\t\treturn;\n\t\t}\n\n\t\t_t = 0;\n\t\tBeginShot();\n\t\tVersion\u002B\u002B;\n\t}\n\n\tstatic void BeginShot()\n\t{\n\t\t_hold = 3.4f;\n\t\t_focus = null;\n\t\tCardCn = \u0022\u0022;\n\t\tCardEn = \u0022\u0022;\n\n\t\tswitch ( Id )\n\t\t{\n\t\t\tcase CutId.OpenEyes:\n\t\t\t\tif ( Shot == 0 )\n\t\t\t\t{\n\t\t\t\t\tCardCn = \u0022\u7B2C\u4E00\u573A \u00B7 \u7741\u5F00\u773C\u775B\u0022;\n\t\t\t\t\tCardEn = \u0022Scene 1 \u00B7 Open your eyes\u0022;\n\t\t\t\t\t_hold = 2.2f;\n\t\t\t\t\tGameAudio.PlayClip( GameAudio.NameNiu, 0.85f );\n\t\t\t\t}\n\t\t\t\telse if ( Shot == 1 )\n\t\t\t\t{\n\t\t\t\t\tTipPlayer( true );\n\t\t\t\t\t_focus = CalfPlayer.Instance?.GameObject;\n\t\t\t\t\t_hold = 4.2f;\n\t\t\t\t\tGameState.Talk( \u0022\u725B\u5988\u5988 / Mama\u0022, Lines.MomSleep );\n\t\t\t\t\tGameAudio.PlayClip( GameAudio.MamaWake );\n\t\t\t\t\tGameAudio.PlayCrowd( GameAudio.CrowdWake );\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tTipPlayer( false );\n\t\t\t\t\t_focus = CalfPlayer.Instance?.GameObject;\n\t\t\t\t\t_hold = 1.6f;\n\t\t\t\t\tGameAudio.PlayClip( GameAudio.Stand, 0.9f );\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase CutId.LarkBack:\n\t\t\t\tif ( Shot == 0 )\n\t\t\t\t{\n\t\t\t\t\tCardCn = \u0022\u613F\u610F\u5230\u6211\u80CC\u4E0A\u6765\u5417\u0022;\n\t\t\t\t\tCardEn = \u0022Willing come up on my back?\u0022;\n\t\t\t\t\t_hold = 2.0f;\n\t\t\t\t}\n\t\t\t\tLieNamed( \u0022lark\u0022, true );\n\t\t\t\t_focus = Named( \u0022lark\u0022 );\n\t\t\t\tif ( Shot == 1 )\n\t\t\t\t{\n\t\t\t\t\t_hold = 4.6f;\n\t\t\t\t\tGameState.Talk( \u0022\u4E91\u738E / Yun Ding\u0022, Lines.Dream );\n\t\t\t\t\tGameAudio.PlayClip( GameAudio.LarkRide );\n\t\t\t\t\tGameAudio.PlayCrowd( GameAudio.CrowdRide );\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase CutId.EatFirst:\n\t\t\t\tCardCn = \u0022\u5403\u9971\u4E86\u518D\u53BB\u4E0D\u597D\u5417\u0022;\n\t\t\t\tCardEn = \u0022Eat full then go, not better?\u0022;\n\t\t\t\t_focus = Named( \u0022mom\u0022 ) ?? CalfPlayer.Instance?.GameObject;\n\t\t\t\t_hold = 3.8f;\n\t\t\t\tGameState.Talk( \u0022\u725B\u5988\u5988 / Mama\u0022, Lines.EatFirst );\n\t\t\t\tGameAudio.PlayClip( GameAudio.SlowDown );\n\t\t\t\tbreak;\n\n\t\t\tcase CutId.LeopardFace:\n\t\t\t\tif ( Shot == 0 )\n\t\t\t\t{\n\t\t\t\t\tCardCn = \u0022\u8C79\u62C9\u7279\u5199 \u00B7 \u9662\u7EBF\u5728\u7B11\u0022;\n\t\t\t\t\tCardEn = \u0022Bao La close-up \u00B7 theater laughing\u0022;\n\t\t\t\t\t_hold = 1.8f;\n\t\t\t\t}\n\t\t\t\t_focus = Named( \u0022leopard\u0022 );\n\t\t\t\tif ( Shot == 1 )\n\t\t\t\t{\n\t\t\t\t\t_hold = 5.0f;\n\t\t\t\t\tGameState.Talk( \u0022\u8C79\u62C9 / Bao La\u0022, Lines.Protect );\n\t\t\t\t\tGameAudio.PlayClip( GameAudio.Leopard );\n\t\t\t\t\tGameAudio.PlayCrowd( GameAudio.CrowdBig );\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase CutId.MilkDad:\n\t\t\t\tif ( Shot == 0 )\n\t\t\t\t{\n\t\t\t\t\tCardCn = \u0022\u5C11\u4E86\u70B9\u5988\u5988\u7684\u5473\u9053\u0022;\n\t\t\t\t\tCardEn = \u0022Missing a little Mama flavor\u0022;\n\t\t\t\t\t_hold = 1.8f;\n\t\t\t\t\tGameAudio.PlayClip( GameAudio.Milk );\n\t\t\t\t}\n\t\t\t\t_focus = Named( \u0022leopard\u0022 );\n\t\t\t\tif ( Shot == 1 )\n\t\t\t\t{\n\t\t\t\t\t_hold = 5.2f;\n\t\t\t\t\tGameState.Talk( \u0022\u8C79\u62C9 / Bao La\u0022, Lines.MilkScene );\n\t\t\t\t\tGameAudio.PlayCrowd( GameAudio.CrowdMilk );\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase CutId.TooClose:\n\t\t\t\tif ( Shot == 0 )\n\t\t\t\t{\n\t\t\t\t\tCardCn = \u0022\u7B2C\u4E00\uFF0C\u4ED6\u4E0D\u80FD\u79BB\u725B\u7FA4\u592A\u8FD1\u0022;\n\t\t\t\t\tCardEn = \u0022First, he cannot leave herd too near\u0022;\n\t\t\t\t\t_hold = 2.0f;\n\t\t\t\t}\n\t\t\t\t_focus = Named( \u0022niuer\u0022 ) ?? Named( \u0022dad\u0022 );\n\t\t\t\tif ( Shot == 1 )\n\t\t\t\t{\n\t\t\t\t\t_hold = 4.4f;\n\t\t\t\t\tGameState.Talk( \u0022\u725B\u4E8C / Niu Er\u0022, Lines.TooClose );\n\t\t\t\t\tGameAudio.PlayClip( GameAudio.SlowDown );\n\t\t\t\t\tGameAudio.PlayCrowd( GameAudio.CrowdMilk );\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase CutId.Headbutt:\n\t\t\t\tCardCn = \u0022\u6211\u559C\u6B22\u9876\u8111\u95E8\u513F\u0022;\n\t\t\t\tCardEn = \u0022I like bump forehead\u0022;\n\t\t\t\t_focus = Named( \u0022leopard\u0022 );\n\t\t\t\t_hold = Shot == 0 ? 1.6f : 4.0f;\n\t\t\t\tif ( Shot == 1 )\n\t\t\t\t{\n\t\t\t\t\tGameState.Talk( \u0022\u8C79\u62C9 / Bao La\u0022, Lines.Headbutt );\n\t\t\t\t\tGameAudio.PlayClip( GameAudio.LikeHere );\n\t\t\t\t\tGameAudio.PlayCrowd( GameAudio.CrowdBig );\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase CutId.NoRoad:\n\t\t\t\tif ( Shot == 0 )\n\t\t\t\t{\n\t\t\t\t\tCardCn = \u0022\u6CA1\u8DEF\u4E86\u0022;\n\t\t\t\t\tCardEn = \u0022No road anymore\u0022;\n\t\t\t\t\t_hold = 2.2f;\n\t\t\t\t\tGameAudio.PlayClip( GameAudio.CartGrow );\n\t\t\t\t}\n\t\t\t\t_focus = Named( \u0022cart\u0022 );\n\t\t\t\tif ( Shot == 1 )\n\t\t\t\t{\n\t\t\t\t\t_hold = 4.6f;\n\t\t\t\t\tGameState.Talk( \u0022\u65C1\u767D / Narrator\u0022, Lines.NoRoad );\n\t\t\t\t\tGameAudio.PlayCrowd( GameAudio.CrowdCart );\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase CutId.Ng:\n\t\t\t\tif ( Shot == 0 )\n\t\t\t\t{\n\t\t\t\t\tCardCn = \u0022\u55EF\u0022;\n\t\t\t\t\tCardEn = \u0022Ng.\u0022;\n\t\t\t\t\t_hold = 1.6f;\n\t\t\t\t}\n\t\t\t\tLieNamed( \u0022lark\u0022, false );\n\t\t\t\t_focus = Named( \u0022lark\u0022 );\n\t\t\t\tif ( Shot == 1 )\n\t\t\t\t{\n\t\t\t\t\t_hold = 4.2f;\n\t\t\t\t\tGameState.Talk( \u0022\u4E91\u738E / Yun Ding\u0022, Lines.Farewell );\n\t\t\t\t\tGameAudio.PlayClip( GameAudio.LarkNg );\n\t\t\t\t\tGameAudio.PlayCrowd( GameAudio.CrowdNg );\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\tstatic void Animate()\n\t{\n\t\tif ( Id == CutId.Headbutt \u0026\u0026 _focus.IsValid() \u0026\u0026 CalfPlayer.Instance.IsValid() )\n\t\t{\n\t\t\tvar a = CalfPlayer.Instance.WorldPosition;\n\t\t\tvar b = _focus.WorldPosition;\n\t\t\tvar mid = (a \u002B b) * 0.5f;\n\t\t\tvar bump = MathF.Sin( _t * 10f ) * 8f;\n\t\t\tCalfPlayer.Instance.WorldPosition = mid \u002B Vector3.Left * (18f \u002B bump);\n\t\t\t_focus.WorldPosition = mid \u002B Vector3.Right * (18f - bump);\n\t\t}\n\n\t\tif ( Id == CutId.Ng \u0026\u0026 _focus.IsValid() )\n\t\t{\n\t\t\t_focus.WorldPosition = GameState.DreamPos \u002B new Vector3( 0, 0, 40f \u002B MathF.Sin( _t * 2f ) * 8f );\n\t\t\t_focus.WorldRotation = Rotation.FromYaw( _t * 40f ) * Rotation.FromRoll( 18f );\n\t\t}\n\t}\n\n\tstatic void AimCamera()\n\t{\n\t\tvar cam = CalfPlayer.Instance?.Scene?.Camera;\n\t\tif ( cam is null || !cam.IsValid() )\n\t\t\treturn;\n\n\t\tvar target = _focus.IsValid() ? _focus.WorldPosition : (CalfPlayer.Instance?.WorldPosition ?? Vector3.Zero);\n\t\ttarget \u002B= Vector3.Up * (Id == CutId.LeopardFace ? 22f : 28f);\n\n\t\tvar dist = Id switch\n\t\t{\n\t\t\tCutId.LeopardFace =\u003E 38f,\n\t\t\tCutId.OpenEyes =\u003E 42f,\n\t\t\tCutId.LarkBack =\u003E 55f,\n\t\t\tCutId.Ng =\u003E 90f,\n\t\t\tCutId.NoRoad =\u003E 220f,\n\t\t\t_ =\u003E 70f\n\t\t};\n\n\t\tvar side = Id == CutId.LarkBack ? 10f : 16f;\n\t\tvar height = Id == CutId.LarkBack ? 12f : 22f;\n\t\tif ( Id == CutId.Ng )\n\t\t\theight = 8f;\n\n\t\t_camPos = target - Vector3.Forward * dist \u002B Vector3.Right * side \u002B Vector3.Up * height;\n\t\tif ( Id == CutId.NoRoad )\n\t\t\t_camPos = target \u002B new Vector3( -180, -140, 90 );\n\t\tif ( Id == CutId.Ng )\n\t\t\t_camPos = target \u002B new Vector3( 0, -70, 10 );\n\n\t\tvar look = (target - _camPos);\n\t\tif ( look.Length \u003E 1f )\n\t\t\t_camRot = Rotation.LookAt( look, Vector3.Up );\n\n\t\tcam.WorldPosition = _camPos;\n\t\tcam.WorldRotation = _camRot;\n\t\tif ( GameState.InVoid || Id == CutId.Ng )\n\t\t\tcam.BackgroundColor = Color.Black;\n\t}\n\n\tstatic void End()\n\t{\n\t\tPlaying = false;\n\t\tvar done = _done;\n\t\tvar id = Id;\n\t\tId = CutId.None;\n\t\t_done = null;\n\t\tCardCn = \u0022\u0022;\n\t\tCardEn = \u0022\u0022;\n\t\tLieNamed( \u0022lark\u0022, false );\n\t\tTipPlayer( false );\n\t\tVersion\u002B\u002B;\n\t\tdone?.Invoke();\n\n\t\tif ( id == CutId.LarkBack )\n\t\t\tGameState.EnterDreamFromCut();\n\t\telse if ( id == CutId.Ng )\n\t\t\tGameState.FinishFarewellCut();\n\t}\n\n\tstatic void TipPlayer( bool down )\n\t{\n\t\tvar p = CalfPlayer.Instance;\n\t\tif ( !p.IsValid() )\n\t\t\treturn;\n\t\t_tipped = down;\n\t\tp.WorldRotation = down\n\t\t\t? Rotation.FromPitch( 80f )\n\t\t\t: Rotation.FromYaw( p.WorldRotation.Yaw() );\n\t}\n\n\tstatic void LieNamed( string name, bool lie )\n\t{\n\t\tvar go = Named( name );\n\t\tif ( !go.IsValid() )\n\t\t\treturn;\n\t\tgo.WorldRotation = lie\n\t\t\t? Rotation.FromRoll( 90f ) * Rotation.FromPitch( 20f )\n\t\t\t: Rotation.Identity;\n\t}\n\n\tstatic GameObject Named( string name )\n\t{\n\t\tif ( WorldBuilder.Stage.TryGetValue( name, out var go ) \u0026\u0026 go.IsValid() )\n\t\t\treturn go;\n\t\treturn null;\n\t}\n}\n"},{"Ident":"dogecoin.niulai","Path":"Primitives.cs","FileName":"Primitives.cs","PackageType":"game","CodeKind":"Game","AssetVersionId":443544,"IsPrivate":false,"Code":"namespace NiuLai;\n\npublic static class Primitives\n{\n\tpublic const string Box = \u0022models/dev/box.vmdl\u0022;\n\tpublic const string Plane = \u0022models/dev/plane.vmdl\u0022;\n\tpublic const string Citizen = \u0022models/citizen/citizen.vmdl\u0022;\n\tpublic const string DefaultMat = \u0022materials/default.vmat\u0022;\n\n\tstatic Model _box;\n\tstatic Model _plane;\n\tstatic Model _citizen;\n\tstatic Material _mat;\n\n\tpublic static Model BoxModel =\u003E _box ??= Model.Load( Box );\n\tpublic static Model PlaneModel =\u003E _plane ??= Model.Load( Plane );\n\tpublic static Model CitizenModel =\u003E _citizen ??= Model.Load( Citizen );\n\tpublic static Material TintMat =\u003E _mat ??= Material.Load( DefaultMat );\n\n\tpublic static GameObject BoxAt( string name, Vector3 pos, Vector3 scale, Color tint, GameObject parent = null, bool collider = true )\n\t{\n\t\tvar go = new GameObject( true, name );\n\t\tif ( parent is not null )\n\t\t\tgo.SetParent( parent, false );\n\t\tgo.LocalPosition = parent is null ? default : pos;\n\t\tif ( parent is null )\n\t\t\tgo.WorldPosition = pos;\n\t\tgo.LocalScale = scale;\n\n\t\tvar mr = go.Components.Create\u003CModelRenderer\u003E();\n\t\tmr.Model = BoxModel;\n\t\tmr.MaterialOverride = TintMat;\n\t\tmr.Tint = tint;\n\n\t\tif ( collider )\n\t\t{\n\t\t\tvar col = go.Components.Create\u003CBoxCollider\u003E();\n\t\t\tcol.Scale = new Vector3( 50, 50, 50 );\n\t\t\tcol.Static = parent is null;\n\t\t}\n\n\t\treturn go;\n\t}\n\n\tpublic static GameObject PlaneAt( string name, Vector3 pos, Vector3 scale, Color tint, bool collider = true )\n\t{\n\t\tvar go = new GameObject( true, name );\n\t\tgo.WorldPosition = pos;\n\t\tgo.LocalScale = scale;\n\n\t\tvar mr = go.Components.Create\u003CModelRenderer\u003E();\n\t\tmr.Model = PlaneModel;\n\t\tmr.MaterialOverride = TintMat;\n\t\tmr.Tint = tint;\n\n\t\tif ( collider )\n\t\t{\n\t\t\tvar col = go.Components.Create\u003CBoxCollider\u003E();\n\t\t\tcol.Center = new Vector3( 0, 0, -4 );\n\t\t\tcol.Scale = new Vector3( 100, 100, 8 );\n\t\t\tcol.Static = true;\n\t\t}\n\n\t\treturn go;\n\t}\n\n\tpublic static GameObject Person( string name, Vector3 pos, Color tint, float scale = 1f )\n\t{\n\t\tvar go = new GameObject( true, name );\n\t\tgo.WorldPosition = pos;\n\t\tgo.LocalScale = scale;\n\n\t\ttry\n\t\t{\n\t\t\tvar skin = go.Components.Create\u003CSkinnedModelRenderer\u003E();\n\t\t\tskin.Model = CitizenModel;\n\t\t\tskin.Tint = tint;\n\t\t\tskin.UseAnimGraph = true;\n\t\t}\n\t\tcatch\n\t\t{\n\t\t\tBoxAt( \u0022body\u0022, Vector3.Up * 36 * scale, new Vector3( 0.4f, 0.25f, 0.9f ) * scale, tint, go, false );\n\t\t}\n\n\t\tvar col = go.Components.Create\u003CBoxCollider\u003E();\n\t\tcol.Center = Vector3.Up * 36 * scale;\n\t\tcol.Scale = new Vector3( 20, 20, 72 ) * scale;\n\t\tcol.Static = true;\n\t\treturn go;\n\t}\n}\n"},{"Ident":"dogecoin.niulai","Path":"Assembly.cs","FileName":"Assembly.cs","PackageType":"game","CodeKind":"Game","AssetVersionId":443544,"IsPrivate":false,"Code":"global using Sandbox;\nglobal using Sandbox.UI;\nglobal using System;\nglobal using System.Collections.Generic;\nglobal using System.Linq;\n"},{"Ident":"dogecoin.niulai","Path":"CalfPlayer.cs","FileName":"CalfPlayer.cs","PackageType":"game","CodeKind":"Game","AssetVersionId":443544,"IsPrivate":false,"Code":"namespace NiuLai;\n\npublic sealed class CalfPlayer : Component\n{\n\tpublic static CalfPlayer Instance { get; set; }\n\n\t[Property] public float WalkSpeed { get; set; } = 220f;\n\t[Property] public float RunSpeed { get; set; } = 340f;\n\t[Property] public float JumpSpeed { get; set; } = 340f;\n\n\tfloat _yaw = 180f;\n\tfloat _pitch = 18f;\n\tVector3 _vel;\n\tbool _grounded;\n\tfloat _bob;\n\tfloat _jumpDelay = -1f;\n\tfloat _jankTimer;\n\tfloat _idle;\n\tfloat _nagCool;\n\tGameObject _mesh;\n\n\tprotected override void OnAwake()\n\t{\n\t\tInstance = this;\n\t}\n\n\tprotected override void OnDestroy()\n\t{\n\t\tif ( Instance == this )\n\t\t\tInstance = null;\n\t}\n\n\tprotected override void OnStart()\n\t{\n\t\t_mesh = CowMesh.Build( GameObject, CowMesh.Calf, 1f );\n\t}\n\n\tprotected override void OnUpdate()\n\t{\n\t\tif ( Input.EscapePressed )\n\t\t{\n\t\t\tInput.EscapePressed = false;\n\t\t\tif ( GameState.Talking )\n\t\t\t\tGameState.ClearTalk();\n\t\t\telse\n\t\t\t\tGameFlow.TogglePause();\n\t\t}\n\n\t\tif ( GameFlow.BlocksWorld )\n\t\t\treturn;\n\n\t\tvar look = Input.AnalogLook;\n\t\t_yaw \u002B= look.yaw;\n\t\t_pitch = MathX.Clamp( _pitch \u002B look.pitch, -8f, 42f );\n\n\t\tif ( FilmCut.Playing )\n\t\t{\n\t\t\tif ( PressedUse() )\n\t\t\t{\n\t\t\t\tif ( GameState.Talking )\n\t\t\t\t\tGameState.AdvanceTalk();\n\t\t\t\tFilmCut.Skip();\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\tif ( GameState.Talking )\n\t\t{\n\t\t\tif ( PressedUse() )\n\t\t\t\tGameState.AdvanceTalk();\n\t\t\treturn;\n\t\t}\n\n\t\tif ( PressedUse() )\n\t\t\tTryUse();\n\n\t\tif ( Input.Pressed( \u0022Moo\u0022 ) || Input.Pressed( \u0022moo\u0022 ) )\n\t\t\tMoo();\n\t}\n\n\tprotected override void OnFixedUpdate()\n\t{\n\t\tif ( GameFlow.BlocksWorld || GameState.Talking )\n\t\t{\n\t\t\t_vel = _vel.WithX( 0 ).WithY( 0 );\n\t\t\tApplyGravity( Time.Delta );\n\t\t\tSlide();\n\t\t\treturn;\n\t\t}\n\n\t\tvar dt = Time.Delta;\n\t\tvar analog = Input.AnalogMove.WithZ( 0 );\n\t\tvar cam = Rotation.FromYaw( _yaw );\n\t\tvar wish = cam * analog;\n\t\tif ( wish.Length \u003E 1f )\n\t\t\twish = wish.Normal;\n\n\t\tvar speed = Input.Down( \u0022Run\u0022 ) ? RunSpeed : WalkSpeed;\n\t\tspeed *= GameState.WalkMul;\n\t\tif ( GameState.InVoid )\n\t\t\tspeed *= 0.55f;\n\n\t\t_vel.x = wish.x * speed;\n\t\t_vel.y = wish.y * speed;\n\n\t\tif ( wish.Length \u003E 0.1f )\n\t\t{\n\t\t\tvar face = Rotation.LookAt( wish.WithZ( 0 ), Vector3.Up );\n\t\t\tWorldRotation = Rotation.Slerp( WorldRotation, face, 1f - MathF.Pow( 0.001f, dt ) );\n\t\t\t_bob \u002B= dt * 9f;\n\t\t\t_idle = 0;\n\t\t\tif ( Input.Down( \u0022Run\u0022 ) \u0026\u0026 _nagCool \u003C= 0f \u0026\u0026 GameState.Beat == Beat.Migrate )\n\t\t\t{\n\t\t\t\t_nagCool = 10f;\n\t\t\t\tChatter.Say( \u0022\u725B\u5988\u5988 / Mama\u0022, Chatter.Pick( Lines.MomSlow ) );\n\t\t\t\tGameAudio.PlayClip( GameAudio.SlowDown, 0.7f );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t_bob = 0;\n\t\t\t_idle \u002B= dt;\n\t\t\tif ( _idle \u003E 7.5f \u0026\u0026 _nagCool \u003C= 0f )\n\t\t\t{\n\t\t\t\t_idle = 0;\n\t\t\t\t_nagCool = 12f;\n\t\t\t\tChatter.Say( \u0022\u725B\u5988\u5988 / Mama\u0022, Chatter.Pick( Lines.MomSleep ) );\n\t\t\t\tGameAudio.PlayClip( GameAudio.MamaWake, 0.75f );\n\t\t\t}\n\t\t}\n\t\t_nagCool -= dt;\n\n\t\tif ( _jumpDelay \u003E= 0f )\n\t\t{\n\t\t\t_jumpDelay -= dt;\n\t\t\tif ( _jumpDelay \u003C= 0f \u0026\u0026 _grounded )\n\t\t\t{\n\t\t\t\t_vel.z = JumpSpeed;\n\t\t\t\t_grounded = false;\n\t\t\t\t_jumpDelay = -1f;\n\t\t\t}\n\t\t}\n\t\telse if ( _grounded \u0026\u0026 Input.Pressed( \u0022Jump\u0022 ) )\n\t\t{\n\t\t\t// Movie jank: the calf thinks about jumping, then hops too hard.\n\t\t\t_jumpDelay = 0.16f;\n\t\t\tTrophies.Unlock( \u0022think_jump\u0022 );\n\t\t}\n\n\t\tApplyGravity( dt );\n\t\tSlide();\n\t\tUpdateMesh();\n\t\tUpdateCamera( dt );\n\t\tWatchBeats();\n\t}\n\n\tvoid WatchBeats()\n\t{\n\t\tif ( GameState.Beat == Beat.Migrate \u0026\u0026 GameState.GrassEaten \u003C 1 \u0026\u0026 WorldPosition.x \u003E 240f )\n\t\t{\n\t\t\tWorldPosition = WorldPosition.WithX( 230f );\n\t\t\tif ( !GameState.DidEatNag )\n\t\t\t{\n\t\t\t\tGameState.MarkEatNag();\n\t\t\t\tFilmCut.Play( CutId.EatFirst );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tChatter.Say( \u0022\u725B\u5988\u5988 / Mama\u0022, Chatter.Pick( Lines.EatFirst ) );\n\t\t\t}\n\t\t}\n\n\t\tif ( GameState.Beat == Beat.Creek \u0026\u0026 !GameState.CreekJumped \u0026\u0026 WorldPosition.x \u003E 500f )\n\t\t\tGameState.JumpCreek();\n\n\t\tif ( GameState.Beat == Beat.Wake \u0026\u0026 WorldPosition.y \u003E 280f )\n\t\t\tTrophies.Unlock( \u0022fly_line\u0022 );\n\n\t\tif ( !GameState.SawTail \u0026\u0026 GameState.Beat \u003E= Beat.Night \u0026\u0026 GameState.Beat \u003C Beat.Farewell )\n\t\t{\n\t\t\tif ( WorldBuilder.Stage.TryGetValue( \u0022leopard\u0022, out var leo ) \u0026\u0026 leo.IsValid() )\n\t\t\t{\n\t\t\t\tif ( (WorldPosition - leo.WorldPosition).Length \u003C 85f )\n\t\t\t\t{\n\t\t\t\t\tGameState.MarkTail();\n\t\t\t\t\tChatter.Say( \u0022\u725B\u6765 / Niu Lai\u0022, Chatter.Pick( Lines.Tail ), 3.3f );\n\t\t\t\t\tGameAudio.PlayClip( GameAudio.Snake, 0.85f );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ( _nagCool \u003C= 0f \u0026\u0026 !GameState.Talking )\n\t\t{\n\t\t\tif ( GameState.Beat == Beat.Snake \u0026\u0026 WorldPosition.x \u003E 220f \u0026\u0026 WorldPosition.x \u003C 300f )\n\t\t\t{\n\t\t\t\t_nagCool = 16f;\n\t\t\t\tChatter.Say( \u0022\u65C1\u767D / Narrator\u0022, Lines.Tease[0] );\n\t\t\t}\n\t\t\telse if ( GameState.Beat == Beat.Night \u0026\u0026 WorldPosition.x \u003E 640f )\n\t\t\t{\n\t\t\t\t_nagCool = 16f;\n\t\t\t\tChatter.Say( \u0022\u65C1\u767D / Narrator\u0022, Lines.Tease[1] );\n\t\t\t}\n\t\t\telse if ( GameState.Beat == Beat.Wake \u0026\u0026 WorldPosition.y \u003E 120f )\n\t\t\t{\n\t\t\t\t_nagCool = 16f;\n\t\t\t\tChatter.Say( \u0022\u4E91\u738E / Yun Ding\u0022, Lines.Tease[2] );\n\t\t\t}\n\t\t\telse if ( GameState.Beat == Beat.Cart \u0026\u0026 WorldPosition.x \u003E 700f )\n\t\t\t{\n\t\t\t\t_nagCool = 16f;\n\t\t\t\tChatter.Say( \u0022\u65C1\u767D / Narrator\u0022, Lines.Tease[3] );\n\t\t\t}\n\t\t}\n\t}\n\n\tvoid ApplyGravity( float dt )\n\t{\n\t\tif ( !_grounded )\n\t\t\t_vel.z -= 900f * dt;\n\t}\n\n\tvoid Slide()\n\t{\n\t\tvar dt = Time.Delta;\n\t\tif ( GameState.WantHop )\n\t\t{\n\t\t\tGameState.WantHop = false;\n\t\t\t_vel.z = 420f;\n\t\t\t_grounded = false;\n\t\t}\n\n\t\tvar next = WorldPosition \u002B _vel * dt;\n\t\tif ( !GameState.CreekJumped \u0026\u0026 next.x \u003E 400f \u0026\u0026 next.x \u003C 480f \u0026\u0026 GameState.Beat is Beat.Creek or Beat.Snake )\n\t\t{\n\t\t\tnext.x = 400f;\n\t\t\t_vel.x = 0;\n\t\t\tif ( _nagCool \u003C= 0f )\n\t\t\t{\n\t\t\t\t_nagCool = 5f;\n\t\t\t\tChatter.Say( \u0022\u725B\u6765 / Niu Lai\u0022, Chatter.Pick( Lines.CreekFear ) );\n\t\t\t}\n\t\t}\n\n\t\tvar wall = Scene.Trace.Ray( WorldPosition \u002B Vector3.Up * 20f, next \u002B Vector3.Up * 20f )\n\t\t\t.IgnoreGameObjectHierarchy( GameObject )\n\t\t\t.Radius( 14f )\n\t\t\t.Run();\n\t\tif ( wall.Hit )\n\t\t\tnext = WorldPosition \u002B (next - WorldPosition) * MathF.Max( wall.Fraction - 0.05f, 0f );\n\n\t\tvar downFrom = next \u002B Vector3.Up * 48f;\n\t\tvar ground = Scene.Trace.Ray( downFrom, next \u002B Vector3.Down * 80f )\n\t\t\t.IgnoreGameObjectHierarchy( GameObject )\n\t\t\t.Run();\n\n\t\tif ( ground.Hit )\n\t\t{\n\t\t\tnext = ground.EndPosition;\n\t\t\t_grounded = _vel.z \u003C= 20f;\n\t\t\tif ( _vel.z \u003C 0f )\n\t\t\t\t_vel.z = 0f;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t_grounded = false;\n\t\t}\n\n\t\tWorldPosition = next;\n\t}\n\n\tvoid UpdateMesh()\n\t{\n\t\tif ( !_mesh.IsValid() )\n\t\t\treturn;\n\n\t\tvar g = GameState.Growth;\n\t\t_mesh.LocalScale = g;\n\t\tvar stiff = MathF.Sin( _bob ) * 8f;\n\t\t_mesh.LocalRotation = new Angles( stiff, 0, MathF.Sin( _bob * 0.5f ) * 3f );\n\t\t_mesh.LocalPosition = Vector3.Up * MathF.Abs( MathF.Sin( _bob ) ) * 3f;\n\t}\n\n\tvoid UpdateCamera( float dt )\n\t{\n\t\tif ( !Scene.Camera.IsValid() )\n\t\t\treturn;\n\n\t\t_jankTimer -= dt;\n\t\tvar hitch = _jankTimer \u003E 0f ? 8f : 0f;\n\t\tif ( Random.Shared.Float() \u003C 0.004f )\n\t\t\t_jankTimer = 0.08f;\n\n\t\tvar rot = Rotation.From( _pitch, _yaw, hitch );\n\t\tvar head = WorldPosition \u002B Vector3.Up * (48f * GameState.Growth \u002B 16f);\n\t\tvar desired = head - rot.Forward * (170f \u002B GameState.Growth * 20f) \u002B rot.Right * 12f;\n\n\t\tvar camHit = Scene.Trace.Ray( head, desired )\n\t\t\t.IgnoreGameObjectHierarchy( GameObject )\n\t\t\t.Run();\n\t\tif ( camHit.Hit )\n\t\t\tdesired = camHit.EndPosition \u002B camHit.Normal * 6f;\n\n\t\tScene.Camera.WorldPosition = desired;\n\t\tScene.Camera.WorldRotation = rot;\n\t}\n\n\tvoid TryUse()\n\t{\n\t\tHotspot best = null;\n\t\tvar bestD = float.MaxValue;\n\t\tforeach ( var hs in Scene.GetAllComponents\u003CHotspot\u003E() )\n\t\t{\n\t\t\tif ( !hs.IsValid() || !hs.InRange( WorldPosition ) )\n\t\t\t\tcontinue;\n\t\t\tvar d = (hs.WorldPosition - WorldPosition).Length;\n\t\t\tif ( d \u003C bestD )\n\t\t\t{\n\t\t\t\tbestD = d;\n\t\t\t\tbest = hs;\n\t\t\t}\n\t\t}\n\n\t\tbest?.Use();\n\t}\n\n\tvoid Moo()\n\t{\n\t\tTrophies.Unlock( \u0022moo\u0022 );\n\t\tHotspot near = null;\n\t\tvar best = float.MaxValue;\n\t\tforeach ( var hs in Scene.GetAllComponents\u003CHotspot\u003E() )\n\t\t{\n\t\t\tif ( !hs.IsValid() )\n\t\t\t\tcontinue;\n\t\t\tvar d = (hs.WorldPosition - WorldPosition).Length;\n\t\t\tif ( d \u003C best \u0026\u0026 d \u003C 110f )\n\t\t\t{\n\t\t\t\tbest = d;\n\t\t\t\tnear = hs;\n\t\t\t}\n\t\t}\n\n\t\tGameState.MooWorld( near?.Id );\n\t}\n\n\tpublic void RefreshPrompt()\n\t{\n\t\tif ( GameFlow.BlocksWorld || GameState.Talking )\n\t\t\treturn;\n\n\t\tHotspot best = null;\n\t\tvar bestD = float.MaxValue;\n\t\tforeach ( var hs in Scene.GetAllComponents\u003CHotspot\u003E() )\n\t\t{\n\t\t\tif ( !hs.IsValid() || !hs.InRange( WorldPosition ) )\n\t\t\t\tcontinue;\n\t\t\tvar d = (hs.WorldPosition - WorldPosition).Length;\n\t\t\tif ( d \u003C bestD )\n\t\t\t{\n\t\t\t\tbestD = d;\n\t\t\t\tbest = hs;\n\t\t\t}\n\t\t}\n\n\t\tif ( best is null )\n\t\t{\n\t\t\tGameState.SetPrompt( \u0022\u0022, \u0022\u0022 );\n\t\t\treturn;\n\t\t}\n\n\t\tGameState.SetPrompt( $\u0022\u6309 E  {best.LabelCn}\u0022, $\u0022E  {best.LabelEn}\u0022 );\n\t}\n\n\tstatic bool PressedUse() =\u003E\n\t\tInput.Pressed( \u0022Use\u0022 ) || Input.Pressed( \u0022use\u0022 ) || Input.Pressed( \u0022Submit\u0022 ) || Input.Pressed( \u0022submit\u0022 );\n}\n"},{"Ident":"dogecoin.niulai","Path":"Trophies.cs","FileName":"Trophies.cs","PackageType":"game","CodeKind":"Game","AssetVersionId":443544,"IsPrivate":false,"Code":"using Sandbox.Services;\n\nnamespace NiuLai;\n\n/// \u003Csummary\u003EOne package trophy. Ident must match the dashboard Manual achievement.\u003C/summary\u003E\npublic sealed class TrophyDef\n{\n\tpublic string Id { get; init; }\n\tpublic string Title { get; init; }\n\tpublic string Description { get; init; }\n\tpublic int Score { get; init; }\n\tpublic bool Hidden { get; init; }\n}\n\n/// \u003Csummary\u003E\n/// 30 film trophies. Local toast \u002B Achievements.Unlock(ident).\n/// Paste Catalog Id / Title / Description onto the package dashboard as Manual.\n/// \u003C/summary\u003E\npublic static class Trophies\n{\n\tpublic static readonly TrophyDef[] Catalog =\n\t{\n\t\tnew() { Id = \u0022walk_slow\u0022, Title = \u0022You Slow A Bit\u0022, Description = \u0022Start the walk. The herd is already ahead of you.\u0022, Score = 5 },\n\t\tnew() { Id = \u0022five_year\u0022, Title = \u0022Five-Year Handmade\u0022, Description = \u0022Open the title. Loading takes five years. Joke is on us.\u0022, Score = 5 },\n\t\tnew() { Id = \u0022open_eye\u0022, Title = \u0022Don\u0027t Sleep\u0022, Description = \u0022Talk to \u725B\u5988\u5988. She says open your eyes.\u0022, Score = 10 },\n\t\tnew() { Id = \u0022grass_free\u0022, Title = \u0022Grass Is Free\u0022, Description = \u0022Eat one tuft. Mama said it does not cost money.\u0022, Score = 5 },\n\t\tnew() { Id = \u0022bigger_little\u0022, Title = \u0022I Bigger A Little\u0022, Description = \u0022Eat 6 tufts and feel the model scale up.\u0022, Score = 10 },\n\t\tnew() { Id = \u0022share_ready\u0022, Title = \u0022Hold Some Grass\u0022, Description = \u0022Carry 3 tufts. Somebody hungry is coming.\u0022, Score = 5 },\n\t\tnew() { Id = \u0022yun_ding\u0022, Title = \u0022Come Up On My Back\u0022, Description = \u0022Meet \u4E91\u738E. Then the world goes black.\u0022, Score = 10 },\n\t\tnew() { Id = \u0022pure_black\u0022, Title = \u0022Pure Black Background\u0022, Description = \u0022Finish the first dream with the lark.\u0022, Score = 10 },\n\t\tnew() { Id = \u0022not_rope\u0022, Title = \u0022I Am Not Rope\u0022, Description = \u0022Let \u5C0F\u7EF3\u5934 bite you. He was never a rope.\u0022, Score = 10 },\n\t\tnew() { Id = \u0022only_jump\u0022, Title = \u0022Only Can Jump\u0022, Description = \u0022Jump the creek because the snake is behind you.\u0022, Score = 10 },\n\t\tnew() { Id = \u0022empty_bag\u0022, Title = \u0022First Go Eat Grass\u0022, Description = \u0022Offer \u8C79\u62C9 an empty bag. He is not impressed.\u0022, Score = 5, Hidden = true },\n\t\tnew() { Id = \u0022bao_la\u0022, Title = \u0022Stomach Empty\u0022, Description = \u0022Find \u8C79\u62C9 at night. His belly is a cave.\u0022, Score = 10 },\n\t\tnew() { Id = \u0022share_grass\u0022, Title = \u0022You Give Me Food\u0022, Description = \u0022Share one tuft with the leopard.\u0022, Score = 10 },\n\t\tnew() { Id = \u0022niu_er\u0022, Title = \u0022Identity Not Right\u0022, Description = \u0022Hear \u725B\u4E8C decide \u8C79\u62C9 is the problem.\u0022, Score = 10 },\n\t\tnew() { Id = \u0022wolf_come\u0022, Title = \u0022Wolf Come. Really Come.\u0022, Description = \u0022Survive the first wolf rush.\u0022, Score = 10 },\n\t\tnew() { Id = \u0022not_allow\u0022, Title = \u0022Not Allow Follow\u0022, Description = \u0022Watch the herd ban \u8C79\u62C9.\u0022, Score = 10 },\n\t\tnew() { Id = \u0022still_here\u0022, Title = \u0022I Still Here\u0022, Description = \u0022Talk to \u8C79\u62C9 after nobody believes him.\u0022, Score = 10 },\n\t\tnew() { Id = \u0022dont_look_back\u0022, Title = \u0022Don\u0027t Look Back\u0022, Description = \u0022Hear \u5988\u5988 stay behind in the canyon.\u0022, Score = 15 },\n\t\tnew() { Id = \u0022cart_big\u0022, Title = \u0022The Cart Become More Big\u0022, Description = \u0022Reach the \u53F0\u8F66 while it is still growing.\u0022, Score = 10 },\n\t\tnew() { Id = \u0022think_jump\u0022, Title = \u0022Think Then Hop\u0022, Description = \u0022Press jump. Wait. Then hop too hard.\u0022, Score = 5, Hidden = true },\n\t\tnew() { Id = \u0022moo\u0022, Title = \u0022\u54DE\u2014\u2014\u2014\u2014\u0022, Description = \u0022Press F. Moo at nothing in particular.\u0022, Score = 5 },\n\t\tnew() { Id = \u0022moo_cart\u0022, Title = \u0022Niu Lai No Listen\u0022, Description = \u0022\u4E91\u738E said don\u0027t fight. You mooed at the cart.\u0022, Score = 15 },\n\t\tnew() { Id = \u0022thank_you\u0022, Title = \u0022Yun Ding, Thank You\u0022, Description = \u0022Say goodbye in the second black dream.\u0022, Score = 10 },\n\t\tnew() { Id = \u0022stand_stable\u0022, Title = \u0022Niu Lai Stand Stable\u0022, Description = \u0022Wake up. Stand still for once.\u0022, Score = 10 },\n\t\tnew() { Id = \u0022fly_line\u0022, Title = \u0022Follow Her Fly Line\u0022, Description = \u0022Follow \u4E91\u738E north after the dream.\u0022, Score = 10 },\n\t\tnew() { Id = \u0022too_early\u0022, Title = \u0022First Finish Your Road\u0022, Description = \u0022Talk to \u725B\u7238\u7238 before you finished the road.\u0022, Score = 5, Hidden = true },\n\t\tnew() { Id = \u0022herd_boss\u0022, Title = \u0022I Am Cow Father\u0022, Description = \u0022Find \u725B\u7238\u7238 at the end of the line.\u0022, Score = 15 },\n\t\tnew() { Id = \u0022we_walk\u0022, Title = \u0022We Walk Together\u0022, Description = \u0022Start the reunion walk with the herd.\u0022, Score = 15 },\n\t\tnew() { Id = \u0022after_rain\u0022, Title = \u0022\u96E8\u540E\u8F7B\u98CE\u6709\u9999\u0022, Description = \u0022Finish the movie. The song plays.\u0022, Score = 25 },\n\t\tnew() { Id = \u0022watch_again\u0022, Title = \u0022\u518D\u770B\u4E00\u904D\u0022, Description = \u0022Start the film a second time.\u0022, Score = 10 },\n\t};\n\n\tconst float ToastSeconds = 4.4f;\n\n\tstatic readonly HashSet\u003Cstring\u003E Got = new( StringComparer.OrdinalIgnoreCase );\n\tstatic readonly Queue\u003Cstring\u003E ToastQ = new();\n\tstatic string _toastId = \u0022\u0022;\n\tstatic float _toastLeft;\n\n\tpublic static bool EverWon { get; private set; }\n\tpublic static int Version { get; private set; }\n\tpublic static bool ToastVisible =\u003E _toastLeft \u003E 0f \u0026\u0026 !string.IsNullOrEmpty( _toastId );\n\tpublic static TrophyDef Toast =\u003E Find( _toastId );\n\n\tpublic static TrophyDef Find( string id )\n\t{\n\t\tif ( string.IsNullOrEmpty( id ) )\n\t\t\treturn null;\n\n\t\tforeach ( var d in Catalog )\n\t\t{\n\t\t\tif ( string.Equals( d.Id, id, StringComparison.OrdinalIgnoreCase ) )\n\t\t\t\treturn d;\n\t\t}\n\n\t\treturn null;\n\t}\n\n\tpublic static void Unlock( string id )\n\t{\n\t\tif ( string.IsNullOrEmpty( id ) )\n\t\t\treturn;\n\t\tif ( Find( id ) is null )\n\t\t\treturn;\n\t\tif ( !Got.Add( id ) )\n\t\t\treturn;\n\n\t\ttry\n\t\t{\n\t\t\tAchievements.Unlock( id );\n\t\t}\n\t\tcatch\n\t\t{\n\t\t\t// Dashboard ident missing or services offline \u2014 local toast still pops.\n\t\t}\n\n\t\tToastQ.Enqueue( id );\n\t\tif ( !ToastVisible )\n\t\t\tShowNext();\n\t\tVersion\u002B\u002B;\n\t}\n\n\tpublic static void MarkWon() =\u003E EverWon = true;\n\n\tpublic static void Tick( float dt )\n\t{\n\t\tif ( _toastLeft \u003C= 0f )\n\t\t\treturn;\n\n\t\t_toastLeft -= dt;\n\t\tif ( _toastLeft \u003E 0f )\n\t\t\treturn;\n\n\t\t_toastLeft = 0f;\n\t\t_toastId = \u0022\u0022;\n\t\tVersion\u002B\u002B;\n\t\tShowNext();\n\t}\n\n\tpublic static void Evaluate()\n\t{\n\t\tif ( GameState.GrassEaten \u003E= 1 )\n\t\t\tUnlock( \u0022grass_free\u0022 );\n\t\tif ( GameState.GrassEaten \u003E= 6 )\n\t\t\tUnlock( \u0022bigger_little\u0022 );\n\t\tif ( GameState.GrassBag \u003E= 3 )\n\t\t\tUnlock( \u0022share_ready\u0022 );\n\t\tif ( GameState.Beat \u003E= Beat.Snake )\n\t\t\tUnlock( \u0022pure_black\u0022 );\n\t\tif ( GameState.Bitten )\n\t\t\tUnlock( \u0022not_rope\u0022 );\n\t\tif ( GameState.CreekJumped )\n\t\t\tUnlock( \u0022only_jump\u0022 );\n\t\tif ( GameState.FedLeopard )\n\t\t\tUnlock( \u0022share_grass\u0022 );\n\t\tif ( GameState.HerdSuspects )\n\t\t\tUnlock( \u0022niu_er\u0022 );\n\t\tif ( GameState.Beat \u003E= Beat.Ban )\n\t\t\tUnlock( \u0022wolf_come\u0022 );\n\t\tif ( GameState.BaoLaBanned )\n\t\t\tUnlock( \u0022not_allow\u0022 );\n\t\tif ( GameState.MomGone )\n\t\t\tUnlock( \u0022dont_look_back\u0022 );\n\t\tif ( GameState.Beat \u003E= Beat.Cart )\n\t\t\tUnlock( \u0022cart_big\u0022 );\n\t\tif ( GameState.MooedCart )\n\t\t\tUnlock( \u0022moo_cart\u0022 );\n\t\tif ( GameState.Beat \u003E= Beat.Farewell )\n\t\t\tUnlock( \u0022thank_you\u0022 );\n\t\tif ( GameState.Beat \u003E= Beat.Wake )\n\t\t\tUnlock( \u0022stand_stable\u0022 );\n\t\tif ( GameState.FoundDad )\n\t\t\tUnlock( \u0022herd_boss\u0022 );\n\t\tif ( GameState.SongWalk )\n\t\t\tUnlock( \u0022we_walk\u0022 );\n\t\tif ( GameState.Won )\n\t\t\tUnlock( \u0022after_rain\u0022 );\n\t}\n\n\tpublic static void OnUsed( string id )\n\t{\n\t\tswitch ( id )\n\t\t{\n\t\t\tcase \u0022mom\u0022:\n\t\t\t\tUnlock( \u0022open_eye\u0022 );\n\t\t\t\tbreak;\n\t\t\tcase \u0022lark\u0022:\n\t\t\t\tif ( GameState.Beat == Beat.Migrate )\n\t\t\t\t\tUnlock( \u0022yun_ding\u0022 );\n\t\t\t\tbreak;\n\t\t\tcase \u0022leopard\u0022:\n\t\t\t\tUnlock( \u0022bao_la\u0022 );\n\t\t\t\tif ( GameState.FedLeopard )\n\t\t\t\t\tUnlock( \u0022still_here\u0022 );\n\t\t\t\tbreak;\n\t\t\tcase \u0022dad\u0022:\n\t\t\t\tif ( GameState.Beat is not Beat.Wake and not Beat.Reunion )\n\t\t\t\t\tUnlock( \u0022too_early\u0022 );\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\tstatic void ShowNext()\n\t{\n\t\tif ( ToastVisible || ToastQ.Count == 0 )\n\t\t\treturn;\n\n\t\t_toastId = ToastQ.Dequeue();\n\t\t_toastLeft = ToastSeconds;\n\t\tVersion\u002B\u002B;\n\t}\n}\n"},{"Ident":"dogecoin.niulai","Path":"CowMesh.cs","FileName":"CowMesh.cs","PackageType":"game","CodeKind":"Game","AssetVersionId":443544,"IsPrivate":false,"Code":"namespace NiuLai;\n\n/// \u003Csummary\u003EBootleg box cow \u2014 the movie is famous for this quality bar.\u003C/summary\u003E\npublic static class CowMesh\n{\n\tpublic static readonly Color Calf = new( 0.92f, 0.42f, 0.32f );\n\tpublic static readonly Color Mom = new( 0.85f, 0.55f, 0.28f );\n\tpublic static readonly Color Dad = new( 0.72f, 0.42f, 0.18f );\n\tpublic static readonly Color Peer = new( 0.88f, 0.48f, 0.36f );\n\tpublic static readonly Color Herd = new( 0.80f, 0.52f, 0.26f );\n\tpublic static readonly Color Horn = new( 0.45f, 0.32f, 0.62f );\n\tpublic static readonly Color Hoof = new( 0.95f, 0.92f, 0.88f );\n\tpublic static readonly Color Nose = new( 0.95f, 0.88f, 0.82f );\n\n\tpublic static GameObject Build( GameObject parent, Color hide, float scale = 1f )\n\t{\n\t\tvar root = new GameObject( true, \u0022mesh\u0022 );\n\t\troot.SetParent( parent, false );\n\t\troot.LocalPosition = 0;\n\t\troot.LocalScale = 1;\n\n\t\tPart( root, \u0022body\u0022, new Vector3( 0, 0, 22 ), new Vector3( 1.35f, 0.62f, 0.72f ), hide, scale );\n\t\tPart( root, \u0022hump\u0022, new Vector3( -6, 0, 36 ), new Vector3( 0.55f, 0.40f, 0.22f ), hide * 0.92f, scale );\n\t\tPart( root, \u0022head\u0022, new Vector3( 30, 0, 30 ), new Vector3( 0.48f, 0.42f, 0.42f ), new Color( hide.r \u002B 0.06f, hide.g \u002B 0.05f, hide.b \u002B 0.03f ), scale );\n\t\tPart( root, \u0022snout\u0022, new Vector3( 44, 0, 26 ), new Vector3( 0.28f, 0.26f, 0.20f ), Nose, scale );\n\t\tPart( root, \u0022earL\u0022, new Vector3( 26, 10, 38 ), new Vector3( 0.10f, 0.18f, 0.08f ), hide * 0.85f, scale );\n\t\tPart( root, \u0022earR\u0022, new Vector3( 26, -10, 38 ), new Vector3( 0.10f, 0.18f, 0.08f ), hide * 0.85f, scale );\n\t\tPart( root, \u0022hornL\u0022, new Vector3( 24, 8, 44 ), new Vector3( 0.07f, 0.07f, 0.28f ), Horn, scale );\n\t\tPart( root, \u0022hornR\u0022, new Vector3( 24, -8, 44 ), new Vector3( 0.07f, 0.07f, 0.28f ), Horn, scale );\n\t\tPart( root, \u0022legFL\u0022, new Vector3( 16, 12, 8 ), new Vector3( 0.16f, 0.16f, 0.36f ), Hoof, scale );\n\t\tPart( root, \u0022legFR\u0022, new Vector3( 16, -12, 8 ), new Vector3( 0.16f, 0.16f, 0.36f ), Hoof, scale );\n\t\tPart( root, \u0022legBL\u0022, new Vector3( -16, 12, 8 ), new Vector3( 0.16f, 0.16f, 0.36f ), Hoof, scale );\n\t\tPart( root, \u0022legBR\u0022, new Vector3( -16, -12, 8 ), new Vector3( 0.16f, 0.16f, 0.36f ), Hoof, scale );\n\t\tPart( root, \u0022tail\u0022, new Vector3( -38, 0, 26 ), new Vector3( 0.42f, 0.08f, 0.08f ), hide * 0.8f, scale );\n\t\treturn root;\n\t}\n\n\tstatic void Part( GameObject parent, string name, Vector3 local, Vector3 scale, Color tint, float cowScale )\n\t{\n\t\tvar go = new GameObject( true, name );\n\t\tgo.SetParent( parent, false );\n\t\tgo.LocalPosition = local * cowScale;\n\t\tgo.LocalScale = scale * cowScale;\n\n\t\tvar mr = go.Components.Create\u003CModelRenderer\u003E();\n\t\tmr.Model = Primitives.BoxModel;\n\t\tmr.MaterialOverride = Primitives.TintMat;\n\t\tmr.Tint = tint;\n\t}\n}\n"},{"Ident":"dogecoin.niulai","Path":"Hud.razor","FileName":"Hud.razor","PackageType":"game","CodeKind":"Game","AssetVersionId":443544,"IsPrivate":false,"Code":"@using System;\n@using Sandbox;\n@using Sandbox.UI;\n@inherits PanelComponent\n@namespace NiuLai\n\n\u003Croot class=\u0022root\u0022\u003E\n\t@if ( GameFlow.Screen == GameScreen.Title )\n\t{\n\t\t\u003Cdiv class=\u0022screen title\u0022\u003E\n\t\t\t\u003Cdiv class=\u0022title-tall\u0022\u003E\u003C/div\u003E\n\t\t\t\u003Cdiv class=\u0022title-stamp\u0022\u003E\u003C/div\u003E\n\t\t\t\u003Cdiv class=\u0022title-wash\u0022\u003E\u003C/div\u003E\n\t\t\t\u003Cdiv class=\u0022title-stack\u0022\u003E\n\t\t\t\t\u003Cdiv class=\u0022seal\u0022\u003E@GameInfo.DragonSeal\u003C/div\u003E\n\t\t\t\t\u003Cdiv class=\u0022studio\u0022\u003E@GameInfo.Studio \u00B7 \u624B\u6413\u6D77\u62A5\u4E09\u5F20\u003C/div\u003E\n\t\t\t\t\u003Cdiv class=\u0022loading\u0022\u003E\u4E94\u5E74\u624B\u6413\u52A0\u8F7D\u4E2D\u2026\u2026 Five-year handmade loading\u2026\u2026\u003C/div\u003E\n\t\t\t\t\u003Cdiv class=\u0022title-cn\u0022\u003E\u725B\u6765\u003C/div\u003E\n\t\t\t\t\u003Cdiv class=\u0022title-en\u0022\u003E(Niu Lai)\u003C/div\u003E\n\t\t\t\t\u003Cdiv class=\u0022tag\u0022\u003E@GameInfo.Tagline\u003C/div\u003E\n\t\t\t\t\u003Cdiv class=\u0022tag-en\u0022\u003E@GameInfo.TaglineEn\u003C/div\u003E\n\t\t\t\t\u003Cdiv class=\u0022poster-note\u0022\u003E\u8DDF\u7740\u725B\u6765\u8D70\u5B8C\u8FC1\u5F99\u3002\u5EFA\u6A21\u6709\u70B9\u6B6A\u3002\u8FD9\u662F\u7535\u5F71\u3002\u003C/div\u003E\n\t\t\t\t\u003Cdiv class=\u0022poster-note en\u0022\u003EWalk the migration with Niu Lai. Model a bit crooked. This is the movie.\u003C/div\u003E\n\t\t\t\t\u003Cdiv class=\u0022menu-links\u0022\u003E\n\t\t\t\t\t\u003Cdiv class=\u0022btn primary\u0022 @onclick=\u0022@OnStart\u0022\u003E\u5F00\u59CB / START\u003C/div\u003E\n\t\t\t\t\t\u003Cdiv class=\u0022btn\u0022 @onclick=\u0022@OnQuit\u0022\u003E\u9000\u51FA / QUIT\u003C/div\u003E\n\t\t\t\t\u003C/div\u003E\n\t\t\t\u003C/div\u003E\n\t\t\t\u003Cdiv class=\u0022ver\u0022\u003E@GameInfo.Package \u00B7 @GameInfo.VersionLabel \u00B7 bootleg cut\u003C/div\u003E\n\t\t\u003C/div\u003E\n\t}\n\telse if ( GameFlow.Screen == GameScreen.Paused )\n\t{\n\t\t\u003Cdiv class=\u0022screen pause\u0022\u003E\n\t\t\t\u003Cdiv class=\u0022panel\u0022\u003E\n\t\t\t\t\u003Cdiv class=\u0022pause-stamp\u0022\u003E\u003C/div\u003E\n\t\t\t\t\u003Cdiv class=\u0022panel-title\u0022\u003E\u6682\u505C / PAUSED\u003C/div\u003E\n\t\t\t\t\u003Cdiv class=\u0022btn primary\u0022 @onclick=\u0022@OnResume\u0022\u003E\u7EE7\u7EED / CONTINUE\u003C/div\u003E\n\t\t\t\t\u003Cdiv class=\u0022btn\u0022 @onclick=\u0022@OnTitle\u0022\u003E\u6807\u9898 / TITLE\u003C/div\u003E\n\t\t\t\u003C/div\u003E\n\t\t\u003C/div\u003E\n\t}\n\telse if ( GameFlow.Screen == GameScreen.Ending )\n\t{\n\t\t\u003Cdiv class=\u0022screen ending\u0022\u003E\n\t\t\t\u003Cdiv class=\u0022end-poster\u0022\u003E\u003C/div\u003E\n\t\t\t\u003Cdiv class=\u0022end-card\u0022\u003E\n\t\t\t\t\u003Cdiv class=\u0022end-stamp\u0022\u003E\u003C/div\u003E\n\t\t\t\t\u003Cdiv class=\u0022end-title\u0022\u003E\u96E8\u540E\u8F7B\u98CE\u6709\u9999\u003C/div\u003E\n\t\t\t\t\u003Cdiv class=\u0022end-sub\u0022\u003EAfter Rain, Light Wind Have Fragrance \u00B7 \u5B59\u4E3D\u82B3\u003C/div\u003E\n\t\t\t\t\u003Cdiv class=\u0022end-sub\u0022\u003E\u7247\u5C3E\u66F2\u6B63\u5728\u64AD\u653E \u00B7 ending song from the movie\u003C/div\u003E\n\t\t\t\t@foreach ( var line in Lines.Ending )\n\t\t\t\t{\n\t\t\t\t\t\u003Cdiv class=\u0022end-line\u0022\u003E@line.Cn\u003C/div\u003E\n\t\t\t\t\t\u003Cdiv class=\u0022end-line en\u0022\u003E@line.En\u003C/div\u003E\n\t\t\t\t}\n\t\t\t\t\u003Cdiv class=\u0022end-stat\u0022\u003E\u52C7\u6C14 @GameState.Courage \u00B7 \u8349 @GameState.GrassEaten \u4E1B \u00B7 @GameState.ChapterCn\u003C/div\u003E\n\t\t\t\t\u003Cdiv class=\u0022btn primary\u0022 @onclick=\u0022@OnTitle\u0022\u003E\u518D\u770B\u4E00\u904D / WATCH AGAIN\u003C/div\u003E\n\t\t\t\u003C/div\u003E\n\t\t\u003C/div\u003E\n\t}\n\telse\n\t{\n\t\t\u003Cdiv class=\u0022play\u0022\u003E\n\t\t\t\u003Cdiv class=\u0022top\u0022\u003E\n\t\t\t\t\u003Cdiv class=\u0022quest\u0022\u003E\n\t\t\t\t\t\u003Cdiv class=\u0022q-cn\u0022\u003E@GameState.QuestLine.Cn\u003C/div\u003E\n\t\t\t\t\t\u003Cdiv class=\u0022q-en\u0022\u003E@GameState.QuestLine.En\u003C/div\u003E\n\t\t\t\t\u003C/div\u003E\n\t\t\t\t\u003Cdiv class=\u0022meters\u0022\u003E\n\t\t\t\t\t\u003Cdiv class=\u0022meter\u0022\u003E\n\t\t\t\t\t\t\u003Cdiv class=\u0022m-k\u0022\u003E\u7AE0\u8282 CHAPTER\u003C/div\u003E\n\t\t\t\t\t\t\u003Cdiv class=\u0022m-v\u0022\u003E@GameState.ChapterCn\u003C/div\u003E\n\t\t\t\t\t\u003C/div\u003E\n\t\t\t\t\t\u003Cdiv class=\u0022meter\u0022\u003E\n\t\t\t\t\t\t\u003Cdiv class=\u0022m-k\u0022\u003E\u52C7\u6C14 COURAGE\u003C/div\u003E\n\t\t\t\t\t\t\u003Cdiv class=\u0022m-v\u0022\u003E@GameState.Courage\u003C/div\u003E\n\t\t\t\t\t\u003C/div\u003E\n\t\t\t\t\t\u003Cdiv class=\u0022meter\u0022\u003E\n\t\t\t\t\t\t\u003Cdiv class=\u0022m-k\u0022\u003E\u8349 GRASS\u003C/div\u003E\n\t\t\t\t\t\t\u003Cdiv class=\u0022m-v\u0022\u003E@GameState.GrassBag@(GameState.HasMilk ? \u0022 \u00B7 \u5976\u0022 : \u0022\u0022)\u003C/div\u003E\n\t\t\t\t\t\u003C/div\u003E\n\t\t\t\t\t\u003Cdiv class=\u0022meter\u0022\u003E\n\t\t\t\t\t\t\u003Cdiv class=\u0022m-k\u0022\u003E\u540D\u573A\u9762 SCENES\u003C/div\u003E\n\t\t\t\t\t\t\u003Cdiv class=\u0022m-v\u0022\u003E@GameState.SceneScore / @GameState.SceneTotal\u003C/div\u003E\n\t\t\t\t\t\u003C/div\u003E\n\t\t\t\t\u003C/div\u003E\n\t\t\t\u003C/div\u003E\n\n\t\t\t@if ( GameState.InVoid )\n\t\t\t{\n\t\t\t\t\u003Cdiv class=\u0022banner\u0022\u003E\u7EAF\u9ED1\u7684\u68A6 \u00B7 THE BLACK DREAM\u003C/div\u003E\n\t\t\t}\n\n\t\t\t@if ( GameState.Talking )\n\t\t\t{\n\t\t\t\t\u003Cdiv class=\u0022talk\u0022\u003E\n\t\t\t\t\t\u003Cdiv class=\u0022who\u0022\u003E@GameState.Speaker\u003C/div\u003E\n\t\t\t\t\t\u003Cdiv class=\u0022cn\u0022\u003E@GameState.CurrentLine.Cn\u003C/div\u003E\n\t\t\t\t\t\u003Cdiv class=\u0022en\u0022\u003E@GameState.CurrentLine.En\u003C/div\u003E\n\t\t\t\t\t\u003Cdiv class=\u0022next\u0022\u003EE / Enter \u7EE7\u7EED continue\u003C/div\u003E\n\t\t\t\t\u003C/div\u003E\n\t\t\t}\n\t\t\telse if ( Chatter.Visible )\n\t\t\t{\n\t\t\t\t\u003Cdiv class=\u0022bark\u0022\u003E\n\t\t\t\t\t\u003Cdiv class=\u0022who\u0022\u003E@Chatter.Who\u003C/div\u003E\n\t\t\t\t\t\u003Cdiv class=\u0022cn\u0022\u003E@Chatter.Cn\u003C/div\u003E\n\t\t\t\t\t\u003Cdiv class=\u0022en\u0022\u003E@Chatter.En\u003C/div\u003E\n\t\t\t\t\u003C/div\u003E\n\t\t\t}\n\n\t\t\t@if ( !GameState.Talking \u0026\u0026 !string.IsNullOrEmpty( GameState.PromptCn ) )\n\t\t\t{\n\t\t\t\t\u003Cdiv class=\u0022prompt\u0022\u003E\n\t\t\t\t\t\u003Cdiv class=\u0022cn\u0022\u003E@GameState.PromptCn\u003C/div\u003E\n\t\t\t\t\t\u003Cdiv class=\u0022en\u0022\u003E@GameState.PromptEn\u003C/div\u003E\n\t\t\t\t\u003C/div\u003E\n\t\t\t}\n\n\t\t\t\u003Cdiv class=\u0022help\u0022\u003EWASD \u8D70 \u00B7 \u9F20\u6807\u770B \u00B7 \u7A7A\u683C\u8DF3 \u00B7 E \u4E92\u52A8 \u00B7 F \u54DE \u00B7 Esc \u6682\u505C\u003C/div\u003E\n\t\t\u003C/div\u003E\n\t}\n\n\t@if ( FilmCut.Playing )\n\t{\n\t\t\u003Cdiv class=\u0022letter-top\u0022\u003E\u003C/div\u003E\n\t\t\u003Cdiv class=\u0022letter-bot\u0022\u003E\u003C/div\u003E\n\t\t@if ( !string.IsNullOrEmpty( FilmCut.CardCn ) )\n\t\t{\n\t\t\t\u003Cdiv class=\u0022cut-card\u0022\u003E\n\t\t\t\t\u003Cdiv class=\u0022cut-k\u0022\u003E\u9662\u7EBF\u5F55\u97F3 \u00B7 THEATER TAPE\u003C/div\u003E\n\t\t\t\t\u003Cdiv class=\u0022cut-cn\u0022\u003E@FilmCut.CardCn\u003C/div\u003E\n\t\t\t\t\u003Cdiv class=\u0022cut-en\u0022\u003E@FilmCut.CardEn\u003C/div\u003E\n\t\t\t\t\u003Cdiv class=\u0022cut-skip\u0022\u003EE \u8DF3\u8FC7 / skip this handmade shot\u003C/div\u003E\n\t\t\t\u003C/div\u003E\n\t\t}\n\t}\n\n\t@if ( Trophies.ToastVisible \u0026\u0026 Trophies.Toast is TrophyDef ach )\n\t{\n\t\t\u003Cdiv class=\u0022ach\u0022\u003E\n\t\t\t\u003Cdiv class=\u0022ach-k\u0022\u003E\u6210\u5C31 ACHIEVEMENT\u003C/div\u003E\n\t\t\t\u003Cdiv class=\u0022ach-t\u0022\u003E@ach.Title\u003C/div\u003E\n\t\t\t\u003Cdiv class=\u0022ach-d\u0022\u003E@ach.Description\u003C/div\u003E\n\t\t\u003C/div\u003E\n\t}\n\u003C/root\u003E\n\n@code\n{\n\tint _sig;\n\n\tprotected override void OnUpdate()\n\t{\n\t\tvar sig = HashCode.Combine(\n\t\t\tHashCode.Combine(\n\t\t\t\t(int)GameFlow.Screen,\n\t\t\t\t(int)GameState.Beat,\n\t\t\t\tGameState.Courage,\n\t\t\t\tGameState.GrassBag,\n\t\t\t\tGameState.GrassEaten,\n\t\t\t\tGameState.SceneScore,\n\t\t\t\tGameState.Talking,\n\t\t\t\tGameState.DialogueIndex\n\t\t\t),\n\t\t\tGameState.PromptCn,\n\t\t\tGameState.InVoid,\n\t\t\tTrophies.Version,\n\t\t\tFilmCut.Version,\n\t\t\tChatter.Version\n\t\t);\n\t\tif ( sig == _sig )\n\t\t\treturn;\n\n\t\t_sig = sig;\n\t\tStateHasChanged();\n\t}\n\n\tvoid OnStart()\n\t{\n\t\tGameFlow.StartNewGame();\n\t}\n\n\tvoid OnResume()\n\t{\n\t\tGameFlow.SetScreen( GameScreen.Playing );\n\t}\n\n\tvoid OnTitle()\n\t{\n\t\tGameFlow.BackToTitle();\n\t}\n\n\tvoid OnQuit()\n\t{\n\t\tGame.Close();\n\t}\n}\n"},{"Ident":"dogecoin.niulai","Path":".obj/__compiler_extra.cs","FileName":"__compiler_extra.cs","PackageType":"game","CodeKind":"Game","AssetVersionId":443544,"IsPrivate":false,"Code":"global using static Sandbox.Internal.GlobalGameNamespace;\r\nglobal using Microsoft.AspNetCore.Components;\r\nglobal using Microsoft.AspNetCore.Components.Rendering;\r\n[assembly: global::System.Reflection.AssemblyMetadata( \u0022AddonTitle\u0022, \u0022Niu Lai (\u725B\u6765)\u0022 )]\r\n[assembly: global::System.Reflection.AssemblyMetadata( \u0022AddonIdent\u0022, \u0022niulai\u0022 )]\r\n[assembly: global::System.Reflection.AssemblyMetadata( \u0022OrgIdent\u0022, \u0022dogecoin\u0022 )]\r\n[assembly: global::System.Reflection.AssemblyMetadata( \u0022Ident\u0022, \u0022dogecoin.niulai\u0022 )]\r\n[assembly: global::System.Reflection.AssemblyMetadata( \u0022EngineVersion\u0022, \u002232\u0022 )]\r\n[assembly: global::System.Reflection.AssemblyMetadata( \u0022EngineMinorVersion\u0022, \u00221\u0022 )]\r\n\r\n[assembly: System.Runtime.Versioning.TargetFramework( \u0022.NETCoreApp,Version=v9.0\u0022, FrameworkDisplayName = \u0022.NET 9.0\u0022 )]\r\n[assembly: global::System.Reflection.AssemblyMetadata( \u0022CompileTime\u0022, \u00222026-10-31T21:39:31.7884981Z\u0022 )]\r\n[assembly: global::System.Reflection.AssemblyVersion(\u00220.0.110.0\u0022)]\r\n[assembly: global::System.Reflection.AssemblyFileVersion(\u00220.0.110.0\u0022)]"},{"Ident":"dogecoin.niulai","Path":"GameState.cs","FileName":"GameState.cs","PackageType":"game","CodeKind":"Game","AssetVersionId":443544,"IsPrivate":false,"Code":"namespace NiuLai;\n\n/// \u003Csummary\u003EFilm order. The game is the movie, just playable and still crooked.\u003C/summary\u003E\npublic enum Beat\n{\n\tMigrate,\n\tDream,\n\tSnake,\n\tCreek,\n\tNight,\n\tSuspect,\n\tWolves,\n\tBan,\n\tCanyon,\n\tCart,\n\tFarewell,\n\tWake,\n\tReunion,\n\tCredits\n}\n\npublic static class GameState\n{\n\tpublic static Beat Beat { get; private set; } = Beat.Migrate;\n\tpublic static int GrassEaten { get; private set; }\n\tpublic static int GrassBag { get; private set; }\n\tpublic static int Courage { get; private set; }\n\tpublic static bool Bitten { get; private set; }\n\tpublic static bool CreekJumped { get; private set; }\n\tpublic static bool FedLeopard { get; private set; }\n\tpublic static bool HerdSuspects { get; private set; }\n\tpublic static bool BaoLaBanned { get; private set; }\n\tpublic static bool MomGone { get; private set; }\n\tpublic static bool MooedCart { get; private set; }\n\tpublic static bool FoundDad { get; private set; }\n\tpublic static bool HeardLikeHere { get; private set; }\n\tpublic static bool HasMilk { get; private set; }\n\tpublic static bool GaveMilk { get; private set; }\n\tpublic static bool SawLeopardFace { get; private set; }\n\tpublic static bool DidHeadbutt { get; private set; }\n\tpublic static int CartMoos { get; private set; }\n\tpublic static bool DidOpenCut { get; private set; }\n\tpublic static bool DidEatNag { get; private set; }\n\tpublic static int MooCount { get; private set; }\n\tpublic static int ExtraShares { get; private set; }\n\tpublic static bool Won { get; set; }\n\tpublic static bool SongWalk { get; set; }\n\tpublic static bool SawTail { get; private set; }\n\tpublic static bool WantHop { get; set; }\n\tpublic static bool InVoid =\u003E Beat is Beat.Dream or Beat.Farewell;\n\tpublic static int SceneScore\n\t{\n\t\tget\n\t\t{\n\t\t\tvar n = 0;\n\t\t\tif ( DidOpenCut ) n\u002B\u002B;\n\t\t\tif ( HeardLikeHere ) n\u002B\u002B;\n\t\t\tif ( Bitten ) n\u002B\u002B;\n\t\t\tif ( CreekJumped ) n\u002B\u002B;\n\t\t\tif ( SawTail ) n\u002B\u002B;\n\t\t\tif ( SawLeopardFace ) n\u002B\u002B;\n\t\t\tif ( GaveMilk ) n\u002B\u002B;\n\t\t\tif ( FedLeopard ) n\u002B\u002B;\n\t\t\tif ( DidHeadbutt ) n\u002B\u002B;\n\t\t\tif ( HerdSuspects ) n\u002B\u002B;\n\t\t\tif ( BaoLaBanned ) n\u002B\u002B;\n\t\t\tif ( MomGone ) n\u002B\u002B;\n\t\t\tif ( MooedCart ) n\u002B\u002B;\n\t\t\tif ( FoundDad ) n\u002B\u002B;\n\t\t\treturn n;\n\t\t}\n\t}\n\tpublic const int SceneTotal = 14;\n\tpublic static bool IsNight =\u003E Beat is Beat.Night or Beat.Suspect or Beat.Wolves or Beat.Ban;\n\tpublic static bool WolvesHunt =\u003E Beat is Beat.Wolves or Beat.Canyon;\n\tpublic static bool BaoLaFollows =\u003E FedLeopard \u0026\u0026 !BaoLaBanned \u0026\u0026 Beat \u003C Beat.Farewell;\n\tpublic static float Growth =\u003E 0.62f \u002B GrassEaten * 0.05f \u002B Courage * 0.01f \u002B ExtraShares * 0.03f \u002B (FoundDad ? 0.2f : 0);\n\tpublic static float WalkMul =\u003E 0.80f \u002B GrassEaten * 0.018f \u002B Courage * 0.008f;\n\tpublic static float PlayTime { get; private set; }\n\n\tpublic static readonly Vector3 CampPos = new( 0, 0, 24 );\n\tpublic static readonly Vector3 DreamPos = new( 0, 2800, 16 );\n\tpublic static readonly Vector3 SnakePos = new( 280, 20, 24 );\n\tpublic static readonly Vector3 WakePos = new( 40, 40, 24 );\n\tpublic static readonly Vector3 DadPos = new( 160, 860, 24 );\n\n\tpublic static Line[] Dialogue { get; private set; }\n\tpublic static int DialogueIndex { get; private set; }\n\tpublic static string Speaker { get; private set; }\n\tpublic static bool Talking =\u003E Dialogue is { Length: \u003E 0 };\n\tpublic static string PromptCn { get; private set; }\n\tpublic static string PromptEn { get; private set; }\n\tpublic static Action Teleport;\n\tpublic static Action MoodChanged;\n\n\tpublic static string ChapterCn =\u003E Beat switch\n\t{\n\t\tBeat.Migrate =\u003E \u0022\u8FC1\u5F99\u0022,\n\t\tBeat.Dream =\u003E \u0022\u7EAF\u9ED1\u7684\u68A6\u0022,\n\t\tBeat.Snake =\u003E \u0022\u5C0F\u7EF3\u5934\u0022,\n\t\tBeat.Creek =\u003E \u0022\u5C0F\u6EAA\u0022,\n\t\tBeat.Night =\u003E \u0022\u8C79\u62C9\u0022,\n\t\tBeat.Suspect =\u003E \u0022\u6000\u7591\u0022,\n\t\tBeat.Wolves =\u003E \u0022\u72FC\u6765\u4E86\u0022,\n\t\tBeat.Ban =\u003E \u0022\u4E0D\u8BB8\u8DDF\u7740\u0022,\n\t\tBeat.Canyon =\u003E \u0022\u5CE1\u8C37\u0022,\n\t\tBeat.Cart =\u003E \u0022\u53F0\u8F66\u0022,\n\t\tBeat.Farewell =\u003E \u0022\u9053\u522B\u0022,\n\t\tBeat.Wake =\u003E \u0022\u9192\u6765\u0022,\n\t\tBeat.Reunion =\u003E \u0022\u56E2\u805A\u0022,\n\t\t_ =\u003E \u0022\u96E8\u540E\u8F7B\u98CE\u6709\u9999\u0022\n\t};\n\n\tpublic static string ChapterEn =\u003E Beat switch\n\t{\n\t\tBeat.Migrate =\u003E \u0022The walk\u0022,\n\t\tBeat.Dream =\u003E \u0022Black dream\u0022,\n\t\tBeat.Snake =\u003E \u0022Little Rope-Head\u0022,\n\t\tBeat.Creek =\u003E \u0022The creek\u0022,\n\t\tBeat.Night =\u003E \u0022Bao La\u0022,\n\t\tBeat.Suspect =\u003E \u0022They doubt him\u0022,\n\t\tBeat.Wolves =\u003E \u0022Wolves come\u0022,\n\t\tBeat.Ban =\u003E \u0022Don\u0027t follow\u0022,\n\t\tBeat.Canyon =\u003E \u0022Canyon\u0022,\n\t\tBeat.Cart =\u003E \u0022The cart\u0022,\n\t\tBeat.Farewell =\u003E \u0022Goodbye\u0022,\n\t\tBeat.Wake =\u003E \u0022Wake\u0022,\n\t\tBeat.Reunion =\u003E \u0022Together\u0022,\n\t\t_ =\u003E \u0022After rain\u0022\n\t};\n\n\tpublic static Line QuestLine =\u003E Lines.Quest( Beat );\n\n\tpublic static Line CurrentLine =\u003E\n\t\tTalking \u0026\u0026 DialogueIndex \u003E= 0 \u0026\u0026 DialogueIndex \u003C Dialogue.Length\n\t\t\t? Dialogue[DialogueIndex]\n\t\t\t: default;\n\n\tpublic static void Reset()\n\t{\n\t\tBeat = Beat.Migrate;\n\t\tGrassEaten = 0;\n\t\tGrassBag = 0;\n\t\tCourage = 0;\n\t\tBitten = false;\n\t\tCreekJumped = false;\n\t\tFedLeopard = false;\n\t\tHerdSuspects = false;\n\t\tBaoLaBanned = false;\n\t\tMomGone = false;\n\t\tMooedCart = false;\n\t\tFoundDad = false;\n\t\tHeardLikeHere = false;\n\t\tHasMilk = false;\n\t\tGaveMilk = false;\n\t\tSawLeopardFace = false;\n\t\tDidHeadbutt = false;\n\t\tCartMoos = 0;\n\t\tDidOpenCut = false;\n\t\tDidEatNag = false;\n\t\tSawTail = false;\n\t\tWantHop = false;\n\t\tMooCount = 0;\n\t\tExtraShares = 0;\n\t\tWon = false;\n\t\tSongWalk = false;\n\t\tPlayTime = 0;\n\t\tClearTalk();\n\t\tSetPrompt( \u0022\u0022, \u0022\u0022 );\n\t}\n\n\tpublic static void SetPrompt( string cn, string en )\n\t{\n\t\tcn ??= \u0022\u0022;\n\t\ten ??= \u0022\u0022;\n\t\tif ( PromptCn == cn \u0026\u0026 PromptEn == en )\n\t\t\treturn;\n\n\t\tPromptCn = cn;\n\t\tPromptEn = en;\n\t}\n\n\tpublic static void Tick( float dt )\n\t{\n\t\tif ( GameFlow.Screen != GameScreen.Playing )\n\t\t\treturn;\n\n\t\tPlayTime \u002B= dt;\n\t\t_prove \u002B= dt;\n\t\tif ( _prove \u003E 44f \u0026\u0026 !Talking \u0026\u0026 !FilmCut.Playing )\n\t\t{\n\t\t\t_prove = 0;\n\t\t\tChatter.Say( \u0022\u65C1\u767D / Narrator\u0022, Chatter.Pick( Lines.TimeProve ), 2.4f );\n\t\t}\n\n\t\tif ( Beat == Beat.Reunion \u0026\u0026 !Won \u0026\u0026 !Talking )\n\t\t\tGameFlow.Win();\n\t}\n\n\tstatic float _prove;\n\n\tpublic static void Talk( string speaker, Line[] lines )\n\t{\n\t\tif ( lines is not { Length: \u003E 0 } )\n\t\t\treturn;\n\n\t\tSpeaker = speaker;\n\t\tDialogue = lines;\n\t\tDialogueIndex = 0;\n\t}\n\n\tpublic static bool AdvanceTalk()\n\t{\n\t\tif ( !Talking )\n\t\t\treturn false;\n\n\t\tDialogueIndex\u002B\u002B;\n\t\tif ( DialogueIndex \u003C Dialogue.Length )\n\t\t\treturn false;\n\n\t\tClearTalk();\n\t\tOnTalkEnd();\n\t\treturn true;\n\t}\n\n\tpublic static void ClearTalk()\n\t{\n\t\tDialogue = null;\n\t\tDialogueIndex = 0;\n\t\tSpeaker = \u0022\u0022;\n\t}\n\n\tstatic void OnTalkEnd()\n\t{\n\t\tif ( Beat == Beat.Migrate \u0026\u0026 !DidOpenCut )\n\t\t{\n\t\t\tDidOpenCut = true;\n\t\t\tFilmCut.Play( CutId.OpenEyes );\n\t\t}\n\t\telse if ( Beat == Beat.Dream )\n\t\t\tLeaveDream();\n\t\telse if ( Beat == Beat.Cart \u0026\u0026 MooedCart )\n\t\t\tEnterFarewell();\n\t\telse if ( Beat == Beat.Farewell )\n\t\t\tWakeUp();\n\t\telse if ( Beat == Beat.Reunion \u0026\u0026 !Won )\n\t\t\tGameFlow.Win();\n\t}\n\n\tpublic static void HearLikeHere()\n\t{\n\t\tif ( HeardLikeHere )\n\t\t\treturn;\n\t\tHeardLikeHere = true;\n\t\tTalk( \u0022\u4E91\u738E / Yun Ding\u0022, Lines.LikeHere );\n\t\tGameAudio.PlayClip( GameAudio.LikeHere );\n\t}\n\n\tpublic static void EnterDreamFromCut()\n\t{\n\t\tif ( Beat != Beat.Migrate )\n\t\t\treturn;\n\t\tAdvance( Beat.Dream );\n\t\tCourage \u002B= 4;\n\t\tTrophies.Unlock( \u0022yun_ding\u0022 );\n\t\tTeleport?.Invoke();\n\t\tMoodChanged?.Invoke();\n\t}\n\n\tpublic static void FinishFarewellCut()\n\t{\n\t\tif ( Beat == Beat.Farewell )\n\t\t\tWakeUp();\n\t}\n\n\tpublic static void GiveMilk()\n\t{\n\t\tif ( HasMilk )\n\t\t{\n\t\t\tTalk( \u0022\u725B\u5988\u5988 / Mama\u0022, new[] { new Line( \u0022\u676F\u5B50\u5DF2\u7ECF\u7ED9\u4F60\u4E86\u3002\u0022, \u0022Cup already give you.\u0022 ) } );\n\t\t\treturn;\n\t\t}\n\n\t\tHasMilk = true;\n\t\tTalk( \u0022\u725B\u5988\u5988 / Mama\u0022, Lines.MomMilk );\n\t\tGameAudio.PlayClip( GameAudio.MamaOk );\n\t}\n\n\tpublic static void PourMilk()\n\t{\n\t\tif ( GaveMilk )\n\t\t\treturn;\n\t\tif ( !HasMilk )\n\t\t{\n\t\t\tTalk( \u0022\u8C79\u62C9 / Bao La\u0022, new[] { new Line( \u0022\u5148\u53BB\u627E\u5988\u5988\u8981\u5976\u3002\u0022, \u0022First go find Mama ask milk.\u0022 ) } );\n\t\t\treturn;\n\t\t}\n\n\t\tGaveMilk = true;\n\t\tHasMilk = false;\n\t\tCourage \u002B= 6;\n\t\tFilmCut.Play( CutId.MilkDad );\n\t}\n\n\tpublic static bool TryLeopardMeet()\n\t{\n\t\tif ( !SawLeopardFace )\n\t\t{\n\t\t\tSawLeopardFace = true;\n\t\t\tFilmCut.Play( CutId.LeopardFace );\n\t\t\treturn true;\n\t\t}\n\n\t\tif ( !GaveMilk )\n\t\t{\n\t\t\tPourMilk();\n\t\t\treturn true;\n\t\t}\n\n\t\tif ( !FedLeopard )\n\t\t\treturn FeedLeopard();\n\n\t\treturn false;\n\t}\n\n\tstatic float _eatComboUntil;\n\tstatic int _eatCombo;\n\n\tpublic static void MarkEatNag() =\u003E DidEatNag = true;\n\tpublic static void MarkTail() =\u003E SawTail = true;\n\n\tpublic static void CourageBoost( int n )\n\t{\n\t\tCourage = Math.Min( 100, Courage \u002B Math.Max( 0, n ) );\n\t}\n\n\tpublic static void EatGrass()\n\t{\n\t\tGrassEaten\u002B\u002B;\n\t\tGrassBag\u002B\u002B;\n\t\tCourage = Math.Min( 100, Courage \u002B 2 );\n\t\tif ( PlayTime \u003C= _eatComboUntil )\n\t\t\t_eatCombo\u002B\u002B;\n\t\telse\n\t\t\t_eatCombo = 1;\n\t\t_eatComboUntil = PlayTime \u002B 8f;\n\n\t\tif ( _eatCombo \u003E= 3 )\n\t\t{\n\t\t\t_eatCombo = 0;\n\t\t\tCourage = Math.Min( 100, Courage \u002B 3 );\n\t\t\tChatter.Say( \u0022\u725B\u6765 / Niu Lai\u0022, new Line( \u0022\u8FDE\u5403\u4E09\u4E1B\u3002\u6211\u660E\u663E\u5927\u4E86\u3002\u0022, \u0022Eat three tuft. I obvious bigger.\u0022 ), 3.2f );\n\t\t\tGameAudio.PlayCrowd( GameAudio.CrowdMilk );\n\t\t}\n\t\telse\n\t\t{\n\t\t\tChatter.Say( \u0022\u8349 / Grass\u0022, Chatter.Pick( Lines.Grass ) );\n\t\t}\n\t}\n\n\tpublic static bool ShareAgain()\n\t{\n\t\tif ( !FedLeopard || GrassBag \u003C= 0 || BaoLaBanned )\n\t\t\treturn false;\n\n\t\tGrassBag--;\n\t\tExtraShares\u002B\u002B;\n\t\tCourage = Math.Min( 100, Courage \u002B 1 );\n\t\tChatter.Say( \u0022\u8C79\u62C9 / Bao La\u0022, Chatter.Pick( Lines.ExtraMilk ), 3.1f );\n\t\tGameAudio.PlayClip( GameAudio.Milk, 0.8f );\n\t\treturn true;\n\t}\n\n\tpublic static void MooWorld( string nearId )\n\t{\n\t\tMooCount\u002B\u002B;\n\t\tif ( Beat == Beat.Cart )\n\t\t{\n\t\t\tMooCart();\n\t\t\treturn;\n\t\t}\n\n\t\tGameAudio.PlayClip( GameAudio.Moo );\n\t\tif ( MooCount == 8 || MooCount == 20 )\n\t\t\tGameAudio.PlayCrowd( GameAudio.CrowdCart );\n\n\t\tvar line = nearId switch\n\t\t{\n\t\t\t\u0022mom\u0022 =\u003E new Line( \u0022\u4F60\u6162\u70B9\u3002\u522B\u5BF9\u7740\u5988\u5988\u54DE\u3002\u0022, \u0022You slow a bit. Don\u0027t moo at Mama.\u0022 ),\n\t\t\t\u0022snake\u0022 =\u003E new Line( \u0022\u5C0F\u7EF3\u5934\u6296\u4E86\u4E00\u4E0B\u3002\u8FD8\u662F\u7EF3\u5B50\u3002\u0022, \u0022Little Rope-Head shake once. Still rope.\u0022 ),\n\t\t\t\u0022leopard\u0022 =\u003E new Line( \u0022\u6025\u4EC0\u4E48\u3002\u6211\u4E5F\u60F3\u54DE\u3002\u0022, \u0022Rush what. I also want moo.\u0022 ),\n\t\t\t\u0022rock\u0022 =\u003E new Line( \u0022\u72FC\u6CA1\u7406\u3002\u77F3\u5934\u4E5F\u6CA1\u7406\u3002\u0022, \u0022Wolf not care. Rock also not care.\u0022 ),\n\t\t\t\u0022lark\u0022 =\u003E new Line( \u0022\u55EF\u3002\u0022, \u0022Ng.\u0022 ),\n\t\t\t\u0022cart\u0022 =\u003E new Line( \u0022\u5B83\u542C\u89C1\u8868\u626C\u3002\u53C8\u5927\u4E86\u4E00\u70B9\u3002\u0022, \u0022It hear praise. Bigger a little.\u0022 ),\n\t\t\t\u0022niuer\u0022 =\u003E new Line( \u0022\u8EAB\u4EFD\u4E0D\u5BF9\u3002\u54DE\u4E5F\u4E0D\u5BF9\u3002\u0022, \u0022Identity not right. Moo also not right.\u0022 ),\n\t\t\t_ =\u003E Chatter.Pick( Lines.MooLines )\n\t\t};\n\t\tChatter.Say( \u0022\u54DE / Moo\u0022, line );\n\t}\n\n\tpublic static void MeetLark()\n\t{\n\t\tif ( Beat != Beat.Migrate )\n\t\t\treturn;\n\n\t\tAdvance( Beat.Dream );\n\t\tCourage \u002B= 4;\n\t\tTrophies.Unlock( \u0022yun_ding\u0022 );\n\t\tTalk( \u0022\u4E91\u738E / Yun Ding\u0022, Lines.Dream );\n\t\tGameAudio.PlayClip( GameAudio.LarkNg );\n\t\tTeleport?.Invoke();\n\t\tMoodChanged?.Invoke();\n\t}\n\n\tpublic static void LeaveDream()\n\t{\n\t\tif ( Beat != Beat.Dream )\n\t\t\treturn;\n\n\t\tAdvance( Beat.Snake );\n\t\tTeleport?.Invoke();\n\t\tMoodChanged?.Invoke();\n\t}\n\n\tpublic static void GetBitten()\n\t{\n\t\tif ( Bitten )\n\t\t\treturn;\n\n\t\tBitten = true;\n\t\tCourage \u002B= 6;\n\t\tTalk( \u0022\u5C0F\u7EF3\u5934 / Little Rope-Head\u0022, Lines.SnakeBite );\n\t\tif ( Beat == Beat.Snake )\n\t\t\tAdvance( Beat.Creek );\n\t}\n\n\tpublic static void JumpCreek()\n\t{\n\t\tif ( CreekJumped )\n\t\t\treturn;\n\n\t\tCreekJumped = true;\n\t\tCourage \u002B= 10;\n\t\tWantHop = true;\n\t\tTalk( \u0022\u65C1\u767D / Narrator\u0022, Lines.Creek );\n\t\tif ( Beat == Beat.Creek )\n\t\t{\n\t\t\tAdvance( Beat.Night );\n\t\t\tMoodChanged?.Invoke();\n\t\t}\n\t}\n\n\tpublic static bool FeedLeopard()\n\t{\n\t\tif ( FedLeopard )\n\t\t\treturn false;\n\t\tif ( GrassBag \u003C= 0 )\n\t\t{\n\t\t\tTrophies.Unlock( \u0022empty_bag\u0022 );\n\t\t\treturn false;\n\t\t}\n\n\t\tGrassBag--;\n\t\tFedLeopard = true;\n\t\tCourage \u002B= 8;\n\t\tTalk( \u0022\u8C79\u62C9 / Bao La\u0022, Lines.Leopard );\n\t\tif ( !DidHeadbutt )\n\t\t{\n\t\t\tDidHeadbutt = true;\n\t\t\tFilmCut.Play( CutId.Headbutt );\n\t\t}\n\t\tif ( Beat == Beat.Night \u0026\u0026 GaveMilk )\n\t\t\tAdvance( Beat.Suspect );\n\t\treturn true;\n\t}\n\n\tpublic static void HearSuspect()\n\t{\n\t\tif ( HerdSuspects )\n\t\t\treturn;\n\n\t\tHerdSuspects = true;\n\t\tCourage \u002B= 3;\n\t\tTalk( \u0022\u725B\u4E8C / Niu Er\u0022, Lines.Suspect );\n\t\tFilmCut.Play( CutId.TooClose );\n\t\tif ( Beat == Beat.Suspect )\n\t\t\tAdvance( Beat.Wolves );\n\t\tMoodChanged?.Invoke();\n\t}\n\n\tpublic static void FirstWolfWave()\n\t{\n\t\tif ( Beat != Beat.Wolves )\n\t\t\treturn;\n\n\t\tTalk( \u0022\u65C1\u767D / Narrator\u0022, Lines.WolvesSave );\n\t\tAdvance( Beat.Ban );\n\t}\n\n\tpublic static void BanBaoLa()\n\t{\n\t\tif ( BaoLaBanned )\n\t\t\treturn;\n\n\t\tBaoLaBanned = true;\n\t\tTalk( \u0022\u725B\u7FA4 / The herd\u0022, Lines.Ban );\n\t\tif ( Beat == Beat.Ban )\n\t\t\tAdvance( Beat.Canyon );\n\t}\n\n\tpublic static void HearMom()\n\t{\n\t\tif ( MomGone )\n\t\t\treturn;\n\n\t\tMomGone = true;\n\t\tCourage \u002B= 12;\n\t\tTalk( \u0022\u725B\u5988\u5988 / Mama\u0022, Lines.MomFarewell );\n\t\tGameAudio.PlayClip( GameAudio.CanRest );\n\t\tif ( Beat == Beat.Canyon )\n\t\t\tAdvance( Beat.Cart );\n\t}\n\n\tpublic static void MooCart()\n\t{\n\t\tCartMoos\u002B\u002B;\n\t\tGameAudio.PlayClip( GameAudio.Moo );\n\t\tGameAudio.PlayCrowd( GameAudio.CrowdCart );\n\t\tif ( CartMoos == 1 )\n\t\t\tFilmCut.Play( CutId.NoRoad );\n\n\t\tif ( CartMoos \u003C 3 )\n\t\t{\n\t\t\tTalk( \u0022\u53F0\u8F66 / The Cart\u0022, new[]\n\t\t\t{\n\t\t\t\tnew Line( $\u0022\u54DE \u00D7{CartMoos}\u3002\u5B83\u66F4\u5927\u4E86\u3002\u0022, $\u0022MOO \u00D7{CartMoos}. It more big.\u0022 )\n\t\t\t} );\n\t\t\treturn;\n\t\t}\n\n\t\tif ( MooedCart )\n\t\t\treturn;\n\n\t\tMooedCart = true;\n\t\tCourage \u002B= 14;\n\t\tTalk( \u0022\u4E91\u738E / Yun Ding\u0022, Lines.Cart );\n\t}\n\n\tstatic void EnterFarewell()\n\t{\n\t\tAdvance( Beat.Farewell );\n\t\tTeleport?.Invoke();\n\t\tMoodChanged?.Invoke();\n\t\tFilmCut.Play( CutId.Ng );\n\t}\n\n\tpublic static void WakeUp()\n\t{\n\t\tif ( Beat != Beat.Farewell )\n\t\t\treturn;\n\n\t\tAdvance( Beat.Wake );\n\t\tCourage \u002B= 6;\n\t\tTalk( \u0022\u65C1\u767D / Narrator\u0022, Lines.Wake );\n\t\tTeleport?.Invoke();\n\t\tMoodChanged?.Invoke();\n\t}\n\n\tpublic static void MeetDad()\n\t{\n\t\tif ( FoundDad )\n\t\t\treturn;\n\n\t\tFoundDad = true;\n\t\tCourage \u002B= 10;\n\t\tTalk( \u0022\u725B\u7238\u7238 / Cow Father\u0022, Lines.Dad );\n\t\tAdvance( Beat.Reunion );\n\t\tSongWalk = true;\n\t\tGameAudio.PlaySong();\n\t}\n\n\tpublic static void Advance( Beat next )\n\t{\n\t\tif ( next \u003E Beat )\n\t\t\tBeat = next;\n\t}\n}\n"},{"Ident":"dogecoin.niulai","Path":"Critters.cs","FileName":"Critters.cs","PackageType":"game","CodeKind":"Game","AssetVersionId":443544,"IsPrivate":false,"Code":"namespace NiuLai;\n\npublic sealed class LarkDrift : Component\n{\n\tfloat _t;\n\n\tprotected override void OnUpdate()\n\t{\n\t\tif ( GameFlow.BlocksWorld )\n\t\t\treturn;\n\n\t\t_t \u002B= Time.Delta;\n\t\tvar player = CalfPlayer.Instance;\n\t\tif ( !player.IsValid() )\n\t\t\treturn;\n\n\t\tvar radius = GameState.InVoid ? 40f : GameState.Beat == Beat.Wake ? 70f : 95f;\n\t\tvar height = GameState.InVoid ? 48f : 90f;\n\t\tWorldPosition = player.WorldPosition \u002B new Vector3( MathF.Cos( _t * 0.7f ) * radius, MathF.Sin( _t * 0.7f ) * radius, height \u002B MathF.Sin( _t * 2.2f ) * 10f );\n\t\tWorldRotation = Rotation.FromYaw( _t * 50f ) * Rotation.FromRoll( MathF.Sin( _t * 6f ) * 18f );\n\t}\n}\n\npublic sealed class SnakeSlink : Component\n{\n\tVector3 _origin;\n\tfloat _t;\n\n\tprotected override void OnStart() =\u003E _origin = WorldPosition;\n\n\tprotected override void OnUpdate()\n\t{\n\t\tif ( GameFlow.BlocksWorld )\n\t\t\treturn;\n\n\t\t_t \u002B= Time.Delta;\n\t\tWorldPosition = _origin \u002B new Vector3( MathF.Sin( _t ) * 48f, MathF.Cos( _t * 0.4f ) * 18f, 6f \u002B MathF.Abs( MathF.Sin( _t * 8f ) ) * 3f );\n\t\tWorldRotation = Rotation.FromYaw( _t * 40f );\n\t\tvar n = 0;\n\t\tforeach ( var child in GameObject.Children )\n\t\t{\n\t\t\tif ( !child.IsValid() )\n\t\t\t\tcontinue;\n\t\t\tchild.LocalRotation = Rotation.FromYaw( MathF.Sin( _t * 6f \u002B n * 0.7f ) * 8f );\n\t\t\tn\u002B\u002B;\n\t\t}\n\n\t\tvar player = CalfPlayer.Instance;\n\t\tif ( player.IsValid() \u0026\u0026 GameState.Beat == Beat.Snake \u0026\u0026 !GameState.Bitten )\n\t\t{\n\t\t\tif ( (player.WorldPosition - WorldPosition).Length \u003C 55f )\n\t\t\t\tGameState.GetBitten();\n\t\t}\n\t}\n}\n\npublic sealed class BaoLaFollow : Component\n{\n\tpublic static GameObject Body { get; private set; }\n\tfloat _gym;\n\n\tprotected override void OnStart() =\u003E Body = GameObject;\n\n\tprotected override void OnDestroy()\n\t{\n\t\tif ( Body == GameObject )\n\t\t\tBody = null;\n\t}\n\n\tprotected override void OnUpdate()\n\t{\n\t\tif ( GameFlow.BlocksWorld \u0026\u0026 !FilmCut.Playing )\n\t\t\treturn;\n\n\t\tif ( GameState.WolvesHunt )\n\t\t{\n\t\t\t_gym \u002B= Time.Delta;\n\t\t\tWorldRotation = Rotation.FromYaw( _gym * 420f ) * Rotation.FromPitch( 35f );\n\t\t\tWorldPosition \u002B= Vector3.Up * MathF.Sin( _gym * 8f ) * 2f;\n\t\t}\n\n\t\tif ( GameFlow.BlocksWorld || !GameState.BaoLaFollows )\n\t\t\treturn;\n\n\t\tvar player = CalfPlayer.Instance;\n\t\tif ( !player.IsValid() )\n\t\t\treturn;\n\n\t\tvar dest = player.WorldPosition - player.WorldRotation.Forward * 70f;\n\t\tdest.z = WorldPosition.z;\n\t\tvar delta = dest - WorldPosition;\n\t\tif ( delta.Length \u003E 20f )\n\t\t{\n\t\t\tWorldPosition \u002B= delta.Normal * 160f * Time.Delta;\n\t\t\tWorldRotation = Rotation.LookAt( delta.WithZ( 0 ), Vector3.Up );\n\t\t}\n\t}\n}\n\npublic sealed class WolfHunt : Component\n{\n\t[Property] public Vector3 Home { get; set; }\n\tfloat _cooldown;\n\tbool _howled;\n\n\tprotected override void OnUpdate()\n\t{\n\t\tif ( GameFlow.BlocksWorld )\n\t\t\treturn;\n\n\t\t_cooldown -= Time.Delta;\n\t\tvar player = CalfPlayer.Instance;\n\t\tif ( !player.IsValid() )\n\t\t\treturn;\n\n\t\tvar hunt = GameState.WolvesHunt;\n\t\tif ( hunt \u0026\u0026 !_howled )\n\t\t{\n\t\t\t_howled = true;\n\t\t\tGameAudio.PlayWolvesAt( WorldPosition );\n\t\t}\n\n\t\tVector3 target;\n\t\tif ( hunt \u0026\u0026 GameState.BaoLaFollows \u0026\u0026 BaoLaFollow.Body.IsValid() )\n\t\t{\n\t\t\ttarget = BaoLaFollow.Body.WorldPosition;\n\t\t}\n\t\telse if ( hunt )\n\t\t{\n\t\t\ttarget = player.WorldPosition;\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttarget = Home;\n\t\t\tvar rock = new Vector3( 1140, 40, WorldPosition.z );\n\t\t\tWorldRotation = Rotation.LookAt( (rock - WorldPosition).WithZ( 0 ), Vector3.Up );\n\t\t}\n\n\t\tvar delta = (target.WithZ( WorldPosition.z ) - WorldPosition);\n\t\tif ( delta.Length \u003E 10f )\n\t\t{\n\t\t\tWorldPosition \u002B= delta.Normal * (hunt ? 200f : 70f) * Time.Delta;\n\t\t\tWorldRotation = Rotation.LookAt( delta.WithZ( 0 ), Vector3.Up );\n\t\t}\n\n\t\tif ( hunt \u0026\u0026 delta.Length \u003C 55f \u0026\u0026 _cooldown \u003C= 0f )\n\t\t{\n\t\t\t_cooldown = 3.2f;\n\t\t\tif ( GameState.Beat == Beat.Wolves )\n\t\t\t\tGameState.FirstWolfWave();\n\t\t}\n\t}\n}\n\npublic sealed class CartGrow : Component\n{\n\tVector3 _start;\n\tfloat _z;\n\n\tprotected override void OnStart()\n\t{\n\t\t_start = LocalScale;\n\t\t_z = WorldPosition.z;\n\t}\n\n\tprotected override void OnUpdate()\n\t{\n\t\tif ( GameState.Beat != Beat.Cart )\n\t\t\treturn;\n\n\t\tvar t = Math.Clamp( GameState.CartMoos / 3f \u002B (GameState.PlayTime % 20f) / 40f, 0f, 1.4f );\n\t\tLocalScale = _start * (1f \u002B t * 4.2f );\n\t\tvar p = WorldPosition;\n\t\tp.z = _z \u002B t * 36f;\n\t\tWorldPosition = p;\n\t}\n}\n\npublic sealed class MomActor : Component\n{\n\tfloat _sink;\n\n\tprotected override void OnUpdate()\n\t{\n\t\tif ( !GameState.MomGone )\n\t\t\treturn;\n\n\t\t_sink \u002B= Time.Delta;\n\t\tWorldPosition \u002B= Vector3.Down * 28f * Time.Delta;\n\t\tif ( _sink \u003E 3.5f )\n\t\t\tGameObject.Enabled = false;\n\t}\n}\n\npublic sealed class HerdMarch : Component\n{\n\t[Property] public float Speed { get; set; } = 55f;\n\n\tprotected override void OnUpdate()\n\t{\n\t\tif ( GameFlow.BlocksWorld )\n\t\t\treturn;\n\n\t\tif ( GameState.Beat == Beat.Migrate \u0026\u0026 !GameState.Talking )\n\t\t{\n\t\t\tWorldPosition \u002B= Vector3.Forward * (Speed * 0.15f) * Time.Delta;\n\t\t\treturn;\n\t\t}\n\n\t\tif ( !GameState.SongWalk )\n\t\t\treturn;\n\n\t\tWorldPosition \u002B= Vector3.Forward * Speed * Time.Delta;\n\t\tWorldRotation = Rotation.LookAt( Vector3.Forward, Vector3.Up );\n\t}\n}\n\npublic sealed class GrassTuft : Component\n{\n\t[Property] public float HideFor { get; set; } = 10f;\n\tVector3 _home;\n\tfloat _cd = -1f;\n\tbool _out;\n\n\tprotected override void OnStart() =\u003E _home = WorldPosition;\n\n\tprotected override void OnUpdate()\n\t{\n\t\tif ( !_out )\n\t\t\treturn;\n\t\t_cd -= Time.Delta;\n\t\tif ( _cd \u003E 0f )\n\t\t\treturn;\n\t\t_out = false;\n\t\tWorldPosition = _home;\n\t\tvar hs = Components.Get\u003CHotspot\u003E();\n\t\tif ( hs.IsValid() )\n\t\t\ths.Enabled = true;\n\t\tif ( !GameState.Talking \u0026\u0026 !FilmCut.Playing \u0026\u0026 Random.Shared.Float() \u003C 0.55f )\n\t\t\tChatter.Say( \u0022\u8349 / Grass\u0022, Chatter.Pick( Lines.GrassBack ), 2.2f );\n\t}\n\n\tpublic void Eat()\n\t{\n\t\tif ( _out )\n\t\t\treturn;\n\t\tGameState.EatGrass();\n\t\tGameAudio.PlayClip( GameAudio.SlowDown, 0.75f );\n\t\t_out = true;\n\t\t_cd = HideFor \u002B Random.Shared.Float() * 5f;\n\t\tWorldPosition = _home \u002B Vector3.Down * 80f;\n\t\tvar hs = Components.Get\u003CHotspot\u003E();\n\t\tif ( hs.IsValid() )\n\t\t\ths.Enabled = false;\n\t}\n}\n\npublic sealed class HerdGossip : Component\n{\n\tfloat _cool;\n\n\tprotected override void OnUpdate()\n\t{\n\t\tif ( GameFlow.BlocksWorld || GameState.Talking )\n\t\t\treturn;\n\t\t_cool -= Time.Delta;\n\t\tvar p = CalfPlayer.Instance;\n\t\tif ( !p.IsValid() || _cool \u003E 0f )\n\t\t\treturn;\n\t\tif ( (p.WorldPosition - WorldPosition).Length \u003E 70f )\n\t\t\treturn;\n\t\t_cool = 7f \u002B Random.Shared.Float() * 6f;\n\t\tChatter.Say( \u0022\u725B\u7FA4 / Herd\u0022, Chatter.Pick( Lines.Gossip ), 2.6f );\n\t}\n}\n\npublic sealed class FlyBeacon : Component\n{\n\tfloat _t;\n\n\tprotected override void OnUpdate()\n\t{\n\t\t_t \u002B= Time.Delta;\n\t\tvar on = GameState.Beat \u003E= Beat.Wake;\n\t\tvar s = on ? 0.22f \u002B MathF.Abs( MathF.Sin( _t * 3f ) ) * 0.12f : 0.06f;\n\t\tLocalScale = new Vector3( s, s, s );\n\t}\n}\n\npublic sealed class VoidDrift : Component\n{\n\t[Property] public int Index { get; set; }\n\tVector3 _home;\n\tfloat _t;\n\n\tprotected override void OnStart() =\u003E _home = WorldPosition;\n\n\tprotected override void OnUpdate()\n\t{\n\t\tif ( !GameState.InVoid )\n\t\t\treturn;\n\t\t_t \u002B= Time.Delta;\n\t\tWorldPosition = _home \u002B new Vector3( MathF.Sin( _t \u002B Index ) * 12f, MathF.Cos( _t * 0.6f ) * 10f, MathF.Sin( _t * 1.4f ) * 8f );\n\t\tif ( Random.Shared.Float() \u003C 0.004f )\n\t\t\tChatter.Say( \u0022\u9ED1 / Black\u0022, Chatter.Pick( Lines.VoidBits ), 2.1f );\n\t}\n}\n\npublic sealed class BobIdle : Component\n{\n\t[Property] public float Height { get; set; } = 4f;\n\t[Property] public float Rate { get; set; } = 1.4f;\n\tVector3 _origin;\n\tfloat _t;\n\n\tprotected override void OnStart() =\u003E _origin = WorldPosition;\n\n\tprotected override void OnUpdate()\n\t{\n\t\t_t \u002B= Time.Delta * Rate;\n\t\tWorldPosition = _origin.WithZ( _origin.z \u002B MathF.Sin( _t ) * Height );\n\t}\n}\n"},{"Ident":"dogecoin.niulai","Path":"GameAudio.cs","FileName":"GameAudio.cs","PackageType":"game","CodeKind":"Game","AssetVersionId":443544,"IsPrivate":false,"Code":"namespace NiuLai;\n\n/// \u003Csummary\u003E\n/// Movie-sampled audio. Paths are Assets/sounds/\u2026 compiled by sbox-dev.\n/// \u003C/summary\u003E\npublic static class GameAudio\n{\n\tpublic const string Song = \u0022sounds/music/yu_hou_qing_feng\u0022;\n\tpublic const string OpenSting = \u0022sounds/sfx/open_sting\u0022;\n\tpublic const string LarkNg = \u0022sounds/sfx/lark_ng\u0022;\n\tpublic const string LarkRide = \u0022sounds/sfx/lark_ride\u0022;\n\tpublic const string LikeHere = \u0022sounds/sfx/like_here\u0022;\n\tpublic const string MamaWake = \u0022sounds/sfx/mama_wake\u0022;\n\tpublic const string MamaOk = \u0022sounds/sfx/mama_ok\u0022;\n\tpublic const string SlowDown = \u0022sounds/sfx/slow_down\u0022;\n\tpublic const string Wolves = \u0022sounds/sfx/wolves\u0022;\n\tpublic const string WolfStare = \u0022sounds/sfx/wolf_stare\u0022;\n\tpublic const string Leopard = \u0022sounds/sfx/leopard\u0022;\n\tpublic const string CanRest = \u0022sounds/sfx/can_rest\u0022;\n\tpublic const string Moo = \u0022sounds/sfx/moo\u0022;\n\tpublic const string Cart = \u0022sounds/sfx/cart\u0022;\n\tpublic const string CartGrow = \u0022sounds/sfx/cart_grow\u0022;\n\tpublic const string Rain = \u0022sounds/sfx/rain\u0022;\n\tpublic const string Snake = \u0022sounds/sfx/snake\u0022;\n\tpublic const string Stand = \u0022sounds/sfx/stand\u0022;\n\tpublic const string Milk = \u0022sounds/sfx/milk\u0022;\n\tpublic const string NameNiu = \u0022sounds/sfx/name_niu\u0022;\n\tpublic const string CrowdWake = \u0022sounds/sfx/crowd_wake\u0022;\n\tpublic const string CrowdRide = \u0022sounds/sfx/crowd_ride\u0022;\n\tpublic const string CrowdMilk = \u0022sounds/sfx/crowd_milk\u0022;\n\tpublic const string CrowdBig = \u0022sounds/sfx/crowd_big\u0022;\n\tpublic const string CrowdCart = \u0022sounds/sfx/crowd_cart\u0022;\n\tpublic const string CrowdNg = \u0022sounds/sfx/crowd_ng\u0022;\n\n\tstatic SoundHandle _music;\n\tstatic SoundHandle _oneshot;\n\tstatic string _musicPath;\n\n\tpublic static bool SongPlaying =\u003E _music.IsValid() \u0026\u0026 _musicPath == Song;\n\n\tpublic static void PlaySong()\n\t{\n\t\tStartMusic( Song, 0.72f );\n\t}\n\n\tpublic static void PlayTitleSting()\n\t{\n\t\tPlayOne( OpenSting, 0.9f );\n\t}\n\n\tpublic static void StopMusic()\n\t{\n\t\tif ( _music.IsValid() )\n\t\t\t_music.Stop();\n\t\t_music = default;\n\t\t_musicPath = null;\n\t}\n\n\tpublic static void PlayClip( string path, float volume = 0.95f )\n\t{\n\t\tPlayOne( path, volume );\n\t}\n\n\tpublic static void PlayCrowd( string path )\n\t{\n\t\t// Second layer: the room laughing, still muddy on purpose.\n\t\tPlayLocal( path, 0.7f );\n\t}\n\n\tpublic static void PlayForHotspot( string id )\n\t{\n\t\tswitch ( id )\n\t\t{\n\t\t\tcase \u0022lark\u0022:\n\t\t\t\tPlayOne( GameState.HeardLikeHere ? LarkRide : LikeHere, 0.95f );\n\t\t\t\tbreak;\n\t\t\tcase \u0022mom\u0022:\n\t\t\t\tif ( GameState.MomGone )\n\t\t\t\t\tPlayOne( CanRest, 0.95f );\n\t\t\t\telse if ( GameState.Beat == Beat.Night \u0026\u0026 !GameState.HasMilk )\n\t\t\t\t\tPlayOne( MamaOk, 0.95f );\n\t\t\t\telse\n\t\t\t\t\tPlayOne( MamaWake, 0.95f );\n\t\t\t\tbreak;\n\t\t\tcase \u0022leopard\u0022:\n\t\t\t\tPlayOne( GameState.GaveMilk ? Leopard : Milk, 0.95f );\n\t\t\t\tbreak;\n\t\t\tcase \u0022grass\u0022:\n\t\t\t\tPlayOne( SlowDown, 0.9f );\n\t\t\t\tbreak;\n\t\t\tcase \u0022cart\u0022:\n\t\t\t\tPlayOne( CartGrow, 0.95f );\n\t\t\t\tbreak;\n\t\t\tcase \u0022snake\u0022:\n\t\t\t\tPlayOne( Snake, 0.95f );\n\t\t\t\tbreak;\n\t\t\tcase \u0022rock\u0022:\n\t\t\t\tPlayOne( WolfStare, 0.95f );\n\t\t\t\tbreak;\n\t\t\tcase \u0022dad\u0022:\n\t\t\t\tPlaySong();\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\tpublic static void PlayWolvesAt( Vector3 pos )\n\t{\n\t\ttry\n\t\t{\n\t\t\tvar h = Sound.Play( Wolves, pos );\n\t\t\tif ( h.IsValid() )\n\t\t\t\th.Volume = 0.9f;\n\t\t}\n\t\tcatch\n\t\t{\n\t\t\tPlayOne( Wolves, 0.85f );\n\t\t}\n\t}\n\n\tstatic void StartMusic( string path, float volume )\n\t{\n\t\tif ( _music.IsValid() \u0026\u0026 _musicPath == path )\n\t\t\treturn;\n\n\t\tStopMusic();\n\t\t_music = PlayLocal( path, volume );\n\t\t_musicPath = _music.IsValid() ? path : null;\n\t\tif ( !_music.IsValid() )\n\t\t\tLog.Warning( $\u0022[Niu Lai] music missing: {path} \u2014 play once in sbox-dev to compile .vsnd\u0022 );\n\t}\n\n\tstatic void PlayOne( string path, float volume )\n\t{\n\t\tif ( _oneshot.IsValid() )\n\t\t\t_oneshot.Stop();\n\t\t_oneshot = PlayLocal( path, volume );\n\t}\n\n\tstatic SoundHandle PlayLocal( string path, float volume )\n\t{\n\t\tif ( string.IsNullOrWhiteSpace( path ) )\n\t\t\treturn default;\n\n\t\tvar clean = path.Trim().Replace( \u0027\\\\\u0027, \u0027/\u0027 );\n\t\tif ( clean.EndsWith( \u0022.sound\u0022, StringComparison.OrdinalIgnoreCase ) )\n\t\t\tclean = clean[..^6];\n\n\t\tvar candidates = new[]\n\t\t{\n\t\t\tclean \u002B \u0022.sound\u0022,\n\t\t\tclean,\n\t\t\t\u0022sounds/\u0022 \u002B clean.TrimStart( \u0027/\u0027 ).Replace( \u0022sounds/\u0022, \u0022\u0022 ) \u002B \u0022.sound\u0022,\n\t\t};\n\n\t\tforeach ( var candidate in candidates )\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif ( ResourceLibrary.Get\u003CSoundEvent\u003E( candidate ) is SoundEvent evt )\n\t\t\t\t{\n\t\t\t\t\tvar fromEvt = Sound.Play( evt, Vector3.Zero );\n\t\t\t\t\tif ( fromEvt.IsValid() )\n\t\t\t\t\t{\n\t\t\t\t\t\tfromEvt.ListenLocal = true;\n\t\t\t\t\t\tfromEvt.SpacialBlend = 0f;\n\t\t\t\t\t\tfromEvt.Volume = volume;\n\t\t\t\t\t\tfromEvt.Pitch = 0.90f \u002B Random.Shared.Float() * 0.16f;\n\t\t\t\t\t\treturn fromEvt;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch { }\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvar h = Sound.Play( candidate, Vector3.Zero );\n\t\t\t\tif ( !h.IsValid() )\n\t\t\t\t\tcontinue;\n\t\t\t\th.ListenLocal = true;\n\t\t\t\th.SpacialBlend = 0f;\n\t\t\t\th.Volume = volume;\n\t\t\t\th.Pitch = 0.90f \u002B Random.Shared.Float() * 0.16f;\n\t\t\t\treturn h;\n\t\t\t}\n\t\t\tcatch { }\n\t\t}\n\n\t\treturn default;\n\t}\n}\n"},{"Ident":"dogecoin.niulai","Path":"WorldMood.cs","FileName":"WorldMood.cs","PackageType":"game","CodeKind":"Game","AssetVersionId":443544,"IsPrivate":false,"Code":"namespace NiuLai;\n\n/// \u003Csummary\u003EDay, night, and the film\u0027s pure-black dream. Janky on purpose.\u003C/summary\u003E\npublic sealed class WorldMood : Component\n{\n\tpublic static WorldMood Instance { get; private set; }\n\n\tDirectionalLight _sun;\n\tSkyBox2D _sky;\n\tColor _daySun = new( 1f, 0.92f, 0.72f );\n\tColor _daySky = new( 0.42f, 0.55f, 0.62f );\n\tColor _nightSun = new( 0.25f, 0.18f, 0.35f );\n\tColor _nightSky = new( 0.08f, 0.07f, 0.14f );\n\n\tprotected override void OnAwake()\n\t{\n\t\tInstance = this;\n\t\tGameState.MoodChanged \u002B= Apply;\n\t\tGameState.Teleport \u002B= DoTeleport;\n\t}\n\n\tprotected override void OnDestroy()\n\t{\n\t\tif ( Instance == this )\n\t\t\tInstance = null;\n\t\tGameState.MoodChanged -= Apply;\n\t\tGameState.Teleport -= DoTeleport;\n\t}\n\n\tprotected override void OnStart()\n\t{\n\t\t_sun = Scene.GetAllComponents\u003CDirectionalLight\u003E().FirstOrDefault();\n\t\t_sky = Scene.GetAllComponents\u003CSkyBox2D\u003E().FirstOrDefault();\n\t\tApply();\n\t}\n\n\tpublic void Apply()\n\t{\n\t\tif ( !_sun.IsValid() )\n\t\t\t_sun = Scene.GetAllComponents\u003CDirectionalLight\u003E().FirstOrDefault();\n\t\tif ( !_sky.IsValid() )\n\t\t\t_sky = Scene.GetAllComponents\u003CSkyBox2D\u003E().FirstOrDefault();\n\n\t\tif ( GameState.InVoid )\n\t\t{\n\t\t\tif ( _sun.IsValid() )\n\t\t\t{\n\t\t\t\t_sun.LightColor = Color.Black;\n\t\t\t\t_sun.SkyColor = Color.Black;\n\t\t\t}\n\n\t\t\tif ( Scene.Camera.IsValid() )\n\t\t\t\tScene.Camera.BackgroundColor = Color.Black;\n\t\t\treturn;\n\t\t}\n\n\t\tif ( GameState.IsNight )\n\t\t{\n\t\t\tif ( _sun.IsValid() )\n\t\t\t{\n\t\t\t\t_sun.LightColor = _nightSun;\n\t\t\t\t_sun.SkyColor = _nightSky;\n\t\t\t}\n\n\t\t\tif ( Scene.Camera.IsValid() )\n\t\t\t\tScene.Camera.BackgroundColor = new Color( 0.08f, 0.07f, 0.12f );\n\t\t\treturn;\n\t\t}\n\n\t\tif ( GameState.SongWalk )\n\t\t{\n\t\t\tif ( _sun.IsValid() )\n\t\t\t{\n\t\t\t\t_sun.LightColor = new Color( 1f, 0.86f, 0.62f );\n\t\t\t\t_sun.SkyColor = new Color( 0.55f, 0.48f, 0.42f );\n\t\t\t}\n\n\t\t\tif ( Scene.Camera.IsValid() )\n\t\t\t\tScene.Camera.BackgroundColor = new Color( 0.72f, 0.62f, 0.48f );\n\t\t\treturn;\n\t\t}\n\n\t\tif ( _sun.IsValid() )\n\t\t{\n\t\t\t_sun.LightColor = _daySun;\n\t\t\t_sun.SkyColor = _daySky;\n\t\t}\n\n\t\tif ( Scene.Camera.IsValid() )\n\t\t\tScene.Camera.BackgroundColor = new Color( 0.45f, 0.62f, 0.72f );\n\t}\n\n\tstatic void DoTeleport()\n\t{\n\t\tvar p = CalfPlayer.Instance;\n\t\tif ( !p.IsValid() )\n\t\t\treturn;\n\n\t\tp.WorldPosition = GameState.Beat switch\n\t\t{\n\t\t\tBeat.Dream or Beat.Farewell =\u003E GameState.DreamPos,\n\t\t\tBeat.Snake =\u003E GameState.SnakePos,\n\t\t\tBeat.Wake =\u003E GameState.WakePos,\n\t\t\t_ =\u003E GameState.CampPos\n\t\t};\n\t}\n}\n"},{"Ident":"dogecoin.niulai","Path":"Hotspot.cs","FileName":"Hotspot.cs","PackageType":"game","CodeKind":"Game","AssetVersionId":443544,"IsPrivate":false,"Code":"namespace NiuLai;\n\npublic sealed class Hotspot : Component\n{\n\t[Property] public string Id { get; set; }\n\t[Property] public string LabelCn { get; set; }\n\t[Property] public string LabelEn { get; set; }\n\t[Property] public float Radius { get; set; } = 80f;\n\n\tpublic bool InRange( Vector3 pos ) =\u003E\n\t\t(WorldPosition.WithZ( 0 ) - pos.WithZ( 0 )).Length \u003C Radius;\n\n\tpublic void Use()\n\t{\n\t\tGameAudio.PlayForHotspot( Id );\n\t\tTrophies.OnUsed( Id );\n\t\tswitch ( Id )\n\t\t{\n\t\t\tcase \u0022mom\u0022:\n\t\t\t\tif ( GameState.Beat == Beat.Canyon \u0026\u0026 !GameState.MomGone )\n\t\t\t\t\tGameState.HearMom();\n\t\t\t\telse if ( GameState.Beat == Beat.Night \u0026\u0026 !GameState.HasMilk \u0026\u0026 !GameState.GaveMilk )\n\t\t\t\t\tGameState.GiveMilk();\n\t\t\t\telse if ( !GameState.MomGone )\n\t\t\t\t\tChatter.Say( \u0022\u725B\u5988\u5988 / Mama\u0022, Chatter.Pick( Lines.MomIntro ), 3.0f );\n\t\t\t\telse\n\t\t\t\t\tChatter.Say( \u0022\u725B\u5988\u5988 / Mama\u0022, new Line( \u0022\u98CE\u8FD8\u5728\u3002\u0022, \u0022Wind still here.\u0022 ) );\n\t\t\t\tbreak;\n\n\t\t\tcase \u0022lark\u0022:\n\t\t\t\tif ( GameState.Beat == Beat.Migrate \u0026\u0026 !GameState.HeardLikeHere )\n\t\t\t\t\tGameState.HearLikeHere();\n\t\t\t\telse if ( GameState.Beat == Beat.Migrate )\n\t\t\t\t\tFilmCut.Play( CutId.LarkBack );\n\t\t\t\telse if ( GameState.Beat == Beat.Farewell )\n\t\t\t\t\tFilmCut.Play( CutId.Ng );\n\t\t\t\telse if ( GameState.Beat == Beat.Wake )\n\t\t\t\t\tGameState.Talk( \u0022\u4E91\u738E / Yun Ding\u0022, new[] { new Line( \u0022\u8DDF\u7740\u6211\u98DE\u7684\u7EBF\u3002\u0022, \u0022Follow my fly line.\u0022 ) } );\n\t\t\t\telse\n\t\t\t\t\tGameState.Talk( \u0022\u4E91\u738E / Yun Ding\u0022, Lines.Dream );\n\t\t\t\tbreak;\n\n\t\t\tcase \u0022snake\u0022:\n\t\t\t\tGameState.GetBitten();\n\t\t\t\tbreak;\n\n\t\t\tcase \u0022creek\u0022:\n\t\t\t\tGameState.JumpCreek();\n\t\t\t\tbreak;\n\n\t\t\tcase \u0022leopard\u0022:\n\t\t\t\tif ( GameState.FedLeopard \u0026\u0026 GameState.Beat == Beat.Ban )\n\t\t\t\t\tGameState.BanBaoLa();\n\t\t\t\telse if ( GameState.FedLeopard \u0026\u0026 GameState.ShareAgain() )\n\t\t\t\t\tbreak;\n\t\t\t\telse if ( GameState.FedLeopard )\n\t\t\t\t\tGameState.Talk( \u0022\u8C79\u62C9 / Bao La\u0022, new[] { new Line( \u0022\u6211\u8FD8\u5728\u3002\u4ED6\u4EEC\u4E0D\u4FE1\u6211\u3002\u6025\u4EC0\u4E48\u3002\u0022, \u0022I still here. They not believe me. Rush what.\u0022 ) } );\n\t\t\t\telse if ( !GameState.TryLeopardMeet() )\n\t\t\t\t\tGameState.Talk( \u0022\u8C79\u62C9 / Bao La\u0022, new[] { new Line( \u0022\u5148\u53BB\u5403\u8349\u3002\u518D\u5206\u7ED9\u6211\u3002\u0022, \u0022First go eat grass. Then share to me.\u0022 ) } );\n\t\t\t\tbreak;\n\n\t\t\tcase \u0022rock\u0022:\n\t\t\t\tGameState.Talk( \u0022\u4E09\u53EA\u72FC / Three wolves\u0022, Lines.RockStare );\n\t\t\t\tif ( GameState.Beat == Beat.Wolves )\n\t\t\t\t\tGameState.FirstWolfWave();\n\t\t\t\tbreak;\n\n\t\t\tcase \u0022niuer\u0022:\n\t\t\t\tif ( GameState.Beat == Beat.Suspect )\n\t\t\t\t\tGameState.HearSuspect();\n\t\t\t\telse if ( GameState.Beat == Beat.Ban )\n\t\t\t\t\tGameState.BanBaoLa();\n\t\t\t\telse\n\t\t\t\t\tChatter.Say( \u0022\u725B\u4E8C / Niu Er\u0022, Chatter.Pick( Lines.Suspect ), 3.0f );\n\t\t\t\tbreak;\n\n\t\t\tcase \u0022dad\u0022:\n\t\t\t\tif ( GameState.Beat is Beat.Wake or Beat.Reunion )\n\t\t\t\t\tGameState.MeetDad();\n\t\t\t\telse\n\t\t\t\t\tGameState.Talk( \u0022\u725B\u7238\u7238 / Cow Father\u0022, new[] { new Line( \u0022\u5148\u8D70\u5B8C\u4F60\u7684\u8DEF\u3002\u0022, \u0022First finish your road.\u0022 ) } );\n\t\t\t\tbreak;\n\n\t\t\tcase \u0022cart\u0022:\n\t\t\t\tif ( GameState.Beat == Beat.Cart )\n\t\t\t\t\tGameState.MooCart();\n\t\t\t\telse\n\t\t\t\t\tChatter.Say( \u0022\u53F0\u8F66 / The Cart\u0022, new Line( \u0022\u5B83\u8FD8\u4F1A\u66F4\u5927\u3002\u73B0\u5728\u53EA\u662F\u9884\u4E60\u3002\u0022, \u0022It will more big. Now only rehearsal.\u0022 ) );\n\t\t\t\tbreak;\n\n\t\t\tcase \u0022grass\u0022:\n\t\t\t\tvar tuft = GameObject.Components.Get\u003CGrassTuft\u003E();\n\t\t\t\tif ( tuft.IsValid() )\n\t\t\t\t\ttuft.Eat();\n\t\t\t\telse\n\t\t\t\t\tGameState.EatGrass();\n\t\t\t\tbreak;\n\n\t\t\tcase \u0022orb\u0022:\n\t\t\t\tGameState.EatGrass();\n\t\t\t\tGameState.CourageBoost( 1 );\n\t\t\t\tChatter.Say( \u0022\u6811\u7403 / Tree ball\u0022, Chatter.Pick( Lines.Orb ) );\n\t\t\t\tGameObject.Destroy();\n\t\t\t\tbreak;\n\n\t\t\tcase \u0022mask\u0022:\n\t\t\t\tChatter.Say( \u0022\u53E3\u7F69\u725B / Mask cow\u0022, Chatter.Pick( Lines.MaskCow ), 3.2f );\n\t\t\t\tGameAudio.PlayClip( GameAudio.Stand, 0.8f );\n\t\t\t\tbreak;\n\t\t}\n\t}\n}\n"},{"Ident":"dogecoin.niulai","Path":"GameInfo.cs","FileName":"GameInfo.cs","PackageType":"game","CodeKind":"Game","AssetVersionId":443544,"IsPrivate":false,"Code":"namespace NiuLai;\n\n/// \u003Csummary\u003EShip identity \u2014 bump for each public release.\u003C/summary\u003E\npublic static class GameInfo\n{\n\tpublic const string Title = \u0022\u725B\u6765 (Niu Lai)\u0022;\n\tpublic const string TitleAscii = \u0022Niu Lai\u0022;\n\tpublic const string Version = \u00220.1.0\u0022;\n\tpublic const string VersionLabel = \u0022v0.1.0\u0022;\n\tpublic const string Org = \u0022dogecoin\u0022;\n\tpublic const string Ident = \u0022niulai\u0022;\n\tpublic const string Package = \u0022dogecoin.niulai\u0022;\n\tpublic const string Tagline = \u0022\u4E00\u90E8\u4F1A\u8D70\u8DEF\u7684\u7535\u5F71 \u00B7 \u6709\u70B9\u6B6A\u0022;\n\tpublic const string TaglineEn = \u0022The movie, but you walk it. A bit crooked.\u0022;\n\tpublic const string DragonSeal = \u0022\u7535\u5BA1\u6545\u5B57\u30102024\u3011\u7B2C033\u53F7\u0022;\n\tpublic const string Studio = \u0022\u5927\u8FDE\u749F\u56ED\u6587\u5316\u5F71\u89C6\u4F20\u5A92\u0022;\n}\n"},{"Ident":"dogecoin.niulai","Path":"WorldBuilder.cs","FileName":"WorldBuilder.cs","PackageType":"game","CodeKind":"Game","AssetVersionId":443544,"IsPrivate":false,"Code":"namespace NiuLai;\n\npublic static class WorldBuilder\n{\n\tstatic readonly List\u003CGameObject\u003E Spawned = new();\n\tpublic static readonly Dictionary\u003Cstring, GameObject\u003E Stage = new();\n\n\tpublic static void Rebuild()\n\t{\n\t\tClear();\n\t\tvar mood = new GameObject( true, \u0022mood\u0022 );\n\t\tmood.Components.Create\u003CWorldMood\u003E();\n\t\tTrack( mood );\n\n\t\tBuildGround();\n\t\tBuildTrees();\n\t\tBuildCamp();\n\t\tBuildSnakeAndCreek();\n\t\tBuildNightAndCanyon();\n\t\tBuildCartAndDad();\n\t\tBuildDreamVoid();\n\t\tBuildPlayer();\n\t\tLog.Info( $\u0022[Niu Lai] {GameInfo.Package} film grassland ready\u0022 );\n\t}\n\n\tpublic static void Clear()\n\t{\n\t\tforeach ( var go in Spawned )\n\t\t{\n\t\t\tif ( go.IsValid() )\n\t\t\t\tgo.Destroy();\n\t\t}\n\n\t\tSpawned.Clear();\n\t\tStage.Clear();\n\t\tCalfPlayer.Instance = null;\n\t}\n\n\tstatic void Track( GameObject go )\n\t{\n\t\tif ( !go.IsValid() )\n\t\t\treturn;\n\t\tSpawned.Add( go );\n\t\tif ( !string.IsNullOrEmpty( go.Name ) )\n\t\t\tStage[go.Name] = go;\n\t}\n\n\tstatic void BuildGround()\n\t{\n\t\tTrack( Primitives.PlaneAt( \u0022grassland\u0022, Vector3.Zero, new Vector3( 48, 48, 1 ), new Color( 0.42f, 0.52f, 0.22f ) ) );\n\t\t// Movie grass never quite meets.\n\t\tTrack( Primitives.PlaneAt( \u0022patch-float\u0022, new Vector3( 180, -90, 5 ), new Vector3( 4, 3, 1 ), new Color( 0.48f, 0.56f, 0.18f ), false ) );\n\t\tTrack( Primitives.PlaneAt( \u0022patch-pink\u0022, new Vector3( -200, 140, 2 ), new Vector3( 5, 4, 1 ), new Color( 0.55f, 0.42f, 0.38f ), false ) );\n\t\tTrack( Primitives.BoxAt( \u0022hill-a\u0022, new Vector3( 900, 700, 40 ), new Vector3( 18, 10, 3 ), new Color( 0.55f, 0.38f, 0.32f ) ) );\n\t\tTrack( Primitives.BoxAt( \u0022hill-b\u0022, new Vector3( -800, 850, 50 ), new Vector3( 14, 16, 4 ), new Color( 0.50f, 0.36f, 0.30f ) ) );\n\t\tTrack( Primitives.BoxAt( \u0022hill-c\u0022, new Vector3( 200, 1200, 70 ), new Vector3( 22, 8, 5 ), new Color( 0.62f, 0.44f, 0.34f ) ) );\n\t}\n\n\tstatic void BuildTrees()\n\t{\n\t\t// Lollipop trees from the film \u2014 ball on a stick, slightly wrong.\n\t\tvar spots = new[]\n\t\t{\n\t\t\tnew Vector3( -120, 40, 0 ), new Vector3( 90, -80, 0 ), new Vector3( 200, 160, 0 ),\n\t\t\tnew Vector3( 340, 90, 0 ), new Vector3( 60, 220, 0 ), new Vector3( -60, 380, 0 ),\n\t\t\tnew Vector3( 640, 40, 0 ), new Vector3( 780, 200, 0 ), new Vector3( 520, 520, 0 ),\n\t\t};\n\n\t\tforeach ( var p in spots )\n\t\t{\n\t\t\tTrack( Primitives.BoxAt( \u0022trunk\u0022, p \u002B Vector3.Up * 28, new Vector3( 0.12f, 0.12f, 1.1f ), new Color( 0.28f, 0.16f, 0.10f ), collider: false ) );\n\t\t\tvar leaf = new Color( 0.35f \u002B Random.Shared.Float() * 0.1f, 0.42f, 0.18f );\n\t\t\tTrack( Primitives.BoxAt( \u0022crown\u0022, p \u002B Vector3.Up * 70, new Vector3( 1.1f, 1.1f, 1.0f ), leaf, collider: false ) );\n\t\t\t// Film lollipops: orange balls that do not belong on the tree.\n\t\t\tif ( Random.Shared.Float() \u003E 0.45f )\n\t\t\t{\n\t\t\t\tvar orb = Primitives.BoxAt( \u0022orb\u0022, p \u002B new Vector3( 18, 8, 54 ), new Vector3( 0.22f, 0.22f, 0.22f ), new Color( 0.95f, 0.45f, 0.12f ), collider: false );\n\t\t\t\tAddHot( orb, \u0022orb\u0022, \u0022\u6811\u4E0A\u7684\u7403\u0022, \u0022Ball on tree\u0022, 48f );\n\t\t\t\tTrack( orb );\n\t\t\t}\n\t\t}\n\t}\n\n\tstatic void BuildCamp()\n\t{\n\t\tvar spots = new Vector3[]\n\t\t{\n\t\t\tnew( 70, 40, 8 ), new( -40, 90, 6 ), new( 30, -60, 10 ),\n\t\t\tnew( -90, -20, 7 ), new( 120, 110, 5 ), new( -30, 160, 14 ),\n\t\t\tnew( 200, 30, 7 ), new( 260, -40, 6 ), new( 320, 80, 8 ),\n\t\t\tnew( 500, 40, 7 ), new( 560, -30, 6 ), new( 780, 20, 8 ),\n\t\t\tnew( 40, -140, 7 ), new( -20, -180, 6 ), new( 160, 200, 8 ),\n\t\t};\n\t\tforeach ( var p in spots )\n\t\t{\n\t\t\tvar tuft = Primitives.BoxAt( \u0022grass\u0022, p, new Vector3( 0.28f, 0.28f, 0.45f ), new Color( 0.28f, 0.62f, 0.16f ), collider: false );\n\t\t\tAddHot( tuft, \u0022grass\u0022, \u0022\u5403\u8349\u0022, \u0022Eat grass\u0022, 55f );\n\t\t\ttuft.Components.Create\u003CGrassTuft\u003E().HideFor = 8f \u002B Random.Shared.Float() * 6f;\n\t\t\tTrack( tuft );\n\t\t}\n\n\t\tvar mom = BuildCow( \u0022mom\u0022, new Vector3( -180, 70, 0 ), CowMesh.Mom, 1.3f );\n\t\tAddHot( mom, \u0022mom\u0022, \u0022\u725B\u5988\u5988\u0022, \u0022Mama\u0022, 90f );\n\t\tmom.Components.Create\u003CMomActor\u003E();\n\t\tmom.Components.Create\u003CHerdMarch\u003E().Speed = 46f;\n\t\tTrack( mom );\n\n\t\tvar er = BuildCow( \u0022niuer\u0022, new Vector3( 80, 160, 0 ), CowMesh.Peer, 0.9f );\n\t\tAddHot( er, \u0022niuer\u0022, \u0022\u725B\u4E8C\u0022, \u0022Niu Er\u0022, 70f );\n\t\ter.Components.Create\u003CHerdMarch\u003E().Speed = 54f;\n\t\tTrack( er );\n\n\t\t// Extra herd, sliding T-pose extras\n\t\tfor ( var i = 0; i \u003C 4; i\u002B\u002B )\n\t\t{\n\t\t\tvar extra = BuildCow( $\u0022herd-{i}\u0022, new Vector3( -80 \u002B i * 50, 240 \u002B i * 12, 0 ), CowMesh.Herd, 1.05f \u002B i * 0.04f );\n\t\t\textra.Components.Create\u003CHerdMarch\u003E().Speed = 40f \u002B i * 4f;\n\t\t\textra.Components.Create\u003CBobIdle\u003E().Height = 1.2f;\n\t\t\textra.Components.Create\u003CHerdGossip\u003E();\n\t\t\tTrack( extra );\n\t\t}\n\n\t\tvar mask = BuildCow( \u0022mask\u0022, new Vector3( -40, 300, 0 ), CowMesh.Herd, 1.08f );\n\t\tPrimitives.BoxAt( \u0022mask-pad\u0022, new Vector3( 44, 0, 26 ), new Vector3( 0.18f, 0.22f, 0.12f ), new Color( 0.92f, 0.92f, 0.95f ), mask, false );\n\t\tAddHot( mask, \u0022mask\u0022, \u0022\u53E3\u7F69\u725B\u0022, \u0022Mask cow\u0022, 70f );\n\t\tmask.Components.Create\u003CHerdGossip\u003E();\n\t\tTrack( mask );\n\n\t\tvar lark = BuildLark( \u0022lark\u0022, new Vector3( 40, 40, 90 ) );\n\t\tlark.Components.Create\u003CLarkDrift\u003E();\n\t\tAddHot( lark, \u0022lark\u0022, \u0022\u4E91\u738E\u0022, \u0022Yun Ding\u0022, 110f );\n\t\tTrack( lark );\n\t}\n\n\tstatic void BuildSnakeAndCreek()\n\t{\n\t\tvar snake = new GameObject( true, \u0022snake\u0022 );\n\t\tsnake.WorldPosition = new Vector3( 280, -10, 10 );\n\t\tvar green = new Color( 0.18f, 0.48f, 0.16f );\n\t\tvar dark = new Color( 0.10f, 0.28f, 0.10f );\n\t\tfor ( var i = 0; i \u003C 6; i\u002B\u002B )\n\t\t\tAttachBox( snake, $\u0022seg-{i}\u0022, new Vector3( -14 * i, 0, 0 ), new Vector3( 0.32f, 0.14f, 0.14f ), i % 2 == 0 ? green : dark );\n\t\tAttachBox( snake, \u0022head\u0022, new Vector3( 16, 0, 2 ), new Vector3( 0.22f, 0.18f, 0.16f ), new Color( 0.22f, 0.55f, 0.18f ) );\n\t\tsnake.Components.Create\u003CSnakeSlink\u003E();\n\t\tAddHot( snake, \u0022snake\u0022, \u0022\u5C0F\u7EF3\u5934\u0022, \u0022Little Rope-Head\u0022, 75f );\n\t\tTrack( snake );\n\n\t\tTrack( Primitives.BoxAt( \u0022water\u0022, new Vector3( 430, 0, -6 ), new Vector3( 1.6f, 18, 0.25f ), new Color( 0.20f, 0.38f, 0.62f ) ) );\n\t\tTrack( Primitives.BoxAt( \u0022bank-w\u0022, new Vector3( 370, 0, 4 ), new Vector3( 1.1f, 18, 0.2f ), new Color( 0.40f, 0.34f, 0.18f ) ) );\n\t\tTrack( Primitives.BoxAt( \u0022bank-e\u0022, new Vector3( 490, 0, 4 ), new Vector3( 1.1f, 18, 0.2f ), new Color( 0.40f, 0.34f, 0.18f ) ) );\n\t\tvar creek = Marker( \u0022creek\u0022, new Vector3( 430, 30, 16 ), \u0022\u8DF3\u8FC7\u5C0F\u6EAA\u0022, \u0022Jump the creek\u0022, 90f );\n\t\tTrack( creek );\n\t}\n\n\tstatic void BuildNightAndCanyon()\n\t{\n\t\tvar leopard = BuildLeopard( \u0022leopard\u0022, new Vector3( 720, 60, 0 ) );\n\t\tleopard.Components.Create\u003CBaoLaFollow\u003E();\n\t\tAddHot( leopard, \u0022leopard\u0022, \u0022\u8C79\u62C9\u0022, \u0022Bao La\u0022, 85f );\n\t\tTrack( leopard );\n\n\t\t// Canyon walls \u2014 two pink-rock slabs that don\u0027t quite meet\n\t\tTrack( Primitives.BoxAt( \u0022canyon-l\u0022, new Vector3( 620, 480, 80 ), new Vector3( 2.2f, 8, 3.4f ), new Color( 0.62f, 0.38f, 0.32f ) ) );\n\t\tTrack( Primitives.BoxAt( \u0022canyon-r\u0022, new Vector3( 860, 500, 90 ), new Vector3( 2.4f, 9, 3.8f ), new Color( 0.58f, 0.34f, 0.28f ) ) );\n\t\tTrack( Primitives.BoxAt( \u0022canyon-floor\u0022, new Vector3( 740, 500, 2 ), new Vector3( 6, 6, 0.2f ), new Color( 0.40f, 0.32f, 0.20f ) ) );\n\n\t\t// The laugh shot: three wolves sitting looking at a rock that is also looking at them.\n\t\tTrack( Primitives.BoxAt( \u0022stare-rock\u0022, new Vector3( 1140, 40, 18 ), new Vector3( 1.4f, 1.1f, 0.7f ), new Color( 0.55f, 0.48f, 0.38f ) ) );\n\t\tvar rock = Marker( \u0022rock\u0022, new Vector3( 1140, 40, 28 ), \u0022\u770B\u77F3\u5934\u7684\u72FC\u0022, \u0022Wolves looking at rock\u0022, 120f );\n\t\tTrack( rock );\n\t\tTrack( Primitives.PlaneAt( \u0022beige\u0022, new Vector3( 1180, 80, 1 ), new Vector3( 10, 8, 1 ), new Color( 0.72f, 0.62f, 0.42f ), false ) );\n\n\t\tvar wolfA = BuildWolf( \u0022wolf-a\u0022, new Vector3( 1100, 80, 16 ) );\n\t\tvar huntA = wolfA.Components.Create\u003CWolfHunt\u003E();\n\t\thuntA.Home = wolfA.WorldPosition;\n\t\tTrack( wolfA );\n\n\t\tvar wolfB = BuildWolf( \u0022wolf-b\u0022, new Vector3( 1180, -40, 16 ) );\n\t\tvar huntB = wolfB.Components.Create\u003CWolfHunt\u003E();\n\t\thuntB.Home = wolfB.WorldPosition;\n\t\tTrack( wolfB );\n\n\t\tvar wolfC = BuildWolf( \u0022wolf-c\u0022, new Vector3( 1240, 160, 16 ) );\n\t\tvar huntC = wolfC.Components.Create\u003CWolfHunt\u003E();\n\t\thuntC.Home = wolfC.WorldPosition;\n\t\tTrack( wolfC );\n\t}\n\n\tstatic void BuildCartAndDad()\n\t{\n\t\tvar cart = Primitives.BoxAt( \u0022cart\u0022, new Vector3( 820, 320, 28 ), new Vector3( 1.4f, 0.8f, 0.8f ), new Color( 0.45f, 0.22f, 0.12f ) );\n\t\tcart.Components.Create\u003CCartGrow\u003E();\n\t\tAddHot( cart, \u0022cart\u0022, \u0022\u53F0\u8F66\u0022, \u0022The Cart\u0022, 110f );\n\t\tAttachBox( cart, \u0022wheel-a\u0022, new Vector3( -12, -10, -16 ), new Vector3( 0.22f, 0.08f, 0.22f ), new Color( 0.15f, 0.12f, 0.10f ) );\n\t\tAttachBox( cart, \u0022wheel-b\u0022, new Vector3( 12, 10, -16 ), new Vector3( 0.22f, 0.08f, 0.22f ), new Color( 0.15f, 0.12f, 0.10f ) );\n\t\tAttachBox( cart, \u0022wheel-c\u0022, new Vector3( 12, -10, -16 ), new Vector3( 0.18f, 0.08f, 0.18f ), new Color( 0.18f, 0.10f, 0.08f ) );\n\t\tTrack( cart );\n\n\t\t// Wake path: \u4E91\u738E\u0027s crooked fly line north to \u725B\u7238\u7238.\n\t\tfor ( var i = 1; i \u003C= 6; i\u002B\u002B )\n\t\t{\n\t\t\tvar t = i / 6f;\n\t\t\tvar p = Vector3.Lerp( new Vector3( 50, 80, 70 ), new Vector3( 160, 860, 90 ), t );\n\t\t\tp.x \u002B= MathF.Sin( i * 1.7f ) * 28f;\n\t\t\tvar bead = Primitives.BoxAt( $\u0022line-{i}\u0022, p, new Vector3( 0.18f, 0.18f, 0.18f ), new Color( 0.95f, 0.55f, 0.62f ), collider: false );\n\t\t\tbead.Components.Create\u003CFlyBeacon\u003E();\n\t\t\tTrack( bead );\n\t\t}\n\n\t\tvar dad = BuildCow( \u0022dad\u0022, new Vector3( 160, 860, 0 ), CowMesh.Dad, 1.55f );\n\t\tAddHot( dad, \u0022dad\u0022, \u0022\u725B\u7238\u7238\u0022, \u0022Cow Father\u0022, 100f );\n\t\tdad.Components.Create\u003CHerdMarch\u003E().Speed = 50f;\n\t\tTrack( dad );\n\t}\n\n\tstatic void BuildDreamVoid()\n\t{\n\t\tTrack( Primitives.PlaneAt( \u0022void-floor\u0022, new Vector3( 0, 2800, 0 ), new Vector3( 8, 8, 1 ), Color.Black ) );\n\t\tfor ( var i = 0; i \u003C 7; i\u002B\u002B )\n\t\t{\n\t\t\tvar p = GameState.DreamPos \u002B new Vector3( (i - 3) * 40f, 20f \u002B i * 8f, 30f \u002B i * 6f );\n\t\t\tvar crumb = Primitives.BoxAt( $\u0022void-{i}\u0022, p, new Vector3( 0.2f, 0.2f, 0.2f ), i % 2 == 0 ? new Color( 0.9f, 0.35f, 0.4f ) : new Color( 0.15f, 0.12f, 0.12f ), collider: false );\n\t\t\tcrumb.Components.Create\u003CVoidDrift\u003E().Index = i;\n\t\t\tTrack( crumb );\n\t\t}\n\t}\n\n\tstatic void BuildPlayer()\n\t{\n\t\tvar player = new GameObject( true, \u0022NiuLai\u0022 );\n\t\tplayer.WorldPosition = GameState.CampPos;\n\t\tplayer.Tags.Add( \u0022player\u0022 );\n\t\tvar col = player.Components.Create\u003CBoxCollider\u003E();\n\t\tcol.Center = new Vector3( 0, 0, 20 );\n\t\tcol.Scale = new Vector3( 24, 20, 40 );\n\t\tcol.Static = false;\n\t\tplayer.Components.Create\u003CCalfPlayer\u003E();\n\t\tTrack( player );\n\t}\n\n\tstatic GameObject BuildCow( string name, Vector3 pos, Color tint, float scale )\n\t{\n\t\tvar go = new GameObject( true, name );\n\t\tgo.WorldPosition = pos;\n\t\tCowMesh.Build( go, tint, scale );\n\t\tvar col = go.Components.Create\u003CBoxCollider\u003E();\n\t\tcol.Center = Vector3.Up * 22 * scale;\n\t\tcol.Scale = new Vector3( 50, 30, 44 ) * scale;\n\t\tcol.Static = true;\n\t\treturn go;\n\t}\n\n\tstatic GameObject BuildLark( string name, Vector3 pos )\n\t{\n\t\tvar go = new GameObject( true, name );\n\t\tgo.WorldPosition = pos;\n\t\tvar pink = new Color( 0.92f, 0.38f, 0.42f );\n\t\tvar wing = new Color( 0.85f, 0.22f, 0.28f );\n\t\tAttachBox( go, \u0022body\u0022, Vector3.Zero, new Vector3( 0.45f, 0.22f, 0.18f ), pink );\n\t\tAttachBox( go, \u0022head\u0022, new Vector3( 12, 0, 6 ), new Vector3( 0.22f, 0.2f, 0.2f ), pink );\n\t\tAttachBox( go, \u0022beak\u0022, new Vector3( 20, 0, 4 ), new Vector3( 0.16f, 0.08f, 0.08f ), new Color( 0.95f, 0.75f, 0.15f ) );\n\t\tAttachBox( go, \u0022wingL\u0022, new Vector3( 0, 12, 2 ), new Vector3( 0.35f, 0.08f, 0.22f ), wing );\n\t\tAttachBox( go, \u0022wingR\u0022, new Vector3( 0, -12, 2 ), new Vector3( 0.35f, 0.08f, 0.22f ), wing );\n\t\treturn go;\n\t}\n\n\tstatic GameObject BuildLeopard( string name, Vector3 pos )\n\t{\n\t\tvar go = new GameObject( true, name );\n\t\tgo.WorldPosition = pos;\n\t\tvar hide = new Color( 0.72f, 0.58f, 0.28f );\n\t\tvar belly = new Color( 0.45f, 0.32f, 0.62f );\n\t\tvar spot = new Color( 0.22f, 0.16f, 0.10f );\n\t\tAttachBox( go, \u0022body\u0022, new Vector3( 0, 0, 22 ), new Vector3( 1.2f, 0.55f, 0.55f ), hide );\n\t\tAttachBox( go, \u0022belly\u0022, new Vector3( 0, 0, 14 ), new Vector3( 0.9f, 0.4f, 0.28f ), belly );\n\t\tAttachBox( go, \u0022head\u0022, new Vector3( 28, 0, 28 ), new Vector3( 0.42f, 0.4f, 0.4f ), hide );\n\t\tAttachBox( go, \u0022snout\u0022, new Vector3( 40, 0, 24 ), new Vector3( 0.22f, 0.22f, 0.16f ), new Color( 0.75f, 0.55f, 0.5f ) );\n\t\tAttachBox( go, \u0022spot1\u0022, new Vector3( 6, 10, 30 ), new Vector3( 0.12f, 0.12f, 0.08f ), spot );\n\t\tAttachBox( go, \u0022spot2\u0022, new Vector3( -8, -8, 32 ), new Vector3( 0.1f, 0.1f, 0.08f ), spot );\n\t\tAttachBox( go, \u0022spot3\u0022, new Vector3( 14, -6, 26 ), new Vector3( 0.1f, 0.1f, 0.08f ), spot );\n\t\tAttachBox( go, \u0022tail\u0022, new Vector3( -38, 0, 18 ), new Vector3( 0.85f, 0.08f, 0.08f ), hide );\n\t\tvar col = go.Components.Create\u003CBoxCollider\u003E();\n\t\tcol.Center = Vector3.Up * 20;\n\t\tcol.Scale = new Vector3( 48, 28, 40 );\n\t\tcol.Static = true;\n\t\treturn go;\n\t}\n\n\tstatic GameObject BuildWolf( string name, Vector3 pos )\n\t{\n\t\tvar go = new GameObject( true, name );\n\t\tgo.WorldPosition = pos;\n\t\tvar hide = new Color( 0.22f, 0.22f, 0.24f );\n\t\tvar white = new Color( 0.82f, 0.82f, 0.84f );\n\t\tAttachBox( go, \u0022body\u0022, new Vector3( 0, 0, 18 ), new Vector3( 0.95f, 0.38f, 0.42f ), hide );\n\t\tAttachBox( go, \u0022chest\u0022, new Vector3( 10, 0, 16 ), new Vector3( 0.4f, 0.32f, 0.3f ), white );\n\t\tAttachBox( go, \u0022head\u0022, new Vector3( 24, 0, 24 ), new Vector3( 0.36f, 0.3f, 0.32f ), hide );\n\t\tAttachBox( go, \u0022earL\u0022, new Vector3( 20, 8, 34 ), new Vector3( 0.08f, 0.08f, 0.18f ), hide );\n\t\tAttachBox( go, \u0022earR\u0022, new Vector3( 20, -8, 34 ), new Vector3( 0.08f, 0.08f, 0.18f ), hide );\n\t\tvar col = go.Components.Create\u003CBoxCollider\u003E();\n\t\tcol.Center = Vector3.Up * 16;\n\t\tcol.Scale = new Vector3( 40, 22, 32 );\n\t\tcol.Static = false;\n\t\treturn go;\n\t}\n\n\tstatic void AttachBox( GameObject parent, string name, Vector3 local, Vector3 scale, Color tint )\n\t{\n\t\tvar go = new GameObject( true, name );\n\t\tgo.SetParent( parent, false );\n\t\tgo.LocalPosition = local;\n\t\tgo.LocalScale = scale;\n\t\tvar mr = go.Components.Create\u003CModelRenderer\u003E();\n\t\tmr.Model = Primitives.BoxModel;\n\t\tmr.MaterialOverride = Primitives.TintMat;\n\t\tmr.Tint = tint;\n\t}\n\n\tstatic GameObject Marker( string id, Vector3 pos, string cn, string en, float radius )\n\t{\n\t\tvar go = new GameObject( true, id );\n\t\tgo.WorldPosition = pos;\n\t\tAddHot( go, id, cn, en, radius );\n\t\treturn go;\n\t}\n\n\tstatic void AddHot( GameObject go, string id, string cn, string en, float radius )\n\t{\n\t\tvar hs = go.Components.Create\u003CHotspot\u003E();\n\t\ths.Id = id;\n\t\ths.LabelCn = cn;\n\t\ths.LabelEn = en;\n\t\ths.Radius = radius;\n\t}\n}\n"},{"Ident":"dogecoin.niulai","Path":"GameFlow.cs","FileName":"GameFlow.cs","PackageType":"game","CodeKind":"Game","AssetVersionId":443544,"IsPrivate":false,"Code":"namespace NiuLai;\n\npublic enum GameScreen\n{\n\tTitle,\n\tPlaying,\n\tPaused,\n\tEnding\n}\n\npublic static class GameFlow\n{\n\tpublic static GameScreen Screen { get; private set; } = GameScreen.Title;\n\n\tpublic static event Action Changed;\n\n\tpublic static bool BlocksWorld =\u003E Screen != GameScreen.Playing || FilmCut.Playing;\n\n\tpublic static void SetScreen( GameScreen screen )\n\t{\n\t\tif ( Screen == screen )\n\t\t\treturn;\n\n\t\tScreen = screen;\n\t\tApplyMouse();\n\t\tChanged?.Invoke();\n\t}\n\n\tpublic static void StartNewGame()\n\t{\n\t\tvar again = Trophies.EverWon;\n\t\tGameAudio.StopMusic();\n\t\tGameAudio.PlayTitleSting();\n\t\tGameState.Reset();\n\t\tWorldBuilder.Rebuild();\n\t\tSetScreen( GameScreen.Playing );\n\t\tGameState.Talk( \u0022\u65C1\u767D / Narrator\u0022, Lines.Opening );\n\t\tTrophies.Unlock( \u0022walk_slow\u0022 );\n\t\tif ( again )\n\t\t\tTrophies.Unlock( \u0022watch_again\u0022 );\n\t}\n\n\tpublic static void TogglePause()\n\t{\n\t\tif ( Screen == GameScreen.Playing )\n\t\t\tSetScreen( GameScreen.Paused );\n\t\telse if ( Screen == GameScreen.Paused )\n\t\t\tSetScreen( GameScreen.Playing );\n\t}\n\n\tpublic static void BackToTitle()\n\t{\n\t\tGameAudio.StopMusic();\n\t\tSetScreen( GameScreen.Title );\n\t\tGameAudio.PlayTitleSting();\n\t}\n\n\tpublic static void Win()\n\t{\n\t\tif ( Screen == GameScreen.Ending )\n\t\t\treturn;\n\n\t\tGameState.Won = true;\n\t\tGameState.SongWalk = true;\n\t\tTrophies.MarkWon();\n\t\tGameAudio.PlayClip( GameAudio.Rain, 0.8f );\n\t\tGameAudio.PlaySong();\n\t\tSetScreen( GameScreen.Ending );\n\t\tTrophies.Unlock( \u0022after_rain\u0022 );\n\t}\n\n\tpublic static void ApplyMouse()\n\t{\n\t\ttry\n\t\t{\n\t\t\tMouse.Visibility = Screen == GameScreen.Playing\n\t\t\t\t? MouseVisibility.Hidden\n\t\t\t\t: MouseVisibility.Visible;\n\t\t}\n\t\tcatch\n\t\t{\n\t\t\t// Older runtimes hide the cursor a different way.\n\t\t}\n\t}\n}\n"}]}