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