Raids¶
Clan Capital raid weekend logs, districts, attacks, and member totals.
Raid Log Entry¶
struct clashy.RaidLogEntry
RaidLogEntry is one Clan Capital raid weekend log entry.
DestroyedDistrictCount¶
int json: enemyDistrictsDestroyed
DestroyedDistrictCount is the number of enemy districts destroyed.
Raid Clan¶
struct clashy.RaidClan
RaidClan describes one opposing clan entry in a raid attack or defense log.
Attack log entries use Attacker for the clan being attacked by the requested clan. Defense log entries use Defender for the clan that attacked the requested clan.
DestroyedDistrictCount¶
int json: districtsDestroyed
DestroyedDistrictCount is the number of districts destroyed.
Attacker¶
*struct {
Tag string `json:"tag,omitempty"`
Name string `json:"name,omitempty"`
Level int `json:"level,omitempty"`
} json: attacker
Attacker is set on attack-log entries.
Defender¶
*struct {
Tag string `json:"tag,omitempty"`
Name string `json:"name,omitempty"`
Level int `json:"level,omitempty"`
} json: defender
Defender is set on defense-log entries.
Raid District¶
struct clashy.RaidDistrict
RaidDistrict describes one district in a raid attack or defense log.
Destruction¶
float64 json: destructionPercent
Destruction is the final destruction percentage for the district.
Raid Attack¶
struct clashy.RaidAttack
RaidAttack is one attack against a Clan Capital district.
Destruction¶
float64 json: destructionPercent
Destruction is the destruction percentage earned by this district attack.
Raid Member¶
struct clashy.RaidMember
RaidMember is one clan member's contribution in a raid weekend.
BonusAttackLimit¶
int json: bonusAttackLimit
BonusAttackLimit is the number of bonus attacks available.
CapitalResourcesLooted¶
int json: capitalResourcesLooted
CapitalResourcesLooted is the capital gold looted by the member.
Capital District¶
struct clashy.CapitalDistrict
CapitalDistrict describes a clan capital district from clan and raid data.
DestructionPercent¶
float64 json: destructionPercent
DestructionPercent is the destruction percentage in raid contexts.
Raid Log Entry Methods¶
clashy.RaidLogEntry.GetMember(tag: string) -> *RaidMember
GetMember returns the raid member with the provided tag.
- Parameters:
-
tag (
string)
- Return type:
-
*RaidMember
Raid Clan Methods¶
clashy.RaidClan.Level() -> int
Level returns the attacker or defender clan level for this raid clan entry.
- Return type:
-
int
clashy.RaidClan.Name() -> string
Name returns the attacker or defender name for this raid clan entry.
- Return type:
-
string
clashy.RaidClan.Tag() -> string
Tag returns the attacker or defender tag for this raid clan entry.
- Return type:
-
string