public void UnChacheOnegai(OnegaiModel onegaiModel) { if (onegaiModel.OnegaiCondition == OnegaiCondition.Near) { this.nearOnegaiMediater.UnChacheOnegai(onegaiModel); } }
public void PushNotification(OnegaiModel onegaiModel, OnegaiConditionNotificationState state) { var entry = new OnegaiConditionNotificationEntry(onegaiModel, state); if (this.IsShow()) { this.entryQueue.Enqueue(entry); } else { this.ShowByEntry(entry); } }
public void ChacheOnegai(OnegaiModel onegaiModel) { var nearArgs = new NearArgs(onegaiModel.OnegaiConditionArg); if (!this.monoInfoIdToOngeais.ContainsKey(nearArgs.TargetMonoInfoId)) { this.monoInfoIdToOngeais[nearArgs.TargetMonoInfoId] = new List <OnegaiModel>(); } if (this.monoInfoIdToOngeais[nearArgs.TargetMonoInfoId].Contains(onegaiModel)) { return; } this.monoInfoIdToOngeais[nearArgs.TargetMonoInfoId].Add(onegaiModel); }
public PlayerOnegaiModel( uint id, OnegaiModel onegaiModel, string onegaiState, float startOnegaiTime) { this.Id = id; this.OnegaiModel = onegaiModel; this.OnegaiState = OnegaiState.Lock; if (Enum.TryParse(onegaiState, out OnegaiState outOnegaiState)) { this.OnegaiState = outOnegaiState; } this.StartOnegaiTime = startOnegaiTime; }
public bool HasSchedule() { return(OnegaiModel.HasSchedule()); }
public OnegaiConditionNotificationEntry(OnegaiModel OnegaiModel, OnegaiConditionNotificationState State) { this.OnegaiModel = OnegaiModel; this.State = State; }
public void UnChacheOnegai(OnegaiModel onegaiModel) { var nearArgs = new NearArgs(onegaiModel.OnegaiConditionArg); this.monoInfoIdToOngeais[nearArgs.TargetMonoInfoId].RemoveAll(model => model.Id == onegaiModel.Id); }