render ctx
This commit is contained in:
1 parent
fbea0673c1
commit
fbb02855ee
10 files changed
+167
-15
No files matched your search
+22
-1
@@ -4,10 +4,31 @@ output:
|
||||
game/ver-mac/src/dialect.swift:
|
||||
type: swift
|
||||
|
||||
RenderContext:
|
||||
type: context
|
||||
fields:
|
||||
didLaunch: Bool
|
||||
didSetup: Bool
|
||||
isReadyToRender: Bool
|
||||
pixelHeight: Int
|
||||
pixelWidth: Int
|
||||
|
||||
RenderComponent:
|
||||
type: component
|
||||
oneliners:
|
||||
- isReadyToRender: print("ИГР isRTR: '\(c.isReadyToRender)'")
|
||||
shoulds:
|
||||
didLaunch:
|
||||
1. Only once during the first setup:
|
||||
if:
|
||||
c.recentField == F.didSetup &&
|
||||
c.didLaunch == false
|
||||
then:
|
||||
c.didLaunch = true
|
||||
|
||||
RootComponent:
|
||||
type: component
|
||||
oneliners:
|
||||
- countText: print(c.countText)
|
||||
- countText: RootVM.shared!.countText = c.countText
|
||||
shoulds:
|
||||
count:
|
||||
|
||||
Reference in new issue
Block a user