package logic type FightLog struct { FightBase FightBase Commands []interface{} } /// /// 清理机制 /// func (this *FightLog) Clear() { this.Commands = make([]interface{}, 0) } /// /// 增加战报日志 /// /// func (this *FightLog) AddCommand(log interface{}) { this.Commands = append(this.Commands, log) }