-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
push last-minute-presentation changes
- Loading branch information
Showing
10 changed files
with
22 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ componentTypeTemplate | |
|
||
^ 'type | ||
^ #path' | ||
^ #{1}' |
6 changes: 4 additions & 2 deletions
6
ECS-Presentation.package/ECSECSWidget.class/instance/createComponent.withFields..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
initialization | ||
createComponent: aComponentName withFields: componentFields | ||
|
||
| componentClass componentFieldNames defaultValueSetter | | ||
| componentClass componentFieldNames defaultValueSetter componentSuffix | | ||
componentSuffix := 'Component'. | ||
|
||
componentFieldNames := componentFields collect: [:componentField | componentField first]. | ||
componentClass := (MCClassDefinition name: aComponentName superclassName: 'ECSComponent' category: 'ECS-Custom' instVarNames: componentFieldNames comment: '') createClass. | ||
componentClass allInstVarNames do: [:instVar | | ||
(RBCreateAccessorsForVariableRefactoring variable: instVar class: componentClass classVariable: false) execute]. | ||
defaultValueSetter := componentFields collect: [:componentField | | ||
'instance {1}: {2}.' format: componentField]. | ||
componentClass class compile: (self componentConstructorTemplate format: { defaultValueSetter inject: '' into: [:el :result | result , ' ', el]}). | ||
componentClass class compile: self componentTypeTemplate. | ||
componentClass class compile: (self componentTypeTemplate format: {((aComponentName readStream upToAll: componentSuffix) asLowercase)}). | ||
^ componentClass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
ECS-Presentation.package/ECSFinalPresentation.class/instance/wantsToBeDroppedInto..st
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters