Versions in this module Expand all Collapse all v1 v1.0.1 Nov 25, 2020 Changes in this version + const Att_Block + const Att_Broken + const Att_DmgDec + const Att_DmgInc + const Att_Dodge + const Att_Hit + const Att_Rage + const AuraFlagNum + const AuraRemoveMode_Removed + const Aura_HeroSyncNum + const Aura_MaxDuration + const Aura_MaxPassive + const ChooseUnit_Begin + const ChooseUnit_Caster + const ChooseUnit_End + const ChooseUnit_Owner + const ChooseUnit_Target + const Combat_DmgModTypeNum + const Combat_MaxAura + const Combat_MaxSpell + const EffectTargetLimit_Begin + const EffectTargetLimit_Caster_AuraPN + const EffectTargetLimit_Caster_AuraState + const EffectTargetLimit_Caster_HP_Low + const EffectTargetLimit_Caster_State + const EffectTargetLimit_End + const EffectTargetLimit_Null + const EffectTargetLimit_Pct + const EffectTargetLimit_Self + const EffectTargetLimit_Target_Aura + const EffectTargetLimit_Target_AuraNot + const EffectTargetLimit_Target_AuraPN + const EffectTargetLimit_Target_AuraState + const EffectTargetLimit_Target_GT_Level + const EffectTargetLimit_Target_HP_High + const EffectTargetLimit_Target_HP_Low + const EffectTargetLimit_Target_LT_Level + const EffectTargetLimit_Target_Race + const EffectTargetLimit_Target_State + const EffectTargetLimit_UnSelf + const EnterCombatType_Begin + const EnterCombatType_End + const EnterCombatType_None + const EnterCombatType_TargetCombat + const EnterCombatType_TargetHit + const ImmunityType_Begin + const ImmunityType_Damage + const ImmunityType_Dispel + const ImmunityType_End + const ImmunityType_Mechanic + const MaxChargeNum + const MaxFormSpellNum + const Plugin_Rune + const Scene_MaxNumPerCombat + const Scene_MaxUnitPerScene + const Scene_TypeArena + const Scene_TypeBegin + const Scene_TypeEnd + const Scene_TypeStage + const SnowFlake_Scene + const SpellCostType_Begin + const SpellCostType_End + const SpellCostType_HP + const SpellCostType_MP + const SpellCostType_Null + const SpellEffectNum + const SpellEffectParamNum + const SpellPurposeMask_Begin + const SpellPurposeMask_Negative + const SpellPurposeMask_None + const SpellPurposeMask_Positive + const SpellValue_Begin + const SpellValue_FLAT + const SpellValue_MASK + const SpellValue_PCT + const StoreType_Account + const StoreType_Begin + const StoreType_Blade + const StoreType_End + const StoreType_Hero + const StoreType_Item + const StoreType_LitePlayer + const StoreType_Player + const StoreType_Rune + const StoreType_Talent + const StoreType_Token + const StoreType_User + const TargetChooseType_Area + const TargetChooseType_Begin + const TargetChooseType_End + const TargetChooseType_Null + const TargetChooseType_SingleTarget + var Combat_DmgModType = [Combat_DmgModTypeNum]EAuraEffectType + var ErrSpellCasterCostLimit = errors.New("spell caster cost limit") + var ErrSpellCasterStateLimit = errors.New("spell caster state limit") + var ErrSpellCooldown = errors.New("spell cool down") + var ErrSpellTargetInvalid = errors.New("spell target invalid") + var ErrSpellTargetNotExist = errors.New("spell target not exist") + var ErrSpellTargetStateLimit = errors.New("spell target state limit") + func SpellLevel(id uint32) uint32 + func SpellType(id uint32) uint32 type AttEntry + Block int64 + Broken int64 + DmgDec int64 + DmgInc int64 + Dodge int64 + Hit int64 + Rage int64 + type AuraEntry struct + AuraCastType EAuraCastingType + AuraState int32 + DecByTarget bool + DependCaster bool + DispelFlags uint32 + Duration int32 + DurationFlags uint32 + EffectPriority int32 + EffectTimes int32 + Effects [SpellEffectNum]EAuraEffectType + MultiWrap bool + OwnerStateCheckBitSet *bitset.BitSet + OwnerStateCheckFlag uint32 + OwnerStateLimit uint32 + OwnerStateLimitBitSet *bitset.BitSet + RemoveEffect [SpellEffectNum]uint32 + RoundUpdateMask uint32 + TriggerCd [SpellEffectNum]int32 + TriggerCount [SpellEffectNum]uint32 + TriggerId [SpellEffectNum]uint32 + type AuraInfo struct + AuraID uint32 + CasterID int64 + CurTime int32 + TotalTime int32 + WrapTimes uint32 + type AuraTriggerEntry struct + AddHead bool + ConditionMisc1 int32 + ConditionMisc2 int32 + ConditionType EAuraEventConditionType + DmgInfoType uint32 + EventProp int32 + FamilyMask uint32 + FamilyRace EHeroRaceType + ID uint32 + SchoolType ESchoolType + SpellId uint32 + SpellTypeMask uint32 + TriggerMisc1 uint32 + TriggerMisc2 uint32 + TriggerType EAuraTriggerType + type EAttackType int32 + const AttackType_Begin + const AttackType_End + const AttackType_Magic + const AttackType_Melee + type EAuraAddResult int32 + const AuraAddResult_Begin + const AuraAddResult_End + const AuraAddResult_Full + const AuraAddResult_Immunity + const AuraAddResult_Inferior + const AuraAddResult_Null + const AuraAddResult_Resistance + const AuraAddResult_Success + type EAuraCastingType int32 + const AuraCasting_Begin + const AuraCasting_End + const AuraCasting_Inter + const AuraCasting_Persist + const AuraCasting_Times + type EAuraEffectForDmg int32 + const AuraEffectForDmg_Absorb + const AuraEffectForDmg_Begin + const AuraEffectForDmg_End + const AuraEffectForDmg_Null + const AuraEffectForDmg_Transform + const AuraEffectForDmg_ValueMod + type EAuraEffectStep int32 + const AuraEffectStep_Apply + const AuraEffectStep_Begin + const AuraEffectStep_Check + const AuraEffectStep_Effect + const AuraEffectStep_Remove + const AuraEffect_End + type EAuraEffectType int32 + const AuraEffectType_AbsorbAllDmg + const AuraEffectType_Begin + const AuraEffectType_ChgMelee + const AuraEffectType_DmgAccumulate + const AuraEffectType_DmgAttMod + const AuraEffectType_DmgFix + const AuraEffectType_DmgMod + const AuraEffectType_End + const AuraEffectType_Immunity + const AuraEffectType_LimitAttack + const AuraEffectType_MeleeSpell + const AuraEffectType_ModAtt + const AuraEffectType_ModAttByAlive + const AuraEffectType_ModAttByEnemyAlive + const AuraEffectType_NewDmg + const AuraEffectType_Null + const AuraEffectType_PerioHeal + const AuraEffectType_PeriodDamage + const AuraEffectType_Shield + const AuraEffectType_Spell + const AuraEffectType_State + type EAuraEventConditionType int32 + const AuraEventCondition_AllUnitState + const AuraEventCondition_AnyUnitState + const AuraEventCondition_AuraState + const AuraEventCondition_Begin + const AuraEventCondition_End + const AuraEventCondition_HPHigherFlat + const AuraEventCondition_HPHigherPct + const AuraEventCondition_HPLowerFlat + const AuraEventCondition_HPLowerPct + const AuraEventCondition_HaveShield + const AuraEventCondition_None + const AuraEventCondition_StrongTarget + const AuraEventCondition_TargetAllUnitState + const AuraEventCondition_TargetAnyUnitState + const AuraEventCondition_TargetAuraState + const AuraEventCondition_TargetClass + const AuraEventCondition_WeaponMask + type EAuraEventExType int32 + type EAuraEventType int32 + const AuraEventEx_Absorb + const AuraEventEx_Begin + const AuraEventEx_Block + const AuraEventEx_Critical_Hit + const AuraEventEx_Dodge + const AuraEventEx_End + const AuraEventEx_EnergyResume + const AuraEventEx_GroupDmg + const AuraEventEx_IgnoreArmor + const AuraEventEx_Immnne + const AuraEventEx_Internal_Cant_Trigger + const AuraEventEx_Internal_Triggered + const AuraEventEx_Invalid + const AuraEventEx_Killed + const AuraEventEx_Miss + const AuraEventEx_Normal_Hit + const AuraEventEx_Not_Active_Spell + const AuraEventEx_Null + const AuraEventEx_Only_Active_Spell + const AuraEventEx_RageResume + const AuraEventEx_Trigger_Always + const AuraEventEx_UnDead + const AuraEvent_Begin + const AuraEvent_Hit + const AuraEvent_Kill + const AuraEvent_Killed + const AuraEvent_None + const AuraEvent_On_Do_Periodic + const AuraEvent_On_Take_Periodic + const AuraEvent_Pet_Hit + const AuraEvent_Rage_Hit + const AuraEvent_Rune_Hit + const AuraEvent_Taken_Any_Damage + const AuraEvent_Taken_Aura_Trigger + const AuraEvent_Taken_Hit + const AuraEvent_Taken_Pet_Hit + const AuraEvent_Taken_RageHit + const AuraEvent_Taken_Rune_Hit + const EAET_End + type EAuraRemoveMode int32 + const AuraRemoveMode_Begin + const AuraRemoveMode_Cancel + const AuraRemoveMode_Consume + const AuraRemoveMode_Default + const AuraRemoveMode_Delete + const AuraRemoveMode_Destroy + const AuraRemoveMode_Dispel + const AuraRemoveMode_End + const AuraRemoveMode_Hangup + const AuraRemoveMode_Interrupt + const AuraRemoveMode_Null + const AuraRemoveMode_Registered + const AuraRemoveMode_Replace + const AuraRemoveMode_Running + type EAuraSlotGroup int32 + const AuraSlotGroup_Begin + const AuraSlotGroup_End + const AuraSlotGroup_Negative + const AuraSlotGroup_Passive + const AuraSlotGroup_Positive + type EAuraSyncStep int32 + const AuraSyncStep_Add + const AuraSyncStep_Begin + const AuraSyncStep_End + const AuraSyncStep_Remove + const AuraSyncStep_Update + type EAuraTriggerType int32 + const AuraTrigger_AuraState + const AuraTrigger_Begin + const AuraTrigger_Behaviour + const AuraTrigger_End + const AuraTrigger_SpellResult + const AuraTrigger_State + type EAuraWrapResult int32 + const AuraWrapResult_Add + const AuraWrapResult_Begin + const AuraWrapResult_End + const AuraWrapResult_Invalid + const AuraWrapResult_Replace + const AuraWrapResult_Wrap + type EBehaviourType int32 + const BehaviourType_BeforeMelee + const BehaviourType_Begin + const BehaviourType_End + const BehaviourType_Null + const BehaviourType_SpellFinish + const BehaviourType_Start + type EChooseUnitType int32 + type EDmgInfoType int32 + const DmgInfo_AverageHP + const DmgInfo_Begin + const DmgInfo_Damage + const DmgInfo_End + const DmgInfo_Enrage + const DmgInfo_Heal + const DmgInfo_Null + const DmgInfo_Placate + type EEffectTargetLimitType int32 + type EEnterCombatType int32 + type EHeroRaceType int32 + const HeroRace_Begin + const HeroRace_End + const HeroRace_Kindom + const HeroRace_forest + type EHeroState int32 + const HeroState_Anger + const HeroState_AntiHidden + const HeroState_Begin + const HeroState_Chaos + const HeroState_Dead + const HeroState_DoubleAttack + const HeroState_End + const HeroState_Fire + const HeroState_Freeze + const HeroState_ImmunityGroupDmg + const HeroState_Injury + const HeroState_Paralyzed + const HeroState_Poison + const HeroState_Seal + const HeroState_Solid + const HeroState_Stealth + const HeroState_Stun + const HeroState_Taunt + const HeroState_UnBeat + const HeroState_UnDead + type EImmunityType int32 + type ESchoolType int32 + const SchoolType_Begin + const SchoolType_End + const SchoolType_Magic + const SchoolType_Null + const SchoolType_Physics + type ESelectTargetType int32 + const SelectTarget_Begin + const SelectTarget_Caster_Max_Attack + const SelectTarget_End + const SelectTarget_Enemy_All + const SelectTarget_Enemy_Backline_Random + const SelectTarget_Enemy_Column + const SelectTarget_Enemy_Frontline + const SelectTarget_Enemy_Frontline_Random + const SelectTarget_Enemy_HP_Max + const SelectTarget_Enemy_HP_Min + const SelectTarget_Enemy_Rage_Max + const SelectTarget_Enemy_Random + const SelectTarget_Enemy_Rune + const SelectTarget_Enemy_Single + const SelectTarget_Enemy_Single_Back + const SelectTarget_Enemy_Supporter + const SelectTarget_Friend_All + const SelectTarget_Friend_Backline_Random + const SelectTarget_Friend_Frontline_Random + const SelectTarget_Friend_HP_Min + const SelectTarget_Friend_Rage_Min + const SelectTarget_Friend_Random + const SelectTarget_Friend_Rune + const SelectTarget_Next_Attack + const SelectTarget_Next_Attack_Border + const SelectTarget_Next_Attack_Column + const SelectTarget_Next_Attack_Explode + const SelectTarget_Next_Attack_Row + const SelectTarget_Null + const SelectTarget_Self + const SelectTarget_Target_Max_Attack + type ESpellCastType int32 + const SpellCast_Begin + const SpellCast_Channel + const SpellCast_End + const SpellCast_Instant + const SpellCast_Melee + type ESpellCostType int32 + type ESpellEffectModType int32 + const SpellEffectMod_Begin + const SpellEffectMod_CategoryCooldown + const SpellEffectMod_Charge + const SpellEffectMod_Cooldown + const SpellEffectMod_Cost + const SpellEffectMod_CritDmgPct + const SpellEffectMod_Crit_Pct + const SpellEffectMod_DmgPct + const SpellEffectMod_Duration + const SpellEffectMod_EffectPct + const SpellEffectMod_EffectTimes + const SpellEffectMod_End + const SpellEffectMod_Hit + const SpellEffectMod_IgnoreCasterStateCheck + const SpellEffectMod_Not_Delay + const SpellEffectMod_PassiveDuration + const SpellEffectMod_Prepare_Time + const SpellEffectMod_Radius + const SpellEffectMod_Range + const SpellEffectMod_Threat + type ESpellEffectType int32 + const SpellEffectType_AddAura + const SpellEffectType_AddLevelAura + const SpellEffectType_AddStateAura + const SpellEffectType_AddWrapAura + const SpellEffectType_AuraNumDmg + const SpellEffectType_AverageHP + const SpellEffectType_Begin + const SpellEffectType_CastSpell + const SpellEffectType_CasterAttDamage + const SpellEffectType_ChangeRageSpell + const SpellEffectType_Damage + const SpellEffectType_DamageRaceMod + const SpellEffectType_Dispel + const SpellEffectType_DispelAndWeak + const SpellEffectType_End + const SpellEffectType_Enrage + const SpellEffectType_Heal + const SpellEffectType_LevelEnrage + const SpellEffectType_ModAuraDuration + const SpellEffectType_ModPctCurHP + const SpellEffectType_Null + const SpellEffectType_PetDamage + const SpellEffectType_PetHeal + const SpellEffectType_Placate + const SpellEffectType_RandAura + const SpellEffectType_TargetAttDamage + type ESpellPurposeMaskType int32 + type ESpellStateType int32 + const SpellState_Begin + const SpellState_Casting + const SpellState_End + const SpellState_Finish + const SpellState_Idle + const SpellState_Prepare + type ESpellType int32 + const SpellType_Begin + const SpellType_End + const SpellType_Melee + const SpellType_Null + const SpellType_Rage + const SpellType_Rune + const SpellType_TriggerAura + const SpellType_TriggerAuraTwice + const SpellType_TriggerBeatBack + const SpellType_TriggerMelee + const SpellType_TriggerNull + const SpellType_TriggerRage + const SpellType_TriggerRune + type ESpellValueType int32 + type EStateChangeMode int32 + const StateChangeMode_Add + const StateChangeMode_Begin + const StateChangeMode_End + const StateChangeMode_Remove + type ETargetChooseType int32 + type SceneEntry struct + ID int32 + Name string + Type int32 + UnitGroupID int32 + type SpellBase struct + AmountEffects [SpellEffectNum]int32 + BasePoints [SpellEffectNum]int32 + FamilyMask uint32 + FamilyRace EHeroRaceType + HaveVisual bool + ID uint32 + LevelPoints [SpellEffectNum]int32 + MechanicFlags uint32 + MiscID [SpellEffectNum]uint32 + MiscType1 [SpellEffectNum]int32 + MiscType2 [SpellEffectNum]int32 + MiscValue1 [SpellEffectNum]int32 + MiscValue2 [SpellEffectNum]int32 + MiscValue3 [SpellEffectNum]int32 + Multiple [SpellEffectNum]int32 + Passive bool + SchoolType ESchoolType + type SpellCDData struct + CDTime float32 + Entry *SpellEntry + type SpellEntry struct + BeatBack bool + CanNotArmor bool + CasterAuraState uint32 + CasterAuraStateNot uint32 + CasterStateCheckFlag uint64 + CasterStateLimit uint64 + DecayLevel int32 + DecayRate int32 + Effects [SpellEffectNum]ESpellEffectType + EffectsLimitRaceMod [SpellEffectNum]uint32 + EffectsMechanic [SpellEffectNum]uint32 + EffectsRaceLimit [SpellEffectNum]uint32 + EffectsTargetLimit [2][SpellEffectNum]uint32 + EffectsValidMiscValue [2][SpellEffectNum]uint32 + EnergyCost int32 + GroupDmg bool + HitCertainly bool + IncludeSelf bool + NotBlock bool + NotCrit bool + PurposeTypeMask uint32 + RoundCastMask uint32 + RuneCD int32 + SelectType ESelectTargetType + SpellBroken int32 + SpellCrit int32 + SpellHit int32 + TargetAuraState uint32 + TargetAuraStateNot uint32 + TargetNum int32 + TargetRace uint32 + TargetStateCheckFlag uint64 + TargetStateLimit uint64 + TriggerSpellId uint32 + TriggerSpellProp int32 + type UnitEntry struct + AttrName []string + AttrValue []int64 + ID int32 + Race int32 + type UnitGroupEntry struct + ID int32 + Name string + Position []string + UnitTypeID []int32 v1.0.0 May 18, 2020 Changes in this version + const Account_MemExpire + const Account_OnlineTimeout + const Att_Agl + const Att_Atk + const Att_AtkPercent + const Att_AtkSpeed + const Att_Begin + const Att_Con + const Att_ConPercent + const Att_CriDmg + const Att_CriProb + const Att_CurHP + const Att_CurMP + const Att_Def + const Att_DefPercent + const Att_EffectHit + const Att_EffectResist + const Att_End + const Att_FirstBegin + const Att_FirstEnd + const Att_Int + const Att_MaxHP + const Att_MaxMP + const Att_SecondBegin + const Att_SecondEnd + const Att_Str + const Blade_MaxBlade + const CostLoot_Blade + const CostLoot_End + const CostLoot_Hero + const CostLoot_Item + const CostLoot_Player + const CostLoot_Rune + const CostLoot_Token + const Hero_MaxEquip + const Item_Effect_End + const Item_Effect_Loot + const Item_Effect_Null + const Item_Effect_RuneDefine + const Item_TypeEquip + const Item_TypeItem + const Item_TypePresent + const Item_TypeRune + const Player_MaxLevel + const Player_MaxPlayer + const Player_MemExpire + const Plugin_Blade + const Plugin_End + const Plugin_Hero + const Plugin_Item + const Plugin_Player + const Rune_AttNum + const Rune_MainAtt + const Rune_MaxStar + const Rune_Position1 + const Rune_Position2 + const Rune_Position3 + const Rune_Position4 + const Rune_Position5 + const Rune_Position6 + const Rune_PositionBegin + const Rune_PositionEnd + const Rune_TypeA + const Rune_TypeB + const Rune_TypeBegin + const Rune_TypeC + const Rune_TypeEnd + const Rune_ViceAtt + const SnowFlake_Account + const SnowFlake_Blade + const SnowFlake_Chat + const SnowFlake_End + const SnowFlake_Hero + const SnowFlake_Item + const SnowFlake_Player + const SnowFlake_Rune + const Token_Diamond + const Token_End + const Token_Gold + const Token_Honour + var DatastoreTimeout time.Duration = time.Second * 10 + var TCPReadBufMax = 1024 * 1024 * 2 + type AttEntry struct + Agl int64 + Atk int64 + AtkPercent int64 + AtkSpeed int64 + Con int64 + ConPercent int64 + CriDmg int64 + CriProb int64 + Def int64 + DefPercent int64 + Desc string + EffectHit int64 + EffectResist int64 + ID int32 + Int int64 + MaxHP int64 + MaxMP int64 + Str int64 + type BaseNetMsg struct + ID uint32 + Size uint32 + type BladeEntry struct + AttID int32 + ID int32 + Quality int32 + SpellList []int32 + type CostLootEntry struct + ID int32 + Misc int32 + Num int32 + Type int32 + type CostLootObj interface + CanCost func(int32, int32) error + CanGain func(int32, int32) error + DoCost func(int32, int32) error + GainLoot func(int32, int32) error + GetCostLootType func() int32 + type EquipEnchantEntry struct + AttID int32 + EquipPos int32 + ID int32 + type HeroEntry struct + AttID int32 + ID int32 + Name string + Quality int32 + type ItemEntry struct + Desc string + EffectType int32 + EffectValue []int32 + EquipEnchantID int32 + ID int32 + MaxStack int32 + Name string + Quality int32 + SubType int32 + Type int32 + type PlayerLevelupEntry struct + Exp int64 + ID int32 + type PluginObj interface + GetID func() int64 + GetLevel func() int32 + GetType func() int32 + type RuneEntry struct + ID int32 + Name string + Pos int32 + Quality int32 + SuitID int32 + Type int32 + type RuneSuitEntry struct + ID int32 + Suit2_AttID int32 + Suit3_AttID int32 + Suit4_AttID int32 + Suit5_AttID int32 + Suit6_AttID int32 + type TableGate struct + ID int + TimeStamp int + func (TableGate) TableName() string + type TableGlobal struct + ID int + TimeStamp int + func (TableGlobal) TableName() string + type TalentEntry struct + CostID int32 + Desc string + GroupID int32 + ID int32 + LevelLimit int32 + Name string + type TokenEntry struct + ID int32 + MaxHold int64 + Name string + type TransferNetMsg struct + PlayerID int64 + WorldID uint32