How sc-workshop/supercellflash works
Main Components Identification
a. Core Library Layer (supercell-flash)
• Schema Definitions (FlatBuffers)
• Objects
• Transform System
• File Handling
• Type System
b. Tools Layer
• Test Tool
• Texture Tool
Component Relationships
A. Core Components (Top to Bottom):
┌─ Schema Definitions (.fbs files) ─┐
• DataStorage │
• MovieClips │
• Textures │
• ┘
• ↓
┌─ Display Object System ──────────┐
• MovieClip │
• TextField │
• ┘
• ↓
┌─ Transform System ───────────────┐
• Matrix2D │
• ColorTransform │
• MatrixBank │
• ┘
• ↓
┌─ File Handling ─────────────────┐
• SupercellSWF │
• SWFStream │
• SWFContainer │
• ┘
Important Details
a. Schema Layer:
• FlatBuffers schema files (.fbs) as the data definition layer
• Schemas to their corresponding C++ implementations
b. Object Hierarchy:
• Inheritance relationships between display objects
• Relationship between MovieClip and MovieClipFrame
c. Transform System:
• Matrix2D and ColorTransform as fundamental transformation components
• MatrixBank's role in optimization
d. File Handling:
• Demonstrate the relationship between SupercellSWF and its components
• How SWFStream and SWFContainer interact
Implementation Notes
• The modular nature of the library
• Clear separation between schema definitions and implementations
• The hierarchical structure of display objects
• The relationship between core library and tools