22 lines
389 B
Go
22 lines
389 B
Go
package logic
|
|
|
|
type FightLog struct {
|
|
FightBase FightBase
|
|
Commands []interface{}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 清理机制
|
|
/// </summary>
|
|
func (this *FightLog) Clear() {
|
|
this.Commands = make([]interface{}, 0)
|
|
}
|
|
|
|
/// <summary>
|
|
/// 增加战报日志
|
|
/// </summary>
|
|
/// <param name="log"></param>
|
|
func (this *FightLog) AddCommand(log interface{}) {
|
|
this.Commands = append(this.Commands, log)
|
|
}
|