Browsing Wiremod's section
← Back to ACE
🔁

Mirrored article

This page is synced automatically from the wiremod/wire GitHub wiki (last synced 1 hour ago). Edits made here will be overwritten on the next sync — contribute on the source wiki instead.

Developer: E2 Checklist

📄 WikiUpdated 1 hour ago•0 views
Use this for reference when creating/reviewing an E2 addition. This list contains best practices for creating an E2 extension and will help simplify the review process. Extensions Used registerExtensi

Use this for reference when creating/reviewing an E2 addition. This list contains best practices for creating an E2 extension and will help simplify the review process.

Extensions

- Used registerExtension to register the extension if it's optional OR defined the extension in core/extloader.lua if it's required

- Comes with sufficient test code that includes invalid use

Types

- Default value ( argument 3 ) is not nil

- Invalid function ( argument 7 ) is sufficient for the type

- Comes with sufficient test code that includes invalid use

E2 Functions

- E2 description defined

- All code paths return a proper value

- Including early returns

- Uses self:Throw for improper usage

- Uses attributes whenever possible

- Assigned a fitting cost

- Comes with sufficient test code that includes invalid use

Events

- Defined on Events page after accepted

- Comes with sufficient test code that includes invalid use

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.