Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ApplyChangeAction()

void System.Data.Index.ApplyChangeAction ( int record,
int action,
int changeRecord )
inlineprivate

Definition at line 236 of file Index.cs.

237 {
238 if (action == 0)
239 {
240 return;
241 }
242 if (action > 0)
243 {
244 if (AcceptRecord(record))
245 {
247 }
248 }
249 else if (_comparison != null && -1 != record)
250 {
252 }
253 else
254 {
256 }
257 }
int GetIndex(int record)
Definition Index.cs:371
bool AcceptRecord(int record)
Definition Index.cs:153
void DeleteRecord(int recordIndex)
Definition Index.cs:346
int InsertRecord(int record, bool fireEvent)
Definition Index.cs:690
readonly Comparison< DataRow > _comparison
Definition Index.cs:36

References System.Data.Index._comparison, System.Data.Index.AcceptRecord(), System.action, System.Data.Index.DeleteRecord(), System.Data.Index.GetIndex(), and System.Data.Index.InsertRecord().

Referenced by System.Data.Index.RecordStateChanged(), and System.Data.Index.RecordStateChanged().