コード例 #1
0
ファイル: card.go プロジェクト: wzshiming/ygo_core
func (ca *Card) String() string {
	if ca.GetLevel() == 0 {
		return ffmt.Sputs(map[string]interface{}{
			"Base":  *ca.baseOriginal,
			"Pos":   ca.place,
			"Expre": ca.le,
		})
	}
	return ffmt.Sputs(map[string]interface{}{
		"Curr":  ca.appendOriginal,
		"Pos":   ca.place,
		"Expre": ca.le,
	})
}
コード例 #2
0
ファイル: original.go プロジェクト: wzshiming/ygo_core
func (co CardOriginal) String() string {
	if co.Level != 0 {
		return ffmt.Sputs(map[string]interface{}{
			"Name": co.Name,
			"Id":   co.Id,
			"Pwd":  co.Password,
			"Type": co.Lt,
			"Arrt": co.La,
			"Race": co.Lr,
			"Lv":   co.Level,
			"Atk":  co.Atk,
			"Def":  co.Def,
		})
	} else {
		return ffmt.Sputs(map[string]interface{}{
			"Name": co.Name,
			"Id":   co.Id,
			"Pwd":  co.Password,
			"Type": co.Lt,
		})
	}
}
コード例 #3
0
ファイル: export.go プロジェクト: wzshiming/base
func INFO(v ...interface{}) {
	printf(info, ffmt.Sputs(v...))
}