Riwmorld
Verse.ThingContainer Class Reference
Inheritance diagram for Verse.ThingContainer:
Verse.IExposable

Public Member Functions

 ThingContainer (IThingContainerOwner owner)
 
 ThingContainer (IThingContainerOwner owner, bool oneStackOnly, LookMode contentsLookMode=2)
 
bool CanAcceptAnyOf (Thing item)
 
void Clear ()
 
void ClearAndDestroyContents (DestroyMode mode=0)
 
void ClearAndDestroyContentsOrPassToWorld (DestroyMode mode=0)
 
bool Contains (Thing item)
 
bool Contains (ThingDef def)
 
bool Contains (ThingDef def, int minCount)
 
void ExposeData ()
 
Thing Get (Thing thing, int count)
 
IEnumerator< ThingGetEnumerator ()
 
void Notify_ContainedItemDestroyed (Thing t)
 
void Remove (Thing item)
 
void RemoveAll (Predicate< Thing > match)
 
void ThingContainerTick ()
 
void ThingContainerTickRare ()
 
int TotalStackCountOfDef (ThingDef def)
 
void TransferToContainer (Thing item, ThingContainer otherContainer, int stackCount)
 
void TransferToContainer (Thing item, ThingContainer otherContainer, int stackCount, out Thing resultingTransferredItem)
 
int TryAdd (Thing item, int count)
 
bool TryAdd (Thing item, bool canMergeWithExistingStacks=true)
 
void TryAddMany (IEnumerable< Thing > things)
 
bool TryDrop (Thing thing, IntVec3 dropLoc, Map map, ThingPlaceMode mode, int count, out Thing resultingThing, Action< Thing, int > placedAction=null)
 
bool TryDrop (Thing thing, ThingPlaceMode mode, out Thing lastResultingThing, Action< Thing, int > placedAction=null)
 
bool TryDrop (Thing thing, IntVec3 dropLoc, Map map, ThingPlaceMode mode, out Thing lastResultingThing, Action< Thing, int > placedAction=null)
 
bool TryDropAll (IntVec3 dropLoc, Map map, ThingPlaceMode mode)
 

Public Attributes

IThingContainerOwner owner
 

Properties

int AvailableStackSpace [get]
 
string ContentsString [get]
 
int Count [get]
 
Thing this[int index] [get, set]
 
int TotalStackCount [get]
 

The documentation for this class was generated from the following file: