Documentation
¶
Index ¶
- Constants
- Variables
- func AgilityLabel(decrease bool, frame, duration int) effectScreenParticle
- func ArrowPosition(origin, target scene.Point3, elapsed time.Duration) (scene.Point3, bool)
- func CraftingResultSpecialEffect(effectID uint32) bool
- func DrawTexturedEffectBillboardRotatedXYWithOptions(screen *render.Frame, projection scene.Projection, texture *render.Image, ...)
- func DrawWorldCylinderBandWithBasis(screen *render.Frame, white, texture *render.Image, ...)
- func Effect3DSize(component Component, effect Instance, salt int, progress float64, ...) (float64, float64)
- func Effect3DSpriteDrawOptions(component Component) *render.DrawTrianglesOptions
- func Effect3DSpriteScale(size float64) float64
- func EffectActorDirection(ctx client.Context, actorID uint32, at time.Time) int
- func EffectAnchor(ctx client.Context, actorID uint32) (int, int, bool)
- func EffectBillboardAlphaForDuplicate(progress float64, component Component, duplicateIndex int) float64
- func EffectCylinderAnimatedDimensions(component Component, progress float64) (float64, float64, float64)
- func EffectDetachesLocalActor(effectID int) bool
- func EffectSpriteRobrowserRotation(ctx client.Context, projection scene.Projection, component Component, ...) (float64, bool)
- func EffectTrajectoryEndpoints(ctx client.Context, component Component, effect Instance) (float64, float64, float64, float64, float64, float64, bool)
- func EffectWorldAnchor(ctx client.Context, effect Instance, at time.Time) scene.Point3
- func Enabled(ctx client.Context) bool
- func EstinHead(process int) (distance, alpha float64)
- func FrostDiverTrailCount(effect Instance) int
- func FuryBodyTint(tint color.RGBA, effect Instance, now time.Time) color.RGBA
- func GrimtoothSpike(effect Instance, index, frame int) grimtoothHorn
- func GroundSampleDrawOptions() *render.DrawTrianglesOptions
- func GroundSampleRotationAngle(effect Instance, now time.Time) float64
- func HealEffectID(amount uint32) int
- func HitEffectRandom(effect Instance, salt, count int) int
- func IsBardPerformance(skillID uint16) bool
- func IsDancerPerformance(skillID uint16) bool
- func LockOnTargetSize(starts, now time.Time) float64
- func LockOnTargetTint(starts, now time.Time) color.RGBA
- func MagicCrasherFlashActive(elapsed time.Duration) bool
- func MapPillarBandHeight(process, maxHeight float64) float64
- func NewSpiritSpheres(effect Instance) *spiritSpheres
- func NewTwilightParticles(ctx client.Context, effect Instance) *twilightParticles
- func NinjaCastingSkill(id uint16) bool
- func PressureImage(effect Instance, process int) shieldImage
- func QuadHornDefaultOffset(value float64) float64
- func QuadHornRange(effect Instance, salt int, min, max float64) float64
- func ResolveEffectSTRFile(component Component, effect Instance, lessEffects bool) string
- func RisingParticleAt(effect Instance, index, age int) effectParticle
- func RotateEffectCylinderVector(v scene.Point3, angleX, angleY, angleZ float64) scene.Point3
- func SharpShootingLine(effect Instance, index, frame int) (from, to scene.Point3, alpha int)
- func SkillBeforeHitEffectIDs(skillID uint16) []int
- func SkillBeforeHitEffectSelfIDs(skillID uint16) []int
- func SkillBeginEffectIDs(skillID uint16) []int
- func SkillEffectIDs(skillID uint16) []int
- func SkillEffectOnCasterIDs(skillID uint16) []int
- func SkillEffectSpecFor(skillID uint16) skillEffectSpec
- func SkillForcesGroundTarget(skillID uint16) bool
- func SkillForcesPassive(skillID uint16) bool
- func SkillForcesSelfTarget(skillID uint16) bool
- func SkillGroundEffectIDs(skillID uint16) []int
- func SkillHidesCastBar(skillID uint16) bool
- func SkillHitEffectIDs(skillID uint16) []int
- func SkillHitEffectOnCasterIDs(skillID uint16) []int
- func SkillSuccessEffectIDs(skillID uint16) []int
- func SkillSuccessEffectSelfIDs(skillID uint16) []int
- func SkillUnitEffectIDs(unitID uint16) []int
- func SniperBodyFlashActive(effectID int, frame int) bool
- func SongOutParticle(n, initial int) (alpha int, height float64)
- func SoulDrainPosition(effect Instance, tick int, roll float64) scene.Point3
- func SoulLinkGlyph(age, layer int) (radius, alpha float64)
- func SpearBoomerangPosition(effect Instance, age int) (scene.Point3, bool)
- func SpecialEffectID(effectID uint32) int
- func StrAnimationBlend(anim res.STRAnimation) render.Blend
- func StrAnimationDrawOptions(anim res.STRAnimation) *render.DrawTrianglesOptions
- func StrAnimationLocalOffset(anim res.STRAnimation, x, y float32, attached bool) (float64, float64)
- func StrAnimationOffset(anim res.STRAnimation, attached bool) (float64, float64)
- func StrAnimationVertex3D(point scene.Point3, uv scene.UV, tint color.RGBA, ...) render.Vertex3D
- func StrEffectKeyIndex(starts, now time.Time, fps int, maxKey int, repeat bool) float64
- func TarotCardAlpha(frame int) int
- func TexturedEffectBillboardDrawOptions(additive, overlay bool) *render.DrawTrianglesOptions
- func ThrowItemAt(effect Instance, process int) (position scene.Point3, angle float64, alpha int)
- func WorldEffectBillboardAngleForEffect(component Component, projection scene.Projection, effect Instance, salt int, ...) float64
- func WorldEffectComponentDuplicateProgressForDraw(starts time.Time, component Component, duplicateIndex int, ...) (float64, bool)
- func WorldEffectComponentDuration(spec Spec, component Component) time.Duration
- func WorldEffectComponentProgress(starts time.Time, duration time.Duration, now time.Time) float64
- type ActorBlur
- type CastingState
- type Component
- type ComponentKind
- type EffectFuncAdapter
- type Host
- type Instance
- type NinjaPetals
- type NinjaWind
- type SkillActionSpec
- func DanceSkillActionSpec() SkillActionSpec
- func GunslingerCastAction(id uint16, now time.Time) (SkillActionSpec, bool)
- func SkillAction(skillID uint16) SkillActionSpec
- func TaekwonJumpSequence(casting bool) SkillActionSpec
- func TaekwonKickSequence(action skillActorAction, frames [5]int, ticks int) SkillActionSpec
- type SoulLights
- type Spec
- type StarFlight
- type System
- func (m *System) Add(ctx client.Context, effectID int, actorID uint32) bool
- func (m *System) AddArrowShower(ctx client.Context, sourceID uint32, x, y float64, ground bool, now time.Time)
- func (m *System) AddAt(ctx client.Context, effectID int, actorID uint32, starts time.Time) bool
- func (m *System) AddBetween(ctx client.Context, effectID int, actorID, targetID uint32, starts time.Time) bool
- func (m *System) AddBetweenDuration(ctx client.Context, effectID int, actorID, targetID uint32, starts time.Time, ...) bool
- func (m *System) AddBetweenIfMissing(ctx client.Context, effectID int, actorID, targetID uint32, starts time.Time, ...) bool
- func (m *System) AddCell(ctx client.Context, effectID int, actorID uint32, x, y int, starts time.Time, ...) bool
- func (m *System) AddCellIfMissing(ctx client.Context, effectID int, x, y int, starts time.Time) bool
- func (m *System) AddCellLifetime(ctx client.Context, effectID int, actorID uint32, x, y int, starts time.Time, ...) bool
- func (m *System) AddCellRotationIfMissing(ctx client.Context, effectID int, actorID uint32, x, y int, starts time.Time, ...) bool
- func (m *System) AddGunslingerBeforeHitEffect(ctx client.Context, action network.ActorActionNotify, starts time.Time) bool
- func (m *System) AddIfMissing(ctx client.Context, effectID int, actorID uint32) bool
- func (m *System) AddItemUseEffect(ctx client.Context, ack network.UseItemAck)
- func (m *System) AddMageProjectileEffect(ctx client.Context, action network.ActorActionNotify, starts time.Time) bool
- func (m *System) AddNinjaBeforeHitEffect(ctx client.Context, action network.ActorActionNotify, starts time.Time) bool
- func (m *System) AddPersistentBetween(ctx client.Context, effectID int, actorID, targetID uint32, starts time.Time) bool
- func (m *System) AddSkillCastEffects(ctx client.Context, skillID uint16, property uint32, sourceID, targetID uint32, ...)
- func (m *System) AddSkillUnitEffects(ctx client.Context, entry network.SkillUnitEntry)
- func (m *System) AdvanceTaekwonFootprints(ctx client.Context, now time.Time)
- func (m *System) ApplyActorDevotion(ctx client.Context, notify network.ActorDevotion)
- func (m *System) ApplyAlchemistSkill(ctx client.Context, notify network.SkillNoDamageNotify, now time.Time)
- func (m *System) ApplyProfessorSkill(ctx client.Context, notify network.SkillNoDamageNotify, now time.Time)
- func (m *System) Bind(host Host, textures map[string]*render.Image, missing map[string]struct{})
- func (m *System) Draw(screen *render.Frame, ctx client.Context, projection scene.Projection, ...)
- func (m *System) DrawActor(ctx client.Context, screen *render.Frame, projection scene.Projection, ...)
- func (m *System) DrawActorBlurs(screen *render.Frame, projection scene.Projection, entry scene.ActorDrawEntry, ...)
- func (m *System) DrawActorSpriteBillboard(screen *render.Frame, projection scene.Projection, billboard *scene.Billboard, ...)
- func (m *System) DrawActorSpriteBodyEffects3D(ctx client.Context, screen *render.Frame, projection scene.Projection, ...)
- func (m *System) DrawAgilityEffect(screen *render.Frame, ctx client.Context, projection scene.Projection, ...)
- func (m *System) DrawArrows(screen *render.Frame, ctx client.Context, projection scene.Projection, ...)
- func (m *System) DrawBerserkPotion(screen *render.Frame, ctx client.Context, component Component, effect Instance, ...)
- func (m *System) DrawBlueCastingEffect(screen *render.Frame, ctx client.Context, component Component, effect Instance, ...)
- func (m *System) DrawCartRevolutionEffect(screen *render.Frame, ctx client.Context, component Component, effect Instance, ...)
- func (m *System) DrawEffectGlyphs(screen *render.Frame, ctx client.Context, projection scene.Projection, ...)
- func (m *System) DrawFrostDiverSpikes(screen *render.Frame, ctx client.Context, component Component, effect Instance, ...)
- func (m *System) DrawFuncEffect(screen *render.Frame, ctx client.Context, projection scene.Projection, ...)
- func (m *System) DrawHitLineBurst(screen *render.Frame, ctx client.Context, component Component, effect Instance, ...)
- func (m *System) DrawKaizelEffect(screen *render.Frame, ctx client.Context, component Component, effect Instance, ...)
- func (m *System) DrawMammoniteCoins(screen *render.Frame, ctx client.Context, projection scene.Projection, ...)
- func (m *System) DrawRisingBuffParticles(screen *render.Frame, ctx client.Context, projection scene.Projection, ...)
- func (m *System) DrawSPREffect(screen *render.Frame, ctx client.Context, projection scene.Projection, ...)
- func (m *System) DrawWorldEffectComponent(screen *render.Frame, ctx client.Context, projection scene.Projection, ...)
- func (m *System) Effect3DOffset(ctx client.Context, component Component, effect Instance, salt int, ...) (float64, float64, float64)
- func (m *System) EffectFileTexture(manager *res.Manager, path string) *render.Image
- func (m *System) EffectFileTextureWithBlackKey(manager *res.Manager, path string, blackKey bool) *render.Image
- func (m *System) EffectSpriteView(manager *res.Manager, file string) *scene.SpriteView
- func (m *System) FusionHeight(actor worldstate.Actor, now time.Time, active bool) float64
- func (m *System) HasActive(effectID int, actorID uint32, now time.Time) bool
- func (m *System) LoadWorldEffectSTR(manager *res.Manager, strFile, texturePath string) *res.STR
- func (m *System) LordKnightSeparateEquipment(ctx client.Context, actor world.Actor, now time.Time) bool
- func (m *System) Remove(effectID int, actorID uint32) bool
- func (m *System) RemoveActor(id uint32) bool
- func (m *System) RemoveLevel99AuraEffects(actorID uint32)
- func (m *System) RemoveMarionetteLinks(actorID uint32)
- func (m *System) RemoveSkillCastEffects(ctx client.Context, sourceID uint32)
- func (m *System) RemoveUnit(id uint32) bool
- func (m *System) ReplaceCraftingResultEffect(ctx client.Context, notify network.SpecialEffectNotify, effectID int, ...)
- func (m *System) ScheduleWorldEffectSound(starts time.Time, spec Spec, effect Instance)
- func (m *System) SyncActorEntryLevel99Aura(ctx client.Context, entryID uint32)
- func (m *System) SyncLevel99AuraEffects(ctx client.Context, now time.Time)
- func (m *System) WorldEffectResolvedComponentDuration(ctx client.Context, spec Spec, component Component) time.Duration
Constants ¶
const ( Hit1 = 0 BashHit = 1 Hit3 = 2 Hit4 = 3 Hit5 = 4 Hit6 = 5 Entry = 6 Exit = 7 Warp = 8 Enhance = 9 Mammonite = 10 Endure = 11 BeginSpell = 12 GlassWall = 13 HealSP = 14 SoulStrike = 15 BashBegin = 16 MagnumBreak = 17 Steal = 18 PoisonAttack = 20 Detoxication = 21 Sight = 22 StoneCurse = 23 FireBall = 24 FireWall = 25 IceArrow = 26 FrostDiver = 27 FrostDiverHit = 28 LightningBolt = 29 ThunderStorm = 30 FireArrow = 31 NapalmBeat = 32 Ruwach = 33 TeleportOld = 34 ReadyPortalOld = 35 IncAgility = 37 DecAgility = 38 Aqua = 39 Signum = 40 Angelus = 41 Blessing = 42 IncAgiDex = 43 Smoke = 44 Firefly = 45 Torch = 47 FireHit = 49 FireSplashHit = 50 ColdHit = 51 WindHit = 52 PoisonHit = 53 BeginSpell2 = 54 BeginSpell3 = 55 BeginSpell4 = 56 BeginSpell5 = 57 BeginSpell6 = 58 BeginSpell7 = 59 LockOnTarget = 60 WarpZone = 61 SightTrasher = 62 ArrowShotRO = 64 Invenom = 65 Cure = 66 Provoke = 67 Mvp = 68 SkidTrap = 69 BrandishSpear = 70 BowlingBash = 73 IceWall = 74 Gloria = 75 Magnificat = 76 Resurrection = 77 Recovery = 78 EarthSpike = 79 SpearBoomerang = 80 Pierce = 81 TurnUndead = 82 Sanctuary = 83 Impositio = 84 LexAeterna = 85 Aspersio = 86 LexDivina = 87 Suffragium = 88 StormGust = 89 LordVermilion = 90 Benedictio = 91 MeteorStorm = 92 JupitelThunder = 93 JupitelHit = 94 Quagmire = 95 FirePillar = 96 FirePillarBomb = 97 HasteUp = 98 Flasher = 99 RemoveTrap = 100 RepairWeapon = 101 CrashEarth = 102 WeaponPerfect = 103 MaximizePower = 104 BlastMine = 105 BlastMineBomb = 106 Claymore = 107 FreezingTrap = 108 Bubble = 109 GasPush = 110 SpringTrap = 111 Kyrie = 112 Magnus = 113 BlitzBeat = 115 WaterBall = 116 WaterBall2 = 117 Detecting = 119 Cloaking = 120 SonicBlow = 121 SonicBlowHit = 122 Grimtooth = 123 VenomDust = 124 EnchantPoison = 125 PoisonReact = 126 PoisonReact2 = 127 Overthrust = 128 VenomSplasher = 129 TwoHandQuicken = 130 AutoCounter = 131 GrimtoothAtk = 132 Freeze = 133 Freezed = 134 IceCrash = 135 SlowPoison = 136 FirePillarOn = 138 Sandman = 139 Revive = 140 Pneuma = 141 HeavenDrive = 142 SonicBlow2 = 143 BrandishSpear2 = 144 Shockwave = 145 ShockwaveHit = 146 EarthHit = 147 PierceSelf = 148 BowlingSelf = 149 SpearStabSelf = 150 SpearBmrSelf = 151 HolyLight = 152 Concentration = 153 RefineOK = 154 RefineFail = 155 JobLevelUp = 158 Rain = 161 Snow = 162 Sakura = 163 Banjjakii = 165 MakeBlur = 166 EnergyCoat = 169 CartRevolution = 170 VenomDust2 = 171 MentalBreak = 181 MagicalAtkHit = 182 SuiExplosion = 183 Suicide = 185 ComboAttack1 = 186 ComboAttack2 = 187 ComboAttack3 = 188 ComboAttack4 = 189 ComboAttack5 = 190 GuidedAttack = 191 PoisonAttack2 = 192 SilenceAttack = 193 StunAttack = 194 PetrifyAttack = 195 SleepAttack = 197 Pong = 199 Level99 = 200 Level99Ground = 201 Level99Bubble = 202 Gumgang = 203 PotionRed = 204 PotionOrange = 205 PotionYellow = 206 PotionWhite = 207 PotionBlue = 208 PotionGreen = 209 Food = 210 FoodBlue = 211 DarkBreath = 212 Defender = 213 Keeping = 214 SummonSlave = 215 BloodDrain = 216 EnergyDrain = 217 ItemFast = 218 ItemFast2 = 219 ItemFast3 = 220 CrusaderDef = 222 Ganbantein = 223 Volcano = 225 GrandCross = 226 Intimidate = 227 Chookgi = 228 Cloud = 229 Cloud2 = 230 MapPillar = 231 LineLink = 232 Cloud3 = 233 SpellBreaker = 234 Dispell = 235 Deluge = 236 ViolentGale = 237 LandProtector = 238 BottomVolcano = 239 BottomDeluge = 240 BottomViolent = 241 BottomLand = 242 MagicRod = 244 HolyCross = 245 ShieldCharge = 246 MapPillar2 = 247 Providence = 248 ShieldBoomer = 249 SpearQuicken = 250 Devotion = 251 ReflectShield = 252 AbsorbSpirits = 253 SteelBody = 254 FlameLauncher = 255 FrostWeapon = 256 LightningLoad = 257 SeismicWeapon = 258 MapPillar3 = 259 MapPillar4 = 260 Gumgang2 = 261 TeiHit1 = 262 Gumgang3 = 263 TeiHit2 = 264 Tanji = 265 TeiHit1X = 266 Chimto = 267 StealCoin = 268 StripWeapon = 269 StripShield = 270 StripArmor = 271 StripHelm = 272 ChainCombo = 273 RogueCoin = 274 BackStab = 275 TeiHit3 = 276 BottomLullaby = 278 BottomRichKim = 279 BottomChaos = 280 BottomDrum = 281 BottomNibelung = 282 BottomRoki = 283 BottomAbyss = 284 BottomSieg = 285 BottomWhistle = 286 BottomSinX = 287 BottomBragi = 288 BottomApple = 289 BottomHumming = 291 BottomForget = 292 BottomFortune = 293 BottomService = 294 TalkFrostJoke = 295 TalkScream = 296 PokJuk = 297 ThrowItem = 298 ThrowItem2 = 299 ChemicalProt = 300 Demonstration = 302 Chemical2 = 303 Teleportation = 304 PharmacyOK = 305 PharmacyFail = 306 ThrowItem3 = 308 FirstAid = 309 SprinkleSand = 310 Loud = 311 Heal = 312 Heal2 = 313 Exit2 = 314 SafetyWall = 315 ReadyPortal = 316 Portal = 317 BottomMagnus = 318 BottomSanc = 319 HealOffensive = 320 WarpZone2 = 321 Heal4 = 325 BeginAsura = 328 TripleAttack = 329 HitLine = 330 HPTime = 331 SPTime = 332 Maple = 333 Blind = 334 PoisonStatus = 335 Guard = 336 JobLvUp50 = 337 Angel2 = 338 Magnum2 = 339 CoupleCasting = 342 Entry2 = 344 ColorPaper = 347 SoulBreaker = 361 Level99Aura1 = 362 FoodChocolate = 363 Pressure = 365 Bash3D = 366 AuraBlade = 367 RedBody = 368 LKConcentration = 369 BottomGospel = 370 BaseLevelUp = 371 Death = 372 DragonSmoke = 373 BottomBasilica = 374 Assumptio = 375 HitLine2 = 376 Bash3D2 = 377 EnergyDrain2 = 378 TransBlueBody = 379 MagicCrasher = 380 LightBlade = 382 EnergyDrain3 = 383 LineLink2 = 384 LinkLight = 385 TrueSight = 386 FalconAssault = 387 TripleAttack2 = 388 Portal4 = 389 Meltdown = 390 CartBoost = 391 RejectSword = 392 TripleAttack3 = 393 Moonlit = 394 MarionetteLink = 395 PinkBody = 396 Level99AuraMid = 397 Level99AuraBottom = 398 Bash3D3 = 399 Bash3D4 = 400 NapalmVulcan = 401 Portal5 = 402 MagicCrasher2 = 403 BottomSpider = 404 FogWallGround = 405 SoulBurn = 406 SoulChange = 407 SoulBreaker2 = 409 Rainbow = 410 Peong = 411 PressedBody = 413 SpinedBody = 414 KickedBody = 415 DoubleGumgang = 418 ReflectBody = 419 BabyBody = 420 BabyBody2 = 421 GiantBody = 422 GiantBody2 = 423 AsuraBody = 424 FourWayBody = 425 QuakeBody = 426 AsuraBodyMonster = 427 HitLine4 = 429 HitLine5 = 430 HitLine6 = 431 StormKick = 435 Chemical3 = 439 Assumptio2 = 440 BlueCasting = 441 Run = 442 StopRun = 443 StopEffect = 444 JumpBody = 445 LandBody = 446 Foot3 = 447 Foot4 = 448 TaeReady = 449 DarkGrandCross = 450 DarkSoulStrike = 451 DarkJupitelHit = 452 NPCStop = 453 DarkCasting = 454 AgiUp = 456 JumpKick = 457 QuakeBody2 = 458 StormKick3 = 461 StormKick4 = 462 SpinedBody2 = 466 BeginAsura1 = 467 BeginAsura2 = 468 BeginAsura3 = 469 BeginAsura4 = 470 BeginAsura5 = 471 BeginAsura6 = 472 BeginAsura7 = 473 Devil1 = 475 Devil2 = 476 Devil3 = 477 Devil4 = 478 Devil5 = 479 Devil6 = 480 Devil7 = 481 Devil8 = 482 Devil9 = 483 Devil10 = 484 BlackDevil = 487 FlowerCast = 488 ResistPotion = 491 Mochi = ResistPotion Ramadan = 492 EDP = 493 FullStrip = 495 Preserve = 496 Slim = 497 Slim2 = 498 Slim3 = 499 ChemicalBody = 500 CastSpin = 501 PierceBody = 502 SoulLink = 503 Chookgi2 = 504 Memorize = 505 ItemAccel = 507 Mapae = ItemAccel Firecracker = 508 ItemPokJuk = Firecracker Valentine05 = 509 BeginAsura11 = 510 Chemical2Dash = 512 GroundSample = 513 Cloud4 = 515 Cloud5 = 516 BottomHermode = 517 CartTermination = 518 ItemSlow = 519 ItemFastDown = ItemSlow ShieldBoomerang3 = 520 DoubleCastBody = 521 Gravitation = 522 TarotCard1 = 523 TarotCard2 = 524 TarotCard3 = 525 TarotCard4 = 526 TarotCard5 = 527 TarotCard6 = 528 TarotCard7 = 529 TarotCard8 = 530 TarotCard9 = 531 TarotCard10 = 532 TarotCard11 = 533 TarotCard12 = 534 TarotCard13 = 535 TarotCard14 = 536 AcidDemon = 537 ThrowItem4 = 539 BabyBodyBack = 540 ThrowItem5 = 541 BlueBody = 542 Hated = 543 RedLightBody = 544 SmaReady = 546 Stin = 547 RedHit = 548 BlueHit = 549 QuakeBody3 = 550 Stin2 = 553 HitTexture = 554 Stin3 = 555 ScreenQuake = 563 HfliMoon1 = 565 HfliMoon2 = 566 HfliMoon3 = 567 HoUp = 568 HamiDefence = 569 HamiCastle = 570 HamiBlood = 571 Hated2 = 572 Twilight1 = 573 Twilight2 = 574 Twilight3 = 575 BoxThunder = 576 ItemThunder = BoxThunder BoxResentment = 577 ItemCloud = BoxResentment ItemCurse = 578 BoxDrowsiness = 579 ItemZZZ = BoxDrowsiness BoxSunlight = 580 ItemRain = BoxSunlight M01 = 583 M02 = 584 M03 = 585 M04 = 586 M05 = 587 M06 = 588 M07 = 589 Kaizel = 590 Cloud6 = 592 StatFoodSTR = 593 StatFoodINT = 594 StatFoodVIT = 595 StatFoodAGI = 596 StatFoodDEX = 597 StatFoodLUK = 598 Shrink = 599 ThrowItem6 = 600 SightBlaster = 601 QuakeBody4 = 602 FireHit2 = 603 NPCStop2 = 604 NPCStop2Del = 605 FVoice = 606 Wink = 607 CookingOK = 608 CookingFail = 609 Firecracker1 = 612 Hapgyeok = 612 ThrowItem7 = 613 ThrowItem8 = 614 ThrowItem9 = 615 ThrowItem10 = 616 Kouenka = 618 Hyousensou = 619 BottomSuiton = 620 Stin4 = 621 ThunderStorm2 = 622 Chemical4 = 623 Stin5 = 624 MadnessBlue = 625 MadnessRed = 626 RGCoin3 = 627 Bash3D5 = 628 Chookgi3 = 629 Kirikage = 630 Tatami = 631 Kasumikiri = 632 Issen = 633 Kaen = 634 Baku = 635 Hyousyouraku = 636 Desperado = 637 LightningS = 638 BlindS = 639 PoisonS = 640 FreezingS = 641 FlareS = 642 RapidShower = 643 MagicalBullet = 644 SpreadAttack = 645 TrackCasting = 646 Tracking = 647 TripleAction = 648 Bullseye = 649 BubbleDrop = 665 NPCEarthquake = 666 DragonFear = 668 WideBleeding = 669 WideConfuse = 670 BottomRunner = 671 BottomTransfer = 672 BottomEvilLand = 674 Guard3 = 675 CriticalWound = 677 Firecracker2 = 682 Firecracker3 = 683 Firecracker4 = 684 Firecracker5 = 685 Firecracker6 = 686 TorchRed = 690 TorchGreen = 691 MapGhost = 692 Glow1 = 693 Glow2 = 694 Glow4 = 695 TorchPurple = 696 Cloud7 = 697 Cloud8 = 698 FlowerLeaf = 699 Item315 = 704 Item316 = 705 Item317 = 706 StormMin = 708 Firecracker7 = 709 BottomBlue = 715 BottomBlue2 = 716 ChristmasCarol = 717 FirePillarOn2 = 718 ForestLight5 = 719 Adoramus = 721 IgnitionBreak = 722 FrostMisty = 726 CrimsonRock = 727 HellInferno = 728 MarshOfAbyss = 729 DragonHowling = 731 EarthWall = 732 ChainLightning = 734 AimedBolt = 745 ArrowStorm = 746 Laulamus = 747 Lauagnus = 748 MillenniumShield = 749 Concentration2 = 750 GlassWall3 = 754 BerserkPotion2 = 756 Rolling1 = 758 Rolling2 = 759 Rolling3 = 760 Rolling4 = 761 Rolling5 = 762 Rolling6 = 763 Rolling7 = 764 Rolling8 = 765 Rolling9 = 766 Rolling10 = 767 CastSpin2 = 775 CrashAxe = 795 Stasis = 799 BottomBasilica2 = 802 Recognized = 803 Tetra = 804 TetraCasting = 805 Stretch = 811 Enervation = 813 Enervation2 = 814 Enervation3 = 815 Enervation4 = 816 Enervation5 = 817 Enervation6 = 818 BottomManhole = 822 Manhole = 823 ForestLight6 = 825 BottomAni = 827 BottomMaelstrom = 828 BottomBloodyLust = 829 HealN = 832 ChookgiN = 833 Dance1 = 847 BotReverb = 856 RainParticle = 857 ChemicalV2 = 858 BotReverb2 = 860 CirclePower2 = 861 Secra2 = 862 SprPlant2 = 866 SprPlant3 = 868 SprPlant4 = 870 SprPlant5 = 872 SprPlant6 = 874 SprPlant7 = 876 SprPlant8 = 878 HeartAsura = 879 GlassWall4 = 883 Bash3D6 = 885 Electric4 = 888 TeiHit1T = 889 Pressure2 = 906 PrimeCharge2 = 908 PrimeCharge3 = 909 PrimeCharge4 = 910 FireWall2 = 920 SprPlant10 = 922 Shockwave2 = 926 ColdThrow2 = 928 DemonicFire4 = 929 Pressure3 = 930 PoisonMist = 959 EraserCutter = 960 LavaSlide = 964 SonicClaw = 965 TinderBreaker = 966 MidnightFrenzy = 967 VolcanicAsh = 975 RWC2011 = 987 RWC2011Two = 988 RunMakeOK = 1015 RunMakeFailure = 1016 MIResultMakeOK = 1017 MIResultMakeFail = 1018 AllRayProtect = 1019 VenomFog = 1020 DustStorm = 1021 DanceBladeAtk = 1029 InvincibleOff2 = 1031 DeathSummon = 1033 GCDarkCrow = 1040 AllFullThrottle = 1042 SRFlashCombo = 1043 RKLuxAnima = 1044 SOElemShield = 1046 ABOffertorium = 1047 WLTelekinesis = 1048 GNIllusionDoping = 1049 NCMagmaEruption = 1050 NPCChill = 1055 OffertoriumRing = 1057 HammerOfGod = 1062 AchComplete = 1094 BodyColor = 1111 BakuretsuHadou = 1130 DropPink = 1186 DropYellow = 1189 DropPurple = 1190 DigitalSpace = 1240 DropBlue = 1869 DropGreen = 1870 DropRed = 1871 NewSuccess = 1872 NewFailure = 1873 NewIntro = 1874 EnchantYellow = 1875 EnchantSuccess = 1876 EnchantFail = 1877 EnchantBlue = 1878 EnchantUpSuccess = 1879 EnchantUpFail = 1880 EnchantGreen = 1881 EnchantResetOK = 1882 EnchantResetFail = 1883 )
Native effect IDs.
const ( ColdBolt = 10014 FireBolt = 10019 CastRing = 10021 QuakeMagnum = 10022 ArrowShot = 10060 ArrowShower = 10061 MagicPower = db.SkillEffectMagicPower WhitePulse = db.SkillEffectWhitePulse SpearProjectile = db.SkillEffectSpearProjectile SpearHitSound = db.SkillEffectSpearHitSound EnemyHitNormal1 = db.SkillEffectEnemyHitNormal1 Quake = db.SkillEffectQuake AnkleSnareGround = db.SkillEffectAnkleSnareGround SharpShootingCast = db.SkillEffectSharpShootingCast AdrenalineCast = db.SkillEffectAdrenalineCast MaximizeSounds = db.SkillEffectMaximizeSounds GreedSound = db.SkillEffectGreedSound GospelGround = db.SkillEffectGospelGround HermodeMusic = db.SkillEffectHermodeMusic BottomDissonanceGround = db.SkillEffectBottomDissonanceGround BottomLullabyGround = db.SkillEffectBottomLullabyGround BottomRichKimGround = db.SkillEffectBottomRichKimGround BottomChaosGround = db.SkillEffectBottomChaosGround BottomDrumGround = db.SkillEffectBottomDrumGround BottomNibelungGround = db.SkillEffectBottomNibelungGround BottomRokiGround = db.SkillEffectBottomRokiGround BottomAbyssGround = db.SkillEffectBottomAbyssGround BottomSiegGround = db.SkillEffectBottomSiegGround BottomWhistleGround = db.SkillEffectBottomWhistleGround BottomSinXGround = db.SkillEffectBottomSinXGround BottomBragiGround = db.SkillEffectBottomBragiGround BottomAppleGround = db.SkillEffectBottomAppleGround BottomUglyDanceGround = db.SkillEffectBottomUglyDanceGround BottomHummingGround = db.SkillEffectBottomHummingGround BottomForgetGround = db.SkillEffectBottomForgetGround BottomFortuneGround = db.SkillEffectBottomFortuneGround BottomServiceGround = db.SkillEffectBottomServiceGround GunslingerCoinSound = db.SkillEffectGunslingerCoinSound Emotion = 1000000 )
Goro-local effect IDs.
const ( SkillActorActionIdle skillActorAction = iota SkillActorActionSkill SkillActorActionAttack SkillActorActionAttack1 SkillActorActionAttack3 SkillActorActionPickup SkillActorActionReadyFight )
const ArrowShowerReleaseDelay = 18 * 24 * time.Millisecond
const (
Level99AuraLifetime = 24 * time.Hour
)
const SkillActorActionNone skillActorAction = -1
const SkillUnitEffectFallbackDuration = 5 * time.Minute
const StrEffectDepthBias = 0.02
Variables ¶
var ( Level99AuraNormalEffects = []int{Level99, Level99Ground, Level99Bubble} Level99AuraSimpleEffects = []int{Level99Bubble} )
var ( IdleSkillActionSpec = newSkillActionSpec(SkillActorActionIdle, true, nil) AttackSkillActionSpec = newSkillActionSpec(SkillActorActionAttack, false, &IdleSkillActionSpec) ReadyFightSkillActionSpec = newSkillActionSpec(SkillActorActionReadyFight, false, &IdleSkillActionSpec) )
var QuadHornUVs = []scene.UV{
{U: 0.0, V: 0}, {U: 0.0, V: 1}, {U: 0.2, V: 1},
{U: 0.2, V: 0}, {U: 0.2, V: 1}, {U: 0.4, V: 1},
{U: 0.4, V: 0}, {U: 0.4, V: 1}, {U: 0.6, V: 1},
{U: 0.6, V: 0}, {U: 0.6, V: 1}, {U: 0.8, V: 1},
}
Functions ¶
func AgilityLabel ¶
func ArrowPosition ¶ added in v0.24.2
func Effect3DSize ¶
func Effect3DSpriteDrawOptions ¶
func Effect3DSpriteDrawOptions(component Component) *render.DrawTrianglesOptions
func Effect3DSpriteScale ¶
func EffectActorDirection ¶
func EffectWorldAnchor ¶
func EstinHead ¶
Estin uses three startup ticks, nine accelerating fade-in ticks, then faster acceleration while fading. Distances are converted to cells.
func FrostDiverTrailCount ¶
func FuryBodyTint ¶ added in v0.24.2
func GrimtoothSpike ¶
func GroundSampleDrawOptions ¶
func GroundSampleDrawOptions() *render.DrawTrianglesOptions
func HealEffectID ¶
func HitEffectRandom ¶
func IsBardPerformance ¶
func IsDancerPerformance ¶
func LockOnTargetSize ¶
func MagicCrasherFlashActive ¶
func MapPillarBandHeight ¶
func NewSpiritSpheres ¶ added in v0.24.2
func NewSpiritSpheres(effect Instance) *spiritSpheres
func NewTwilightParticles ¶
func NinjaCastingSkill ¶
func PressureImage ¶
func QuadHornDefaultOffset ¶
func ResolveEffectSTRFile ¶
func RisingParticleAt ¶
func SharpShootingLine ¶
func SkillBeforeHitEffectIDs ¶
func SkillBeginEffectIDs ¶
func SkillEffectIDs ¶
func SkillEffectOnCasterIDs ¶
func SkillEffectSpecFor ¶
func SkillEffectSpecFor(skillID uint16) skillEffectSpec
func SkillForcesGroundTarget ¶
func SkillForcesPassive ¶
func SkillForcesSelfTarget ¶
func SkillGroundEffectIDs ¶
func SkillHidesCastBar ¶
func SkillHitEffectIDs ¶
func SkillSuccessEffectIDs ¶
func SkillUnitEffectIDs ¶
func SniperBodyFlashActive ¶
func SongOutParticle ¶
func SoulDrainPosition ¶
func SoulLinkGlyph ¶
func SpearBoomerangPosition ¶
func SpecialEffectID ¶
func StrAnimationBlend ¶
func StrAnimationBlend(anim res.STRAnimation) render.Blend
func StrAnimationDrawOptions ¶
func StrAnimationDrawOptions(anim res.STRAnimation) *render.DrawTrianglesOptions
func StrAnimationLocalOffset ¶
func StrAnimationOffset ¶
func StrAnimationOffset(anim res.STRAnimation, attached bool) (float64, float64)
func StrAnimationVertex3D ¶
func StrEffectKeyIndex ¶
func TarotCardAlpha ¶
func TexturedEffectBillboardDrawOptions ¶
func TexturedEffectBillboardDrawOptions(additive, overlay bool) *render.DrawTrianglesOptions
func ThrowItemAt ¶
Types ¶
type CastingState ¶
type CastingState struct {
Tick int
// contains filtered or unexported fields
}
func (*CastingState) Advance ¶
func (p *CastingState) Advance(frame, duration int)
BlueCasting launches two four-layer SAINTCASTING rings. PrimGI1 makes each ring flare and reset until the final half-second of the cast.
type Component ¶
type Component struct {
Kind ComponentKind
FuncAdapter EffectFuncAdapter
FuncName string
Color color.RGBA
Duration time.Duration
Delay time.Duration
DuplicateDelay time.Duration
Repeat bool
RepeatDelay time.Duration
StrFile string
StrMinFile string
StrRandMin int
StrRandMax int
AttachedEntity bool
RenderBefore bool
TexturePath string
TextureName string
TextureFile string
TextureFiles []string
FrameDelay time.Duration
SpriteFile string
ShadowTexture bool
SpriteHead bool
SpriteDirection bool
SpriteRepeat bool
SpriteStopAtEnd bool
SpriteDelay time.Duration
SpriteYOffset float64
ToSrc bool
Arc float64
Retreat float64
AlphaMax float64
AlphaMaxDelta float64
Sparkling bool
SparkNumber int
Fade bool
FadeIn bool
FadeOut bool
Rotate bool
RotateWithCamera bool
FixedPerspective bool
RotateToTarget bool
WorldSizedSprite bool
Animation int
BottomSize float64
TopSize float64
Height float64
PosX float64
PosY float64
PosZ float64
PosXEnd float64
PosYEnd float64
PosZEnd float64
PosXRand float64
PosYRand float64
PosZRand float64
PosXStartRand float64
PosYStartRand float64
PosZStartRand float64
PosZStartMiddle float64
PosXEndRand float64
PosYEndRand float64
PosZEndRand float64
PosZEndMiddle float64
PosXSmooth bool
PosYSmooth bool
PosZSmooth bool
SizeStart float64
SizeEnd float64
SizeRand float64
SizeStartX float64
SizeStartY float64
SizeEndX float64
SizeEndY float64
SizeRandY float64
SizeRandYMiddle float64
SizeDelta float64
SizeSmooth bool
AngleStart float64
AngleEnd float64
AngleX float64
AngleY float64
OrbitRadiusX float64
OrbitRadiusY float64
OrbitRotations float64
OrbitPhase float64
OrbitClockwise bool
TotalCircleSides int
CircleSides int
Duplicate int
AngleZRandom float64
BlendMode int
BlendAdditive bool
Overlay bool
QuadHornHeightMin float64
QuadHornHeightMax float64
QuadHornOffsetXMin float64
QuadHornOffsetXMax float64
QuadHornOffsetYMin float64
QuadHornOffsetYMax float64
QuadHornOffsetZ float64
QuadHornBottomMin float64
QuadHornBottomMax float64
QuadHornRotateXMin float64
QuadHornRotateXMax float64
QuadHornRotateYMin float64
QuadHornRotateYMax float64
QuadHornRotateZMin float64
QuadHornRotateZMax float64
QuadHornAnimSpeed time.Duration
QuadHornAnimOut bool
// contains filtered or unexported fields
}
type ComponentKind ¶
type ComponentKind int
const ( ComponentSTR ComponentKind = iota + 1 ComponentCylinder Component2D Component3D ComponentSPR ComponentFUNC ComponentQuadHorn )
type EffectFuncAdapter ¶
type EffectFuncAdapter int
const ( EffectFuncUnknown EffectFuncAdapter = iota EffectFuncGroundSample EffectFuncCastRing EffectFuncLockOnTarget EffectFuncLevel99Aura EffectFuncLevel99Ground EffectFuncLevel99Bubble EffectFuncGroundSigil EffectFuncSpiritSphere EffectFuncGumgang EffectFuncFlatColorTile EffectFuncGroundTexture EffectFuncBodyColor EffectFuncMapPillar EffectFuncHitRing EffectFuncSonicBlow EffectFuncThrowItem EffectFuncArrows EffectFuncGospelCross EffectFuncAgility EffectFuncMageBolt )
type Host ¶
type Host interface {
EffectSound(time.Time, Instance, ...string)
EffectSoundAtPosition(time.Time, float64, float64, float64, ...string)
EffectSoundGlobal(time.Time, ...string)
EffectShake(time.Time, time.Duration)
EffectStarted(client.Context, Instance, time.Time)
EffectCameraYaw(client.Context) float64
EffectSpriteTexture(*render.Image) *render.Image
}
Host connects visual effects to the game's sound, camera and actor presentation.
type Instance ¶
type Instance struct {
EffectID int
ActorID uint32
TargetID uint32
ServerTick uint32
ActorDirection int
ActorOrigin scene.Point3
ProjectileDirection scene.Point3
HitCount int
Shield *shieldFlight
ShieldChain *shieldChainFlight
NinjaWind *NinjaWind
SpiritSpheres *spiritSpheres
NinjaPetals *NinjaPetals
Esma *esmaProjectile
BuffParticles *risingBuffParticles
SoulLights *SoulLights
BlueCasting *CastingState
Twilight *twilightParticles
ItemLevel int
CoinTrails *[5][]scene.Point3
ArrowTargets *[9]scene.Point3
HasActorTransform bool
X int
Y int
Starts time.Time
Expires time.Time
Duration time.Duration
Size float64
GroundSampleRotationRadiansPerSecond float64
Persistent bool
SpriteFrameOverride int
HasSpriteFrame bool
// contains filtered or unexported fields
}
type NinjaPetals ¶
type NinjaPetals struct {
Particles [20]wanderingEffectParticle
// contains filtered or unexported fields
}
Each petal captures its target's position when it appears, then drifts on its own.
type NinjaWind ¶
type NinjaWind struct {
Heads [36]ninjaWindHead
// contains filtered or unexported fields
}
type SkillActionSpec ¶
type SkillActionSpec struct {
Defined bool
Action skillActorAction
Frame int
HasFrame bool
Length int
Speed time.Duration
Duration time.Duration
Combo bool
Play bool
Repeat bool
PingPong bool
RandomReverse bool
Delay time.Duration
Next *SkillActionSpec
}
func DanceSkillActionSpec ¶
func DanceSkillActionSpec() SkillActionSpec
func GunslingerCastAction ¶
func GunslingerCastAction(id uint16, now time.Time) (SkillActionSpec, bool)
func SkillAction ¶
func SkillAction(skillID uint16) SkillActionSpec
func TaekwonJumpSequence ¶
func TaekwonJumpSequence(casting bool) SkillActionSpec
func TaekwonKickSequence ¶
func TaekwonKickSequence(action skillActorAction, frames [5]int, ticks int) SkillActionSpec
Native SetForceAnimation2 plays five selected ACT motions, then holds the last one until its timeout. The existing animation chain also permits the landing pose to finish in a different ACT action.
func (SkillActionSpec) ActionFamilyForActorWithResources ¶
func (s SkillActionSpec) ActionFamilyForActorWithResources(manager *res.Manager, actor worldstate.Actor) int
func (SkillActionSpec) ActorAnimationForActorWithResources ¶
func (s SkillActionSpec) ActorAnimationForActorWithResources(manager *res.Manager, actor worldstate.Actor, started time.Time, duration time.Duration) scene.ActorAnimation
type SoulLights ¶
type SoulLights struct {
Particles []wanderingEffectParticle
// contains filtered or unexported fields
}
PrimSoulParticle and PrimPeongUp share the same wandering motion. Keep their history so neither frame rate nor camera movement resets a trail.
type Spec ¶
type StarFlight ¶
type StarFlight struct {
// contains filtered or unexported fields
}
type System ¶
type System struct {
Active []Instance
StrEffects map[string]*res.STR
StrEffectMiss map[string]struct{}
EffectViews map[string]*scene.SpriteView
EffectViewMiss map[string]struct{}
ActorBlurs map[uint32][]ActorBlur
StarFlights map[uint32]*StarFlight
// contains filtered or unexported fields
}
System owns active effects and the resources used to render them. Its zero value is ready to use; a host adds sound and camera integration.
func (*System) AddArrowShower ¶
func (*System) AddBetween ¶
func (*System) AddBetweenDuration ¶
func (*System) AddBetweenIfMissing ¶
func (*System) AddCellIfMissing ¶
func (*System) AddCellLifetime ¶
func (*System) AddCellRotationIfMissing ¶
func (*System) AddGunslingerBeforeHitEffect ¶
func (*System) AddIfMissing ¶
func (*System) AddItemUseEffect ¶
func (m *System) AddItemUseEffect(ctx client.Context, ack network.UseItemAck)
func (*System) AddMageProjectileEffect ¶
func (*System) AddNinjaBeforeHitEffect ¶
func (*System) AddPersistentBetween ¶ added in v0.23.0
func (m *System) AddPersistentBetween(ctx client.Context, effectID int, actorID, targetID uint32, starts time.Time) bool
AddPersistentBetween keeps an effect until its owning server state removes it.
func (*System) AddSkillCastEffects ¶
func (*System) AddSkillUnitEffects ¶
func (m *System) AddSkillUnitEffects(ctx client.Context, entry network.SkillUnitEntry)
func (*System) AdvanceTaekwonFootprints ¶
func (*System) ApplyActorDevotion ¶
func (m *System) ApplyActorDevotion(ctx client.Context, notify network.ActorDevotion)
func (*System) ApplyAlchemistSkill ¶
func (*System) ApplyProfessorSkill ¶
func (*System) DrawActorBlurs ¶
func (*System) DrawActorSpriteBillboard ¶
func (*System) DrawActorSpriteBodyEffects3D ¶
func (*System) DrawAgilityEffect ¶
func (*System) DrawArrows ¶ added in v0.24.2
func (*System) DrawBerserkPotion ¶
func (*System) DrawBlueCastingEffect ¶
func (*System) DrawCartRevolutionEffect ¶
func (*System) DrawEffectGlyphs ¶
func (*System) DrawFrostDiverSpikes ¶
func (*System) DrawFuncEffect ¶
func (*System) DrawHitLineBurst ¶
func (*System) DrawKaizelEffect ¶
func (*System) DrawMammoniteCoins ¶
func (*System) DrawRisingBuffParticles ¶
func (*System) DrawSPREffect ¶
func (*System) DrawWorldEffectComponent ¶
func (*System) Effect3DOffset ¶
func (*System) EffectFileTexture ¶
func (*System) EffectFileTextureWithBlackKey ¶
func (*System) EffectSpriteView ¶
func (*System) FusionHeight ¶
func (*System) LoadWorldEffectSTR ¶
func (*System) LordKnightSeparateEquipment ¶
func (*System) RemoveActor ¶
func (*System) RemoveLevel99AuraEffects ¶
func (*System) RemoveMarionetteLinks ¶
func (*System) RemoveSkillCastEffects ¶ added in v0.23.0
func (*System) RemoveUnit ¶
func (*System) ReplaceCraftingResultEffect ¶
func (*System) ScheduleWorldEffectSound ¶
func (*System) SyncActorEntryLevel99Aura ¶
func (*System) SyncLevel99AuraEffects ¶
Source Files
¶
- 2d.go
- 3d.go
- acolyte.go
- actor_blur.go
- alchemist.go
- archer.go
- assassin.go
- assassin_cross.go
- aura_level99.go
- blacksmith.go
- blind.go
- body.go
- casting.go
- champion.go
- clown_gypsy.go
- creator.go
- crusader.go
- cylinder.go
- effects.go
- environment.go
- func.go
- ground.go
- gumgang.go
- gunslinger.go
- high_priest.go
- high_wizard.go
- hit.go
- hunter.go
- item_visuals.go
- items.go
- knight.go
- lord_knight.go
- mage.go
- merchant.go
- monk.go
- monk_actions.go
- ninja.go
- novice.go
- paladin.go
- particles.go
- performance.go
- priest.go
- professor.go
- progression.go
- projectile.go
- quadhorn.go
- rogue.go
- skill_actions.go
- skill_visuals.go
- sniper.go
- soul_linker.go
- spirit_spheres.go
- sprite.go
- star_gladiator.go
- str.go
- swordman.go
- system.go
- taekwon.go
- thief.go
- visibility.go
- whitesmith.go
- wizard.go