public void SetStat(Stat stat, int val, bool sync) { stats[stat] = val; OnStatChanged(stat, val); if (sync) { UpdateObservedObjects(); foreach (var item in UsersManager.GetUsers(Observed)) { PacketsSender.SetStat(item.Value, ObjectId, stat, val); } } }
private void P_OnStatChanged(Stat arg1, int arg2) { PacketsSender.SetStat(this, ObjectRefId, arg1, arg2); }