Esempio n. 1
0
 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);
            }
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
        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;
        }
Esempio n. 5
0
 public bool HasSchedule()
 {
     return(OnegaiModel.HasSchedule());
 }
 public OnegaiConditionNotificationEntry(OnegaiModel OnegaiModel, OnegaiConditionNotificationState State)
 {
     this.OnegaiModel = OnegaiModel;
     this.State       = State;
 }
Esempio n. 7
0
        public void UnChacheOnegai(OnegaiModel onegaiModel)
        {
            var nearArgs = new NearArgs(onegaiModel.OnegaiConditionArg);

            this.monoInfoIdToOngeais[nearArgs.TargetMonoInfoId].RemoveAll(model => model.Id == onegaiModel.Id);
        }