Elin Decompiled Documentation EA 23.102 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 | 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) |
int | GetCurrency (string id, ref int sum, SourceMaterial.Row mat=null) |
List< Thing > | ListCurrency (string id) |
List< Thing > | List (Func< Thing, bool > func, bool onlyAccessible=false) |
void | _List (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) |
![]() | |
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 (string id) |
Static Private Attributes | |
static List< ThingContainer > | _listContainers = new List<ThingContainer>() |
static List< Thing > | tempList = new List<Thing>() |
Definition at line 6 of file ThingContainer.cs.
|
inline |
Definition at line 820 of file ThingContainer.cs.
References _List(), ActPlan.List.Add(), Trait.CanSearchContent, owner, tempList, Card.things, and Card.trait.
|
inlineprivate |
Definition at line 796 of file ThingContainer.cs.
References _ListCurrency(), ActPlan.List.Add(), Thing.CanSearchContents, Card.id, tempList, and Card.things.
Referenced by _ListCurrency(), and ListCurrency().
|
inline |
Definition at line 529 of file ThingContainer.cs.
References Card.AddThing(), Card.ChangeMaterial(), ThingGen.Create(), Card.id, ListCurrency(), Card.material, Card.ModNum(), Card.Num, owner, Card.SetNum(), and tempList.
Referenced by Card.ModCurrency(), and LayerGachaResult.PlayGacha().
|
inline |
Definition at line 838 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 396 of file ThingContainer.cs.
References Thing.CanStackTo().
Referenced by GetDest(), IsFull(), InvOwner.OnShiftClick(), and Zone.TryAddThingInSharedContainer().
|
inline |
Definition at line 83 of file ThingContainer.cs.
References Debug, GridSize, height, RefreshGrid(), and width.
|
inline |
Definition at line 562 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(), SerializedCards.Restore(), and Zone.SpawnLostItems().
Definition at line 640 of file ThingContainer.cs.
References Thing.CanSearchContents, Find(), and Card.things.
|
inline |
Definition at line 581 of file ThingContainer.cs.
References Thing.CanSearchContents, Find(), Card.things, and Card.uid.
Referenced by AM_Adv._OnUpdateInput(), TraitGodStatue._OnUse(), DropdownGrid.BuildIngredients(), QuestCraft.CanDeliverToClient(), QuestLoytelFarm.CanUpdateOnTalk(), DramaOutcome.chara_hired_ticket(), DramaOutcome.check_sketch(), LayerInventory.CreateBuy(), FactionBranch.DailyOutcome(), Chara.Die(), Find(), Find< T >(), Chara.FindAmmo(), CoreDebug.Fix_LostCore(), DramaOutcome.give_sketch_special(), Chara.GiveGift(), DramaOutcome.guild_mageTrial(), Chara.MakeGrave(), Trait.OnBarter(), ShopTransaction.OnEndTransaction(), ConSleep.OnRemoved(), ConWrath.OnRemoved(), DramaManager.ParseLine(), HotItemActionSleep.Perform(), HotItemEQSet.Perform(), LayerGacha.PlayGacha(), CoreDebug.QuickStart(), UIRecipeInfo.Refresh(), LayerQuestBoard.RefreshHire(), Recipe.Ingredient.RefreshThing(), Card.RemoveBacker(), 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 669 of file ThingContainer.cs.
References Thing.CanSearchContents, Find(), Card.id, Card.material, and Card.things.
|
inline |
Definition at line 664 of file ThingContainer.cs.
References Find(), SourceManager.materials, and EClass.sources.
|
inline |
T | : | Trait |
Definition at line 605 of file ThingContainer.cs.
References Thing.CanSearchContents, Find(), Card.things, and Card.trait.
T | : | Trait |
Definition at line 629 of file ThingContainer.cs.
References List(), tempList, and Card.trait.
|
inline |
Definition at line 693 of file ThingContainer.cs.
References Card.Add(), Trait.CanBeStolen, Card.HasTag(), Card.IsContainer, and Card.trait.
Referenced by AI_Steal.Run().
|
inline |
Definition at line 859 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(), WidgetSearch.Search(), Trait.TryRefuel(), LayerInventory.TryShowGuide(), and GoalAutoCombat.TryUseRanged().
|
inline |
Definition at line 873 of file ThingContainer.cs.
References Thing.CanSearchContents, Foreach(), and Card.things.
|
inline |
Definition at line 769 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 410 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 344 of file ThingContainer.cs.
References grid.
Referenced by IsFull(), OnAdd(), and RefreshGrid().
|
inline |
Definition at line 744 of file ThingContainer.cs.
References SourceManager.cards, GetThingStack(), SourceCard.map, and EClass.sources.
|
inline |
Definition at line 719 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 751 of file ThingContainer.cs.
References ThingStack.Add(), Thing.CanSearchContents, GetThingStack(), Card.id, Thing.source, and Card.things.
|
inline |
Definition at line 726 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 290 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(), 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 516 of file ThingContainer.cs.
References CanStack(), GetDest(), IsFull(), and ThingContainer.DestData.IsValid.
|
inline |
Definition at line 244 of file ThingContainer.cs.
References Card.invX, and Card.invY.
Referenced by InvOwner.PutBack().
|
inline |
Definition at line 319 of file ThingContainer.cs.
References grid, HasGrid, Card.invY, Thing.isEquipped, and IsMagicChest.
Referenced by InvOwner.ListInteractions().
Definition at line 813 of file ThingContainer.cs.
References _List(), and tempList.
Referenced by DramaCustomSequence.Build(), ZonePreEnterEncounter.Execute(), FindBest< T >(), TraitPainter.GetCanvas(), TaskDig.GetTreasureMap(), QuestDeliver.ListDestThing(), Player.OnAdvanceHour(), AM_Adv.OnBecomeNoGoal(), ContentCodex.OnClickAddCards(), Game.OnLoad(), AI_Fish.ProgressFish.OnProgressComplete(), TraitScrollStatic.OnRead(), ConSleep.OnRemoved(), UI.OpenFloatInv(), AI_Idle.Run(), ButtonAbility.SpecialHoldAction(), Zone.TryListThingsInSpot< T >(), and LayerDragGrid.TryProc().
Definition at line 789 of file ThingContainer.cs.
References _ListCurrency(), and tempList.
Referenced by AddCurrency().
|
inline |
Definition at line 277 of file ThingContainer.cs.
References GetFreeGridIndex(), grid, HasGrid, and ShouldShowOnGrid().
Referenced by Card.AddThing().
|
inline |
Definition at line 356 of file ThingContainer.cs.
References grid, HasGrid, and Card.invY.
Referenced by Card.RemoveThing().
|
inline |
Definition at line 108 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 146 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 92 of file ThingContainer.cs.
References Card.IsContainer, RefreshGrid(), RefreshGridRecursive(), and Card.things.
Referenced by Game.OnLoad(), and RefreshGridRecursive().
|
inline |
Definition at line 71 of file ThingContainer.cs.
References height, owner, and width.
Referenced by Card._OnDeserialized(), Card.Create(), Card.Duplicate(), and SetSize().
|
inline |
Definition at line 368 of file ThingContainer.cs.
References owner, and SetOwner().
Referenced by TraitBaseContainer.OnCreate(), Player.OnCreateGame(), and TraitWrench.Upgrade().
|
inline |
Definition at line 260 of file ThingContainer.cs.
References Thing.isEquipped, Card.IsHotItem, Card.IsPC, owner, and Card.trait.
Referenced by OnAdd(), and RefreshGrid().
Definition at line 374 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().
Definition at line 47 of file ThingContainer.cs.
Referenced by _List(), _ListCurrency(), AddCurrency(), FindBest< T >(), List(), and ListCurrency().
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 50 of file ThingContainer.cs.
Referenced by ChangeSize(), IsFull(), RefreshGrid(), and TraitWrench.Upgrade().
|
get |
Definition at line 53 of file ThingContainer.cs.
Referenced by IsFull(), IsOverflowing(), OnAdd(), and OnRemove().
|
get |
Definition at line 56 of file ThingContainer.cs.
Referenced by IsFull(), and IsOverflowing().
|
get |
Definition at line 59 of file ThingContainer.cs.
Referenced by IsFull(), UIMagicChest.RefreshBottom(), and Zone.TryAddThingInSharedContainer().