Struct SpokenTopics
Namespace: OblivionMp.Sdk.Common.Archetypes.Mixins
Assembly: OblivionMp.Sdk.Common.dll
The mod-added dialogue topics a player has spoken.
[ArchetypeMixin]
[Extends(typeof(Player), "Spoken")]
public readonly struct SpokenTopics : IArchetypeMixin, IArchetypeQueryable, IEntityShape
Implements
IArchetypeMixin, IArchetypeQueryable, IEntityShape
Inherited Members
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Properties
TopicsCount
public int TopicsCount { get; }
Property Value
Methods
AddTopics(in SpokenTopicEntry)
[Changes("SpokenTopics.Field.Topics")]
public void AddTopics(in SpokenTopicEntry value)
Parameters
value SpokenTopicEntry
ClearTopics()
[Changes("SpokenTopics.Field.Topics")]
public void ClearTopics()
ContainsTopics(in SpokenTopicEntry)
public bool ContainsTopics(in SpokenTopicEntry value)
Parameters
value SpokenTopicEntry
Returns
GetTopics()
public NativeList<SpokenTopicEntry>.ReadOnly GetTopics()
Returns
NativeList<SpokenTopicEntry>.ReadOnly
GetTopics(int)
public SpokenTopicEntry GetTopics(int index)
Parameters
index int
Returns
SpokenTopicEntry
InsertTopics(int, in SpokenTopicEntry)
[Changes("SpokenTopics.Field.Topics")]
public void InsertTopics(int index, in SpokenTopicEntry value)
Parameters
index int
value SpokenTopicEntry
Keep()
This entity, which it already is: a loop over this shape hands over the shape itself.
public SpokenTopics Keep()
Returns
Remarks
Here so taking something out of a loop reads the same whichever way the loop walks. Whether a shape is walked by chunk follows from what it includes, which the call site cannot see and which changes when an include does.
RemoveAtTopics(int)
[Changes("SpokenTopics.Field.Topics")]
public SpokenTopicEntry RemoveAtTopics(int index)
Parameters
index int
Returns
SpokenTopicEntry
SetTopics(in NativeList<SpokenTopicEntry>)
[Changes("SpokenTopics.Field.Topics")]
public void SetTopics(in NativeList<SpokenTopicEntry> value)
Parameters
value NativeList<SpokenTopicEntry>
SetTopics(int, in SpokenTopicEntry)
[Changes("SpokenTopics.Field.Topics")]
public void SetTopics(int index, in SpokenTopicEntry value)
Parameters
index int
value SpokenTopicEntry