Elin Decompiled Documentation EA 23.360 Nightly
Loading...
Searching...
No Matches
CardRenderer.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3using UnityEngine;
4
6{
7 public TCOrbit orbit;
8
9 public Card owner;
10
12
13 public bool hasActor;
14
15 public bool hasText;
16
17 public bool isChara;
18
19 public bool skip;
20
21 public Vector3 position;
22
24
25 public List<TC> listTC = new List<TC>();
26
28
30
31 public virtual bool IsMoving => false;
32
33 public Vector3 PositionCenter()
34 {
35 return new Vector3(position.x + data.size.x + data.offset.x * 0.5f, position.y + data.size.y + data.offset.y + owner.Pref.heightFix, position.z);
36 }
37
38 public virtual void SetOwner(Card c)
39 {
40 owner = c;
41 if (data == null)
42 {
44 }
45 isChara = c.isChara;
46 usePass = data.pass != null;
47 }
48
49 public override void Draw(RenderParam p)
50 {
51 Vector3 v = p.NewVector3;
52 Draw(p, ref v, drawShadow: true);
53 }
54
55 public override void RenderToRenderCam(RenderParam p)
56 {
57 Vector3 v = EClass.scene.camSupport.renderPos;
58 if (data.multiSize)
59 {
60 v.y -= 0.8f;
61 }
62 p.x = v.x;
63 p.y = v.y;
64 p.z = v.z;
65 Draw(p, ref v, drawShadow: false);
66 }
67
68 public void ShowBossText()
69 {
71 {
72 return;
73 }
74 SplashText splashText = Util.Instantiate<SplashText>("Media/Text/SplashText_boss2", EClass.ui.rectDynamic);
75 string text = owner.Chara.Aka.ToTitleCase(wholeText: true);
76 string text2 = owner.Chara.NameSimple.ToTitleCase();
77 if (!Lang.isBuiltin && Lang.langCode != "CN")
78 {
79 text = owner.Chara.source.aka.ToTitleCase(wholeText: true);
80 text2 = owner.Chara.source.name.ToTitleCase();
81 }
82 splashText.textSmall.text = text;
83 splashText.textBig.text = text2;
84 owner.Chara.bossText = false;
85 string id = owner.id;
86 if (!(id == "ungaga_pap"))
87 {
88 if (!(id == "lurie_boss"))
89 {
90 return;
91 }
93 {
94 if (EClass._map.plDay.list.Count > 0 && EClass._map.plDay.list[0].data.id != 107)
95 {
96 EClass._zone.SetBGM(107);
97 }
99 {
101 }
102 }
103 owner.PlaySound("warcry");
104 }
105 else if (EClass._zone is Zone_DungeonMino)
106 {
107 EClass._zone.SetBGM(107);
108 }
109 }
110
111 public override void Draw(RenderParam p, ref Vector3 v, bool drawShadow)
112 {
113 if (skip)
114 {
115 skip = false;
116 }
117 else
118 {
120 {
121 return;
122 }
124 RenderObject.currentParam = p;
125 p.dir = owner.dir;
126 if (!isSynced)
127 {
129 RenderObject.syncList.Add(this);
130 }
132 {
134 {
135 ShowBossText();
136 }
137 if (owner.Chara.host == null)
138 {
139 UpdatePosition(ref v, p);
140 }
141 if (owner.Chara.ai is AI_Trolley { IsRunning: not false } aI_Trolley)
142 {
143 drawShadow = false;
144 if (aI_Trolley.trolley.HideChara)
145 {
146 if (hasActor)
147 {
148 actor.SetActive(enable: false);
149 }
150 if ((bool)orbit)
151 {
152 orbit.Refresh();
153 }
154 return;
155 }
156 }
157 if (hasActor)
158 {
159 actor.SetActive(enable: true);
160 }
161 }
162 else
163 {
164 p.x = (position.x = v.x);
165 p.y = (position.y = v.y);
166 p.z = (position.z = v.z);
167 }
168 if ((bool)orbit)
169 {
170 orbit.Refresh();
171 }
172 else
173 {
175 }
176 if (anime != null)
177 {
178 anime.Update();
179 }
180 if (owner.trait is TraitFakeObj)
181 {
182 TraitFakeObj traitFakeObj = owner.trait as TraitFakeObj;
183 if (traitFakeObj.growth != null)
184 {
186 return;
187 }
188 }
190 {
191 SubPassData.Current = SubPassData.Default;
193 p.tile = rendererObjDummy.tile;
194 p.dir = 0;
195 if (hasActor)
196 {
197 actor.SetActive(enable: false);
198 }
199 rendererObjDummy.Draw(p);
200 if (drawShadow && !owner.pos.cell.ignoreObjShadow)
201 {
202 EClass.scene.screenElin.tileMap.passShadow.AddShadow(position.x + rendererObjDummy.offsetShadow.x, position.y + rendererObjDummy.offsetShadow.y + p.shadowFix, position.z + rendererObjDummy.offsetShadow.z, ShadowData.Instance.items[rendererObjDummy.shadowPref.shadow], rendererObjDummy.shadowPref, 0, p.snow);
203 }
204 }
205 else
206 {
207 SubPassData.Current = owner.GetSubPassData();
208 SourcePref pref = GetPref();
209 RenderData renderData = data;
210 int prefIndex = owner.PrefIndex;
211 if (Player.seedHallucination != 0 && CanBeHallucinated())
212 {
214 CardRow cardRow = null;
215 bool flag = false;
216 for (int i = 0; i < 20; i++)
217 {
218 if (owner.isChara)
219 {
220 cardRow = EClass.sources.charas.rows.RandomItem();
221 if (cardRow.multisize)
222 {
223 continue;
224 }
225 }
226 else
227 {
228 cardRow = EClass.sources.things.rows.RandomItem();
229 if (cardRow.tileType != owner.TileType)
230 {
231 continue;
232 }
233 }
234 if (cardRow.chance != 0 && cardRow._tiles.Length != 0 && cardRow.idActor.IsEmpty() && cardRow.idExtra.IsEmpty() && SubPassData.Current == SubPassData.Default && !(cardRow._idRenderData != owner.sourceCard._idRenderData))
235 {
236 flag = true;
237 break;
238 }
239 }
240 if (flag)
241 {
242 renderData = cardRow.renderData;
243 pref = cardRow.pref;
244 cardRow.model.dir = owner.dir;
245 cardRow.model.SetRenderParam(p);
246 prefIndex = cardRow.model.PrefIndex;
247 }
248 Rand.SetSeed();
249 }
250 if (owner.trait is TraitFigure)
251 {
253 {
254 TraitFigure traitFigure = owner.trait as TraitFigure;
255 SourceChara.Row row = EClass.sources.charas.map.TryGetValue(owner.c_idRefCard) ?? EClass.sources.charas.map["putty"];
256 renderData = row.renderData;
257 pref = row.pref;
258 int matColor = traitFigure.GetMatColor();
259 drawShadow = traitFigure.ShowShadow;
260 if (row._tiles.Length == 0 || data.pass == null)
261 {
262 if (traitFigure.extraRenderer == null)
263 {
264 traitFigure.extraRenderer = new CharaRenderer();
265 traitFigure.extraRenderer.SetOwner(CharaGen.Create(row.id));
266 }
267 if (matColor >= -3)
268 {
269 if (matColor == -3)
270 {
271 MatColors matColors = EClass.core.Colors.matColors["ether"];
272 p.matColor = BaseTileMap.GetColorInt(ref matColors.main, 100) * -1;
273 }
274 }
275 else
276 {
277 p.matColor = matColor;
278 }
279 traitFigure.extraRenderer.Draw(p, ref v, drawShadow);
280 return;
281 }
283 {
284 owner.refVal = row.skinAntiSpider;
285 }
286 p.tile = row._tiles[owner.refVal % row._tiles.Length] * ((owner.dir % 2 == 0) ? 1 : (-1));
287 p.matColor = matColor;
288 pref = row.pref;
289 p.x += pref.x * (float)((owner.dir % 2 == 0) ? 1 : (-1));
290 p.z += pref.z;
291 switch (row.id)
292 {
293 case "bike_kane":
294 case "bike_kane_custom":
295 case "bike_leet":
296 p.z -= 0.1f;
297 break;
298 default:
299 p.y += pref.y;
300 break;
301 }
303 {
304 drawShadow = false;
305 }
306 }
307 else
308 {
309 renderData = owner.sourceCard.renderData;
310 }
311 }
312 if (replacer != null)
313 {
314 renderData = replacer.data;
315 pref = replacer.pref;
316 SubPassData.Current = SubPassData.Default;
317 }
318 if (isChara || hasActor)
319 {
320 p.x += pref.x * (float)((!owner.flipX) ? 1 : (-1));
321 p.z += pref.z;
322 }
323 p.y += pref.y;
324 int shadow = pref.shadow;
325 bool flag2 = isChara && owner.isHidden && !EClass.pc.canSeeInvisible && (!EClass.pc.hasTelepathy || !owner.Chara.visibleWithTelepathy);
326 if (drawShadow && shadow != 1 && SubPassData.Current.shadow && (!flag2 || owner.IsPC))
327 {
328 shadow = Mathf.Clamp(shadow, 0, ShadowData.Instance.items.Count - 1);
329 bool flag3 = ((!isChara) ? (owner.dir % 2 == 1) : (owner.dir == 1 || owner.dir == 2));
330 EClass.scene.screenElin.tileMap.passShadow.AddShadow(position.x + (flag3 ? (-1f) : 1f) * renderData.offsetShadow.x, position.y + renderData.offsetShadow.y + (owner.TileType.UseMountHeight ? 0f : p.shadowFix) - (owner.isChara ? 0f : (RenderObject.altitudeFix * (float)owner.altitude)), position.z + renderData.offsetShadow.z, ShadowData.Instance.items[shadow], pref, prefIndex, p.snow);
331 }
332 if (usePass)
333 {
334 if (owner.noSnow)
335 {
336 p.snow = false;
337 }
338 if (!flag2)
339 {
340 renderData.Draw(p);
341 }
342 }
343 else if (hasActor)
344 {
346 {
348 CharaActorPCC charaActorPCC = ride.renderer.actor as CharaActorPCC;
349 CharaActorPCC charaActorPCC2 = actor as CharaActorPCC;
350 ride.angle = owner.angle;
351 if (charaActorPCC != null && charaActorPCC2 != null)
352 {
353 charaActorPCC.provider.currentDir = charaActorPCC2.provider.currentDir;
354 charaActorPCC.provider.currentFrame = charaActorPCC2.provider.currentFrame;
355 charaActorPCC.provider.SetSpriteMain();
356 charaActorPCC.RefreshSprite();
357 }
358 PCCData.RideData ride2 = (ride.renderer as CharaRenderer).pccData.ride;
359 float x = p.x;
360 float y = p.y;
361 float z = p.z;
362 Vector3 v2 = new Vector3(v.x, v.y, v.z);
363 ride.renderer.Draw(p, ref v2, drawShadow: false);
364 int currentDir = actor.currentDir;
365 p.x = x + RenderObject.renderSetting.ridePos[currentDir].x + ride2.x * (float)(currentDir switch
366 {
367 2 => -1,
368 1 => 1,
369 _ => 0,
370 });
371 p.y = y + RenderObject.renderSetting.ridePos[currentDir].y + ride2.y + ride2.jump * (float)((actor.GetFrame() % 2 == 1) ? 1 : 0);
372 p.z = z + RenderObject.renderSetting.ridePos[currentDir].z - ride2.z;
373 }
374 if (flag2)
375 {
376 actor.SetActive(enable: false);
377 }
378 else
379 {
380 actor.SetActive(enable: true);
381 actor.OnRender(p);
382 }
383 }
384 if (isChara)
385 {
386 if (owner.Chara.parasite != null)
387 {
388 owner.Chara.parasite.renderer.position = position;
389 }
390 if (owner.Chara.ride != null)
391 {
392 owner.Chara.ride.renderer.position = position;
393 }
394 }
395 SubPassData.Current = SubPassData.Default;
396 }
397 if (listTC.Count > 0)
398 {
399 RenderObject.tempV = position;
400 RenderObject.tempV.y += data.offset.y + data.size.y + owner.Pref.heightFix;
401 for (int num = listTC.Count - 1; num >= 0; num--)
402 {
403 listTC[num].OnDraw(ref RenderObject.tempV);
404 }
405 }
407 {
409 }
410 }
411 bool CanBeHallucinated()
412 {
414 {
415 return false;
416 }
417 if (owner.isThing)
418 {
420 {
421 return false;
422 }
423 if (listTC.Count > 0)
424 {
425 return false;
426 }
427 }
428 return true;
429 }
430 }
431
432 public virtual void UpdatePosition(ref Vector3 destPos, RenderParam p)
433 {
434 }
435
436 public virtual void DrawHeld()
437 {
438 }
439
440 public void RefreshSprite()
441 {
442 if (hasActor)
443 {
445 }
446 }
447
448 public override void OnEnterScreen()
449 {
450 if (isSynced)
451 {
452 Debug.LogError("renderer already synced:" + owner);
453 }
454 isSynced = true;
455 if (!usePass)
456 {
457 if (!hasActor)
458 {
460 if (actor == null)
461 {
462 if (owner.sourceCard.idActor.IsEmpty())
463 {
464 actor = PoolManager.Spawn(Resources.Load<CardActor>("Scene/Render/Actor/" + (owner.isChara ? "CharaActor" : "ThingActor")));
465 }
466 else
467 {
468 actor = PoolManager.Spawn(Resources.Load<CardActor>("Scene/Render/Actor/" + owner.sourceCard.idActor[0]));
469 }
470 }
471 hasActor = true;
472 }
474 }
476 RefreshExtra();
477 if (owner.isCensored)
478 {
479 SetCensored(enable: true);
480 }
482 }
483
484 public void AddExtra(string id)
485 {
486 if (GetTC(id) == null)
487 {
488 TC tC = AddTC<TC>(PoolManager.Spawn<TC>("tcExtra_" + id, "Scene/Render/Actor/Component/Extra/" + id));
489 if (tC.isUI)
490 {
491 tC.transform.SetParent(EClass.ui.rectDynamic, worldPositionStays: false);
492 }
493 tC.name = id;
494 }
495 }
496
497 public void RefreshExtra()
498 {
499 string idExtra = owner.sourceCard.idExtra;
500 if (!idExtra.IsEmpty() && (owner.placeState != PlaceState.roaming || EClass.pc.held == owner || owner.isRoofItem))
501 {
502 AddExtra(idExtra);
503 }
504 if (isChara && owner.rarity >= Rarity.Legendary && owner.rarity != Rarity.Artifact && !owner.Chara.IsHomeMember() && !owner.HasCondition<ConBaseTransmuteMimic>())
505 {
506 if (owner.c_bossType == BossType.Evolved)
507 {
508 AddExtra("c_unique_evolved");
509 }
510 else
511 {
512 AddExtra("c_unique");
513 }
514 }
515 }
516
517 public void RemoveExtra(string id)
518 {
519 TC tC = GetTC(id);
520 if (tC != null)
521 {
522 RemoveTC(tC);
523 }
524 }
525
526 public override void OnLeaveScreen()
527 {
528 isSynced = false;
529 if (hasActor)
530 {
532 {
533 KillActor();
534 }
535 else if (data.persistActor)
536 {
537 actor.SetVisible(enable: false);
538 }
539 }
540 for (int num = listTC.Count - 1; num >= 0; num--)
541 {
542 RemoveTC(num);
543 }
544 if (hasText)
545 {
547 }
548 if ((bool)orbit)
549 {
551 orbit = null;
552 }
553 }
554
555 public void KillActor()
556 {
557 actor.Kill();
558 hasActor = false;
559 actor = null;
560 }
561
562 public void PlayAnime(AnimeID id, bool force)
563 {
564 PlayAnime(id, default(Vector3), force);
565 }
566
567 public void PlayAnime(AnimeID id, Card dest)
568 {
569 PlayAnime(id, (dest.renderer.position - position).normalized);
570 }
571
572 public void PlayAnime(AnimeID id, Point dest)
573 {
574 PlayAnime(id, (dest.PositionAuto() - position).normalized);
575 }
576
577 public void PlayAnime(AnimeID id, Vector3 dest = default(Vector3), bool force = false)
578 {
579 if (!force && owner.parent is Zone && (!owner.pos.IsValid || !owner.pos.IsSync))
580 {
581 return;
582 }
583 TransAnimeData transAnimeData = ResourceCache.Load<TransAnimeData>("Scene/Render/Anime/" + id);
584 if (transAnimeData == null)
585 {
586 anime = null;
587 Debug.Log("Anime not found:" + id);
588 return;
589 }
590 anime = new TransAnime
591 {
592 data = transAnimeData,
593 renderer = this
594 }.Init();
595 if (id == AnimeID.Attack || (uint)(id - 18) <= 1u || id == AnimeID.Kiss)
596 {
597 anime.dest = dest;
598 }
599 }
600
601 public virtual void KillAnime()
602 {
603 anime = null;
604 }
605
606 public virtual void IdleFrame()
607 {
608 if (hasActor)
609 {
611 }
612 }
613
614 public virtual void NextFrame()
615 {
616 if (hasActor)
617 {
619 }
620 }
621
622 public virtual void NextDir()
623 {
624 if (hasActor)
625 {
626 actor.NextDir();
627 }
628 }
629
630 public T AddTC<T>(TC tc) where T : TC
631 {
632 listTC.Add(tc);
633 tc.SetOwner(this);
634 return tc as T;
635 }
636
637 public T GetTC<T>() where T : TC
638 {
639 if (listTC.Count == 0)
640 {
641 return null;
642 }
643 for (int num = listTC.Count - 1; num >= 0; num--)
644 {
645 if (listTC[num] is T)
646 {
647 return listTC[num] as T;
648 }
649 }
650 return null;
651 }
652
653 public TC GetTC(string id)
654 {
655 if (listTC.Count == 0)
656 {
657 return null;
658 }
659 for (int num = listTC.Count - 1; num >= 0; num--)
660 {
661 if (listTC[num].name == id)
662 {
663 return listTC[num];
664 }
665 }
666 return null;
667 }
668
669 public T GetOrCreateTC<T>(Func<T> func) where T : TC
670 {
671 return GetTC<T>() ?? AddTC<T>(func());
672 }
673
674 public void RemoveTC<T>() where T : TC
675 {
676 if (listTC.Count == 0)
677 {
678 return;
679 }
680 for (int num = listTC.Count - 1; num >= 0; num--)
681 {
682 if (listTC[num] is T)
683 {
684 listTC[num].Kill();
685 listTC.RemoveAt(num);
686 break;
687 }
688 }
689 }
690
691 public void RemoveTC(TC tc)
692 {
693 RemoveTC(listTC.IndexOf(tc));
694 }
695
696 public void RemoveTC(int index)
697 {
698 if (index != -1)
699 {
700 listTC[index].Kill();
701 listTC.RemoveAt(index);
702 }
703 }
704
705 public void TrySpawnOrbit()
706 {
707 if (owner.isChara)
708 {
709 string text = (owner.IsPC ? "tcOrbitPC" : "tcOrbitChara");
710 orbit = PoolManager.Spawn<TCOrbitChara>(text, "Scene/Render/Actor/Component/" + text);
711 orbit.SetOwner(this);
712 }
713 else if (owner.trait.ShowOrbit)
714 {
715 string text2 = "tcOrbitThing";
716 orbit = PoolManager.Spawn<TCOrbitThing>(text2, "Scene/Render/Actor/Component/" + text2);
717 orbit.SetOwner(this);
718 }
719 }
720
721 public bool IsTalking()
722 {
723 TCText tC = GetTC<TCText>();
724 if ((bool)tC)
725 {
726 return tC.pop.items.Count > 0;
727 }
728 return false;
729 }
730
732 {
733 if (!hasText)
734 {
735 hasText = true;
737 }
738 RenderObject.tempV.x = position.x + TC._setting.simpleTextPos.x;
739 RenderObject.tempV.y = position.y + TC._setting.simpleTextPos.y;
740 RenderObject.tempV.z = position.z + TC._setting.simpleTextPos.z;
741 simpleText.transform.position = RenderObject.tempV;
742 return simpleText;
743 }
744
745 public void DespawnSimpleText()
746 {
747 if (hasText)
748 {
750 hasText = false;
751 }
752 }
753
754 public void SetCensored(bool enable)
755 {
756 if (!isSynced)
757 {
758 return;
759 }
760 if (enable)
761 {
762 GetOrCreateTC(() => PoolManager.Spawn(EClass.core.refs.tcs.censored));
763 }
764 else
765 {
766 RemoveTC<TCCensored>();
767 }
768 }
769
770 public virtual void RefreshStateIcon()
771 {
772 }
773
774 public void Say(string text, Color c = default(Color), float duration = 0f)
775 {
776 (GetTC<TCText>() ?? AddTC<TCText>(PoolManager.Spawn(EClass.core.refs.tcs.text, EClass.ui.rectDynamic))).Say(text, duration);
777 }
778
779 public void ShowEmo(Emo emo, float duration = 0f)
780 {
781 if (isSynced)
782 {
783 (GetTC<TCText>() ?? AddTC<TCText>(PoolManager.Spawn(EClass.core.refs.tcs.text, EClass.ui.rectDynamic))).ShowEmo(emo, duration);
784 }
785 }
786
787 public virtual void SetFirst(bool first, Vector3 pos)
788 {
789 }
790
791 public virtual void SetFirst(bool first)
792 {
793 }
794
795 public virtual void Refresh()
796 {
797 }
798
800 {
801 if (replacer != null)
802 {
803 return replacer.pref;
804 }
805 if ((owner.IsPCC && replacer == null) || (owner.HasHost && owner.Chara.host.ride == owner))
806 {
807 return EClass.core.refs.prefs.pcc;
808 }
809 return owner.Pref;
810 }
811}
AnimeID
Definition: AnimeID.cs:2
BossType
Definition: BossType.cs:2
@ ride
Emo
Definition: Emo.cs:2
PlaceState
Definition: PlaceState.cs:2
Rarity
Definition: Rarity.cs:2
BaseTileMap tileMap
MeshPass passShadow
Definition: BaseTileMap.cs:133
static int GetColorInt(ref Color matColor, int p)
RenderDataObjDummy rendererObjDummy
Definition: BaseTileMap.cs:227
Vector3 renderPos
void SetVisible(bool enable)
Definition: CardActor.cs:316
virtual void OnRender(RenderParam p)
Definition: CardActor.cs:107
virtual int currentDir
Definition: CardActor.cs:45
virtual void NextDir()
Definition: CardActor.cs:98
void SetOwner(Card t)
Definition: CardActor.cs:52
virtual void NextFrame()
Definition: CardActor.cs:94
virtual void RefreshSprite()
Definition: CardActor.cs:246
virtual void IdleFrame()
Definition: CardActor.cs:90
virtual void Kill()
Definition: CardActor.cs:310
virtual int GetFrame()
Definition: CardActor.cs:102
void ShowEmo(Emo emo, float duration=0f)
override void RenderToRenderCam(RenderParam p)
Definition: CardRenderer.cs:55
void PlayAnime(AnimeID id, bool force)
void Say(string text, Color c=default(Color), float duration=0f)
virtual void SetFirst(bool first)
virtual void DrawHeld()
T AddTC< T >(TC tc)
virtual void KillAnime()
void PlayAnime(AnimeID id, Vector3 dest=default(Vector3), bool force=false)
override void OnLeaveScreen()
override void Draw(RenderParam p)
Definition: CardRenderer.cs:49
void RemoveTC(int index)
SourcePref GetPref()
virtual void NextDir()
RendererReplacer replacer
Definition: CardRenderer.cs:29
Vector3 position
Definition: CardRenderer.cs:21
void RefreshSprite()
TransAnime anime
Definition: CardRenderer.cs:23
void AddExtra(string id)
TC GetTC(string id)
virtual void NextFrame()
T GetOrCreateTC< T >(Func< T > func)
TCSimpleText SpawnSimpleText()
virtual bool IsMoving
Definition: CardRenderer.cs:31
virtual void RefreshStateIcon()
bool IsTalking()
void RemoveTC< T >()
override void OnEnterScreen()
virtual void SetOwner(Card c)
Definition: CardRenderer.cs:38
List< TC > listTC
Definition: CardRenderer.cs:25
virtual void SetFirst(bool first, Vector3 pos)
void RemoveExtra(string id)
void PlayAnime(AnimeID id, Card dest)
void TrySpawnOrbit()
virtual void UpdatePosition(ref Vector3 destPos, RenderParam p)
virtual void IdleFrame()
TCOrbit orbit
Definition: CardRenderer.cs:7
void RefreshExtra()
void ShowBossText()
Definition: CardRenderer.cs:68
CardActor actor
Definition: CardRenderer.cs:11
void KillActor()
void SetCensored(bool enable)
void PlayAnime(AnimeID id, Point dest)
virtual void Refresh()
Vector3 PositionCenter()
Definition: CardRenderer.cs:33
TCSimpleText simpleText
Definition: CardRenderer.cs:27
override void Draw(RenderParam p, ref Vector3 v, bool drawShadow)
void DespawnSimpleText()
void RemoveTC(TC tc)
string[] idActor
Definition: CardRow.cs:35
Card model
Definition: CardRow.cs:60
string id
Definition: CardRow.cs:7
string idExtra
Definition: CardRow.cs:9
Definition: Card.cs:11
float angle
Definition: Card.cs:74
virtual bool IsPCC
Definition: Card.cs:2201
virtual bool isThing
Definition: Card.cs:2133
virtual Chara Chara
Definition: Card.cs:2122
bool isMasked
Definition: Card.cs:593
string id
Definition: Card.cs:36
bool isRoofItem
Definition: Card.cs:581
bool isCensored
Definition: Card.cs:437
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
Definition: Card.cs:6651
Rarity rarity
Definition: Card.cs:317
ICardParent parent
Definition: Card.cs:56
bool ExistsOnMap
Definition: Card.cs:2137
virtual bool IsDeadOrSleeping
Definition: Card.cs:2161
PlaceState placeState
Definition: Card.cs:86
TileType TileType
Definition: Card.cs:2189
virtual SourcePref Pref
Definition: Card.cs:2159
Point pos
Definition: Card.cs:60
int uid
Definition: Card.cs:125
virtual void SetRenderParam(RenderParam p)
Definition: Card.cs:6469
virtual SubPassData GetSubPassData()
Definition: Card.cs:6774
Trait trait
Definition: Card.cs:54
int altitude
Definition: Card.cs:233
BossType c_bossType
Definition: Card.cs:1261
bool IsInstalled
Definition: Card.cs:2451
virtual bool IsPC
Definition: Card.cs:2197
string NameSimple
Definition: Card.cs:2193
virtual bool isChara
Definition: Card.cs:2135
Cell Cell
Definition: Card.cs:2107
virtual bool HasHost
Definition: Card.cs:2493
virtual int PrefIndex
Definition: Card.cs:2382
int dir
Definition: Card.cs:149
bool noSnow
Definition: Card.cs:761
virtual CardRow sourceCard
Definition: Card.cs:2183
bool noShadow
Definition: Card.cs:821
SourceCategory.Row category
Definition: Card.cs:2101
CardRenderer renderer
Definition: Card.cs:64
virtual bool flipX
Definition: Card.cs:2168
string c_idRefCard
Definition: Card.cs:1777
bool HasRoof
Definition: Cell.cs:684
bool ignoreObjShadow
Definition: Cell.cs:390
override void RefreshSprite()
SpriteProvider provider
Definition: CharaActorPCC.cs:9
static Chara Create(string id, int lv=-1)
Definition: CharaGen.cs:17
Definition: Chara.cs:10
Card held
Definition: Chara.cs:72
AIAct ai
Definition: Chara.cs:208
Chara host
Definition: Chara.cs:35
bool IsNeutralOrAbove()
Definition: Chara.cs:7052
string Aka
Definition: Chara.cs:222
SourceChara.Row source
Definition: Chara.cs:164
bool visibleWithTelepathy
Definition: Chara.cs:154
bool IsHomeMember()
Definition: Chara.cs:7066
Chara parasite
Definition: Chara.cs:32
Chara ride
Definition: Chara.cs:29
bool bossText
Definition: Chara.cs:148
UD_String_MatData matColors
new GameConfig game
Definition: CoreConfig.cs:629
SourcePref pcc
Definition: CoreRef.cs:331
TCSimpleText simpleText
Definition: CoreRef.cs:245
TCText text
Definition: CoreRef.cs:239
TCCensored censored
Definition: CoreRef.cs:241
PrefData prefs
Definition: CoreRef.cs:420
TCs tcs
Definition: CoreRef.cs:356
CoreRef refs
Definition: Core.cs:51
ColorProfile Colors
Definition: Core.cs:53
CoreConfig config
Definition: Core.cs:70
Definition: EClass.cs:6
static Game game
Definition: EClass.cs:9
static Scene scene
Definition: EClass.cs:31
static Core core
Definition: EClass.cs:7
static Zone _zone
Definition: EClass.cs:21
static Map _map
Definition: EClass.cs:19
static SourceManager sources
Definition: EClass.cs:43
static BaseGameScreen screen
Definition: EClass.cs:33
static Chara pc
Definition: EClass.cs:15
static UI ui
Definition: EClass.cs:17
Zone activeZone
Definition: Game.cs:252
QuestManager quests
Definition: Game.cs:183
virtual void OnRenderTileMap(RenderParam p, bool drawShadow=true)
Definition: GrowSystem.cs:212
Definition: Lang.cs:7
static string langCode
Definition: Lang.cs:29
static bool isBuiltin
Definition: Lang.cs:43
static LayerDrama Instance
Definition: LayerDrama.cs:20
bool IsIndoor
Definition: Map.cs:139
Playlist plDay
Definition: Map.cs:83
Color main
Definition: MatColors.cs:7
void AddShadow(MeshPassParam p, ref Vector3 fix)
Definition: MeshPass.cs:195
Definition: Player.cs:11
static int seedHallucination
Definition: Player.cs:1217
Definition: Point.cs:9
ref Vector3 PositionAuto()
Definition: Point.cs:540
Thing LastThing
Definition: Point.cs:310
bool IsSync
Definition: Point.cs:340
bool IsValid
Definition: Point.cs:84
Thing FirstThing
Definition: Point.cs:297
Cell cell
Definition: Point.cs:47
static void Despawn(Component c)
Definition: PoolManager.cs:128
static Transform Spawn(string id, string path, Transform parent)
Definition: PoolManager.cs:86
int GetPhase(string id)
Quest Get(string id)
Definition: Rand.cs:4
static void SetSeed(int a=-1)
Definition: Rand.cs:44
override void Draw(RenderParam p)
Definition: RenderDataObj.cs:3
void Draw(RenderParam p, int tile)
Definition: RenderData.cs:129
Vector3 offsetShadow
Definition: RenderData.cs:23
Vector3 offset
Definition: RenderData.cs:19
bool multiSize
Definition: RenderData.cs:33
virtual CardActor CreateActor()
Definition: RenderData.cs:85
SourcePref shadowPref
Definition: RenderData.cs:49
bool persistActor
Definition: RenderData.cs:39
MeshPass pass
Definition: RenderData.cs:17
Vector2 size
Definition: RenderData.cs:31
static List< ISyncScreen > syncList
Definition: RenderObject.cs:24
static Vector3 tempV
Definition: RenderObject.cs:20
RenderData data
Definition: RenderObject.cs:34
static long syncFrame
Definition: RenderObject.cs:26
static GameSetting.RenderSetting renderSetting
Definition: RenderObject.cs:14
float shadowFix
Definition: RenderParam.cs:21
Vector3 NewVector3
Definition: RenderParam.cs:23
bool multisize
Definition: RenderRow.cs:64
RenderData renderData
Definition: RenderRow.cs:71
SourcePref pref
Definition: RenderRow.cs:68
string _idRenderData
Definition: RenderRow.cs:38
TileType tileType
Definition: RenderRow.cs:77
int[] _tiles
Definition: RenderRow.cs:12
int chance
Definition: RenderRow.cs:24
GameScreen screenElin
Definition: Scene.cs:93
CameraSupport camSupport
Definition: Scene.cs:41
List< Item > items
Definition: ShadowData.cs:101
static ShadowData Instance
Definition: ShadowData.cs:99
SourceThing things
SourceChara charas
float heightFix
Definition: SourcePref.cs:317
int shadow
Definition: SourcePref.cs:41
static SplashText Instance
Definition: SplashText.cs:10
static SubPassData Default
Definition: SubPassData.cs:7
static SubPassData Current
Definition: SubPassData.cs:9
virtual void Refresh()
Definition: TCOrbit.cs:3
Definition: TCText.cs:6
Definition: TC.cs:4
static GameSetting.RenderSetting.TCSetting _setting
Definition: TC.cs:5
virtual bool isUI
Definition: TC.cs:11
void SetOwner(CardRenderer r)
Definition: TC.cs:15
virtual bool UseMountHeight
Definition: TileType.cs:241
GrowSystem growth
Definition: TraitFakeObj.cs:6
virtual bool ShowShadow
Definition: TraitFigure.cs:12
virtual int GetMatColor()
Definition: TraitFigure.cs:14
CardRenderer extraRenderer
Definition: TraitFigure.cs:6
virtual bool CanBeHallucinated
Definition: Trait.cs:311
virtual RenderData GetRenderData()
Definition: Trait.cs:616
virtual bool ShowOrbit
Definition: Trait.cs:137
virtual bool RenderExtra
Definition: Trait.cs:369
virtual bool UseDummyTile
Definition: Trait.cs:207
virtual void OnRenderExtra(RenderParam p)
Definition: Trait.cs:670
virtual void OnEnterScreen()
Definition: Trait.cs:1623
bool Update()
Definition: TransAnime.cs:40
Definition: Zone.cs:12
void SetBGM(List< int > ids, bool refresh=true, float fadeDuration=0f)
Definition: Zone.cs:3265