コード例 #1
0
 public void Reset()
 {
     this.Client   = null;
     this.FuncType = ESevenDayGoalFuncType.Unknown;
     this.Arg1     = 0;
     this.Arg2     = 0;
     this.Arg3     = 0;
     this.Arg4     = 0;
 }
コード例 #2
0
        public static SevenDayGoalEventObject Alloc(GameClient client, ESevenDayGoalFuncType funcType)
        {
            SevenDayGoalEventObject evObj = null;

            lock (SevenDayGoalEvPool.Mutex)
            {
                if (SevenDayGoalEvPool.freeEvList.Count > 0)
                {
                    evObj = SevenDayGoalEvPool.freeEvList.Dequeue();
                }
            }
            if (evObj == null)
            {
                evObj = new SevenDayGoalEventObject();
            }
            evObj.Reset();
            evObj.Client   = client;
            evObj.FuncType = funcType;
            return(evObj);
        }