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