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