Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Logic extracting for different sprites #2375

@nighca

Description

@nighca

To improve code reuse, we need a mechanism for extracting common logic from sprites. This becomes challenging when the shared logic relies on a sprite's specific fields or methods.

For instance:

A.spx
var (
  count int
)

func increase() {
  count++
}
B.spx
var (
  count int
)

func increase() {
  count++
}

Currently, there's no good way to extract logic dependent on the count field or increase method for A & B.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions