void INotifyFreighterAction.Harvested(Actor self, DrResourceType resource) { var sequence = wsb.NormalizeSequence(self, Info.HarvestSequence); if (wsb.DefaultAnimation.HasSequence(sequence) && wsb.DefaultAnimation.CurrentSequence.Name != sequence) { wsb.PlayCustomAnimation(self, sequence); } }
public void AcceptResource(Actor self, DrResourceType type) { if (!contents.ContainsKey(type.Info)) { contents[type.Info] = 1; } else { contents[type.Info]++; } UpdateCondition(self); }