|
Elin Decompiled Documentation EA 23.306 Nightly
|
Classes | |
| struct | DestData |
Public Member Functions | |
| void | SetOwner (Card owner) |
| void | ChangeSize (int w, int h) |
| void | RefreshGridRecursive () |
| void | RefreshGrid () |
| void | RefreshGrid (UIMagicChest magic, Window.SaveData data) |
| bool | IsOccupied (int x, int y) |
| bool | ShouldShowOnGrid (Thing t) |
| void | OnAdd (Thing t) |
| bool | IsAlmostFull (int threshold=2) |
| bool | IsFull (int y=0) |
| bool | IsOverflowing () |
| int | GetFreeGridIndex () |
| void | OnRemove (Thing t) |
| void | SetSize (int w, int h) |
| Thing | TryStack (Thing target, int destInvX=-1, int destInvY=-1) |
| Thing | CanStack (Thing target, int destInvX=-1, int destInvY=-1) |
| DestData | GetDest (Thing t, bool tryStack=true) |
| bool | IsFull (Thing t, bool recursive=true, bool tryStack=true) |
| void | AddCurrency (Card owner, string id, int a, SourceMaterial.Row mat=null) |
| void | DestroyAll (Func< Thing, bool > funcExclude=null) |
| Thing | Find (int uid) |
| Thing | Find< T > () |
| Thing | FindBest< T > (Func< Thing, int > func) |
| Thing | Find (Func< Thing, bool > func, bool recursive=true) |
| Thing | Find (string id, string idMat) |
| Thing | Find (string id, int idMat=-1, int refVal=-1) |
| Thing | FindStealable () |
| ThingStack | GetThingStack (string id, int refVal=-1) |
| ThingStack | GetThingStack (string id, ThingStack s, bool isOrigin, int refVal=-1) |
| ThingStack | GetThingStack (string id) |
| ThingStack | GetThingStack (string id, ThingStack s, bool isOrigin) |
| long | GetCurrency (string id, ref long sum, SourceMaterial.Row mat=null) |
| List< Thing > | ListCurrency (string id) |
| List< Thing > | List (Func< Thing, bool > func, bool onlyAccessible=false) |
| void | _List (List< Thing > tempList, Func< Thing, bool > func, bool onlyAccessible=false) |
| void | AddFactory (HashSet< string > hash) |
| void | Foreach (Action< Thing > action, bool onlyAccessible=true) |
| void | Foreach (Func< Thing, bool > action, bool onlyAccessible=true) |
Public Member Functions inherited from ActPlan.List< Thing > | |
| void | Add (Act a, string s="") |
Public Attributes | |
| int | width |
| int | height |
| Card | owner |
| List< Thing > | grid |
Static Public Attributes | |
| static List< Thing > | listUnassigned = new List<Thing>() |
| const int | InvYHotbar = 1 |
Properties | |
| int | GridSize [get] |
| bool | HasGrid [get] |
| bool | IsMagicChest [get] |
| int | MaxCapacity [get] |
Private Member Functions | |
| void | _ListCurrency (List< Thing > tempList, string id) |
Static Private Attributes | |
| static List< ThingContainer > | _listContainers = new List<ThingContainer>() |
Definition at line 6 of file ThingContainer.cs.
|
inline |
Definition at line 828 of file ThingContainer.cs.
References _List(), Trait.CanSearchContent, owner, Card.things, and Card.trait.
Definition at line 803 of file ThingContainer.cs.
References _ListCurrency(), Thing.CanSearchContents, Card.id, and Card.things.
Referenced by _ListCurrency(), and ListCurrency().
|
inline |
Definition at line 532 of file ThingContainer.cs.
References Card.AddThing(), Card.ChangeMaterial(), ThingGen.Create(), item, ListCurrency(), owner, and Card.SetNum().
Referenced by Card.ModCurrency(), and LayerGachaResult.PlayGacha().
|
inline |
Definition at line 846 of file ThingContainer.cs.
References AddFactory(), Thing.CanSearchContents, Card.id, Trait.IsFactory, Card.isOn, Card.things, Trait.ToggleType, and Card.trait.
Referenced by AddFactory(), and RecipeUpdater.RunRecipe().
Definition at line 399 of file ThingContainer.cs.
References Thing.CanStackTo().
Referenced by GetDest(), IsFull(), InvOwner.OnShiftClick(), and Zone.TryAddThingInSharedContainer().
|
inline |
Definition at line 81 of file ThingContainer.cs.
References Debug, GridSize, height, RefreshGrid(), and width.
|
inline |
Definition at line 564 of file ThingContainer.cs.
References Card.Destroy(), and grid.
Referenced by ThingGen.CreateCardboardBox(), ThingGen.CreateTreasureContent(), Player.DropReward(), DNA.GenerateManiGene(), TraitFoodEggFertilized.Incubate(), Trait.OnBarter(), Player.OnCreateGame(), QuestFiamaLock.OnStart(), Player.OnStartNewGame(), TraitContainer.Open(), DramaOutcome.QuestDefense_0(), SerializedCards.Restore(), Chara.ScaleByPrincipal(), and Zone.SpawnLostItems().
Definition at line 642 of file ThingContainer.cs.
References Thing.CanSearchContents, Find(), and Card.things.
|
inline |
Definition at line 583 of file ThingContainer.cs.
References Thing.CanSearchContents, Find(), Card.things, and Card.uid.
Referenced by AM_Adv._OnUpdateInput(), TraitGodStatue._OnUse(), DropdownGrid.BuildIngredients(), QuestCraft.CanDeliverToClient(), ActBloodsuck.CanPerform(), ActNTR.CanPerform(), QuestLoytelFarm.CanUpdateOnTalk(), DramaOutcome.chara_hired_ticket(), DramaOutcome.check_sketch(), LayerInventory.CreateBuy(), FactionBranch.DailyOutcome(), Chara.Die(), DramaOutcome.duponne_capture(), Find(), Find< T >(), Chara.FindAmmo(), Card.FindTool< T >(), AI_Fuck.Finish(), CoreDebug.Fix_LostCore(), DramaOutcome.give_sketch_special(), Chara.GiveGift(), DramaOutcome.guild_mageTrial(), Chara.MakeGrave(), Trait.OnBarter(), QuestNasu.OnComplete(), ShopTransaction.OnEndTransaction(), ConSleep.OnRemoved(), ConWrath.OnRemoved(), HotItemActionSleep.Perform(), HotItemEQSet.Perform(), LayerGacha.PlayGacha(), CoreDebug.QuickStart(), UIRecipeInfo.Refresh(), LayerQuestBoard.RefreshHire(), Recipe.Ingredient.RefreshThing(), Card.RemoveBacker(), Card.RemoveThing(), AI_Churyu.Run(), AI_Idle.Run(), AI_PlayMusic.Run(), HitSummary.SetRecipe(), ConSleep.SuccubusVisit(), Player.TryEquipBait(), Zone.TryGetRestock< T >(), Zone.TryGetThingFromSharedContainer(), ActPray.TryPray(), and TraitToolTorch.TrySetHeldAct().
|
inline |
Definition at line 671 of file ThingContainer.cs.
References Thing.CanSearchContents, Find(), Card.id, Card.material, and Card.things.
|
inline |
Definition at line 666 of file ThingContainer.cs.
References Find(), SourceManager.materials, and EClass.sources.
|
inline |
| T | : | Trait |
Definition at line 607 of file ThingContainer.cs.
References Thing.CanSearchContents, Find(), Card.things, and Card.trait.
| T | : | Trait |
Definition at line 631 of file ThingContainer.cs.
References List(), and Card.trait.
|
inline |
Definition at line 695 of file ThingContainer.cs.
References Card.Add(), Trait.CanBeStolen, Card.HasTag(), Card.IsContainer, Card.IsUnique, and Card.trait.
Referenced by AI_Steal.Run().
|
inline |
Definition at line 867 of file ThingContainer.cs.
References Thing.CanSearchContents, Foreach(), and Card.things.
Referenced by BuildMenu._Search(), Card.AddThing(), DramaCustomSequence.Build(), Foreach(), BaseTaskHarvest.GetBestTool(), Props.ListThingStack(), TaskDump.ListThingsToPut(), ZoneEventHarvest.OnLeaveZone(), Player.OnLoad(), RecipeManager.OnVersionUpdate(), BuildMenu.RefreshCategory(), Chara.Revive(), CoreDebug.Rust(), WidgetSearch.Search(), Trait.TryRefuel(), LayerInventory.TryShowGuide(), and GoalAutoCombat.TryUseRanged().
|
inline |
Definition at line 881 of file ThingContainer.cs.
References Thing.CanSearchContents, Foreach(), and Card.things.
|
inline |
Definition at line 771 of file ThingContainer.cs.
References Thing.CanSearchContents, GetCurrency(), Card.id, Card.material, Card.Num, and Card.things.
Referenced by GetCurrency(), and Card.GetCurrency().
Definition at line 413 of file ThingContainer.cs.
References _listContainers, Window.SaveData.advDistribution, Trait.CanOnlyCarry, Thing.CanSearchContents, CanStack(), Card.category, Window.SaveData.cats, Window.SaveData.flag, Card.GetWindowSaveData(), Card.isChara, Card.IsContainer, Window.SaveData.IsFilterPass(), IsFull(), Card.IsPC, ThingContainer.DestData.IsValid, Window.SaveData.noRotten, Window.SaveData.onlyRottable, owner, Card.parent, Card.things, Card.trait, Chara.trait, and Window.SaveData.userFilter.
Referenced by IsFull(), and Card.TryStack().
|
inline |
Definition at line 347 of file ThingContainer.cs.
References grid.
Referenced by IsFull(), OnAdd(), and RefreshGrid().
|
inline |
Definition at line 746 of file ThingContainer.cs.
References SourceManager.cards, GetThingStack(), SourceCard.map, and EClass.sources.
|
inline |
Definition at line 721 of file ThingContainer.cs.
References SourceManager.cards, GetThingStack(), SourceCard.map, and EClass.sources.
Referenced by GetThingStack(), UIRecipeInfo.Refresh(), and ButtonGrid.RefreshCraftable().
|
inline |
Definition at line 753 of file ThingContainer.cs.
References ThingStack.Add(), Thing.CanSearchContents, GetThingStack(), Card.id, Thing.source, and Card.things.
|
inline |
Definition at line 728 of file ThingContainer.cs.
References ThingStack.Add(), Thing.CanSearchContents, GetThingStack(), Card.id, Card.IsIdentified, Card.refVal, Thing.source, and Card.things.
|
inline |
Definition at line 288 of file ThingContainer.cs.
References GridSize.
|
inline |
Definition at line 293 of file ThingContainer.cs.
References GetFreeGridIndex(), GridSize, HasGrid, Trait.IsFridge, IsMagicChest, Card.isOn, Trait.IsSpecialContainer, MaxCapacity, owner, Card.parent, and Card.trait.
Referenced by FactionBranch.DailyOutcome(), QuestDeliver.Deliver(), Props.FindEmptyContainer< T >(), GetDest(), FactionBranch.GetMeal(), InvOwner.GetShitDestOwner(), IsFull(), InvOwner.Transaction.IsValid(), InvOwnerEquip.ListInteractions(), Faction.OnAdvanceMonth(), AI_Fish.ProgressFish.OnProgressComplete(), ActDreamBug.Perform(), InvOwner.PutBack(), AI_Idle.Run(), and GameDate.ShipPackages().
|
inline |
Definition at line 519 of file ThingContainer.cs.
References CanStack(), GetDest(), IsFull(), and ThingContainer.DestData.IsValid.
|
inline |
Definition at line 242 of file ThingContainer.cs.
References Card.invX, and Card.invY.
Referenced by InvOwner.PutBack().
|
inline |
Definition at line 322 of file ThingContainer.cs.
References grid, HasGrid, Card.invY, Thing.isEquipped, and IsMagicChest.
Referenced by InvOwner.ListInteractions().
Definition at line 820 of file ThingContainer.cs.
References _List().
Referenced by FactionBranch.AddMemeber(), Trait.DamageRandomProperty(), CharaBody.Equip(), ZonePreEnterEncounter.Execute(), FindBest< T >(), TraitPainter.GetCanvas(), TaskDig.GetTreasureMap(), QuestDeliver.ListDestThing(), Player.OnAdvanceHour(), Chara.OnBanish(), AM_Adv.OnBecomeNoGoal(), ConTransmuteHuman.OnBeforeStart(), ConTransmuteMimic.OnBeforeStart(), ContentCodex.OnClickAddCards(), Game.OnLoad(), AI_Fish.ProgressFish.OnProgressComplete(), TraitScrollStatic.OnRead(), ConSleep.OnRemoved(), UI.OpenFloatInv(), Card.PurgeDuplicateArtifact(), AI_Idle.Run(), ButtonAbility.SpecialHoldAction(), Zone.TryListThingsInSpot< T >(), LayerDragGrid.TryProc(), and Trait.TryPryOpenLock().
Definition at line 795 of file ThingContainer.cs.
References _ListCurrency().
Referenced by AddCurrency().
|
inline |
Definition at line 275 of file ThingContainer.cs.
References GetFreeGridIndex(), grid, HasGrid, and ShouldShowOnGrid().
Referenced by Card.AddThing().
|
inline |
Definition at line 359 of file ThingContainer.cs.
References grid, HasGrid, and Card.invY.
Referenced by Card.RemoveThing().
|
inline |
Definition at line 106 of file ThingContainer.cs.
References ActPlan.List.Add(), GetFreeGridIndex(), grid, GridSize, Card.invX, item, listUnassigned, and ShouldShowOnGrid().
Referenced by ChangeSize(), RefreshGrid(), RefreshGridRecursive(), and LayerDragGrid.SetInv().
|
inline |
Definition at line 144 of file ThingContainer.cs.
References ActPlan.List.Add(), UIMagicChest.catCount, Card.category, UIMagicChest.cats, UIMagicChest.filteredList, Thing.GetName(), grid, GridSize, UIMagicChest.idCat, UIMagicChest.lastSearch, Thing.MatchEncSearch(), UIMagicChest.page, UIMagicChest.pageMax, UIMagicChest.RefreshCats(), RefreshGrid(), Thing.source, and Thing.tempName.
|
inline |
Definition at line 90 of file ThingContainer.cs.
References Card.IsContainer, RefreshGrid(), RefreshGridRecursive(), and Card.things.
Referenced by Game.OnLoad(), and RefreshGridRecursive().
|
inline |
Definition at line 69 of file ThingContainer.cs.
References height, owner, and width.
Referenced by Card._OnDeserialized(), Card.Create(), Card.Duplicate(), and SetSize().
|
inline |
Definition at line 371 of file ThingContainer.cs.
References owner, and SetOwner().
Referenced by TraitBaseContainer.OnCreate(), Player.OnCreateGame(), and TraitWrench.Upgrade().
|
inline |
Definition at line 258 of file ThingContainer.cs.
References Thing.isEquipped, Card.IsHotItem, Card.IsPC, owner, and Card.trait.
Referenced by OnAdd(), and RefreshGrid().
Definition at line 377 of file ThingContainer.cs.
References Thing.CanSearchContents, Card.GetRootCard(), Card.invX, Card.invY, Card.IsPC, owner, Card.things, TryStack(), and Card.TryStackTo().
Referenced by Card.AddThing(), InvOwner.OnShiftClick(), and TryStack().
|
staticprivate |
Definition at line 45 of file ThingContainer.cs.
Referenced by GetDest().
Definition at line 43 of file ThingContainer.cs.
Referenced by DestroyAll(), GetFreeGridIndex(), IsOverflowing(), OnAdd(), OnRemove(), and RefreshGrid().
| int ThingContainer.height |
Definition at line 37 of file ThingContainer.cs.
Referenced by ChangeSize(), LayerInventory.CreateContainer(), Card.GetPrice(), SetOwner(), and TraitWrench.Upgrade().
|
static |
Definition at line 31 of file ThingContainer.cs.
Definition at line 28 of file ThingContainer.cs.
Referenced by RefreshGrid().
| Card ThingContainer.owner |
Definition at line 40 of file ThingContainer.cs.
Referenced by _List(), AddCurrency(), GetDest(), IsFull(), SetOwner(), SetSize(), ShouldShowOnGrid(), and TryStack().
| int ThingContainer.width |
Definition at line 34 of file ThingContainer.cs.
Referenced by ChangeSize(), LayerInventory.CreateContainer(), Card.GetPrice(), SetOwner(), and TraitWrench.Upgrade().
|
get |
Definition at line 48 of file ThingContainer.cs.
Referenced by ChangeSize(), IsAlmostFull(), IsFull(), RefreshGrid(), and TraitWrench.Upgrade().
|
get |
Definition at line 51 of file ThingContainer.cs.
Referenced by IsFull(), IsOverflowing(), OnAdd(), and OnRemove().
|
get |
Definition at line 54 of file ThingContainer.cs.
Referenced by IsFull(), and IsOverflowing().
|
get |
Definition at line 57 of file ThingContainer.cs.
Referenced by IsFull(), UIMagicChest.RefreshBottom(), and Zone.TryAddThingInSharedContainer().