|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- unit uTOverCostActionArg;
-
- interface
-
- type
- TOverCostActionArg = class
- private
- FActionType: Integer;
- FTimeTick: Int64;
- FWorkerId: Word;
- FOverCostCountInOneTerm: Integer;
- FGenCountInOneTerm: Integer;
- FTermIndex: Integer;
- public
- /// <summary>
- /// ¼
- /// 1-ʼ2-8-Ư
- /// </summary>
- property ActionType: Integer read FActionType write FActionType default 0;
- /// <summary>
- /// ʱ
- /// </summary>
- property TimeTick: Int64 read FTimeTick write FTimeTick;
- /// <summary>
- ///
- /// </summary>
- property WorkerId: Word read FWorkerId write FWorkerId;
- /// <summary>
- /// ƯƼ
- /// </summary>
- property OverCostCountInOneTerm: Integer read FOverCostCountInOneTerm write FOverCostCountInOneTerm default 0;
- /// <summary>
- /// ƯڼID
- /// </summary>
- property GenCountInOneTerm: Integer read FGenCountInOneTerm write FGenCountInOneTerm default 0;
- /// <summary>
- /// Ư
- /// </summary>
- property TermIndex: Integer read FTermIndex write FTermIndex default 0;
-
- constructor Create(const WorkerId: Word; const TimeTick: Int64; const ActionType: Integer = 0;
- const OverCostCountInOneTerm: Integer = 0; const GenCountWhenOverCost: Integer = 0;
- const Index: Integer = 0); overload;
- end;
-
- implementation
-
- { TOverCostActionArg }
-
- constructor TOverCostActionArg.Create(const WorkerId: Word; const TimeTick: Int64; const ActionType: Integer;
- const OverCostCountInOneTerm: Integer; const GenCountWhenOverCost: Integer; const Index: Integer);
- begin
- FWorkerId := WorkerId;
- FTimeTick := TimeTick;
- FActionType := ActionType;
- FOverCostCountInOneTerm := OverCostCountInOneTerm;
- FGenCountInOneTerm := GenCountWhenOverCost;
- FTermIndex := Index;
- end;
-
- end.
|