allow defmethod without body

This commit is contained in:
2021-06-23 13:20:02 -06:00
parent 3f25b56d42
commit 114beec3f4
6 changed files with 11 additions and 6 deletions

View File

@@ -1,3 +1,3 @@
(defmethod new [] 0)
(defnew [])
(defmethod loadText [filePath] (Assets.getText filePath))

View File

@@ -1,3 +1,3 @@
(defmethod new [] 0)
(defnew [])
(defmethod loadText [filePath] (File.getContent filePath))

View File

@@ -2,7 +2,7 @@
(defprop &mut :Int letterHeight 0)
(defprop &mut :Int drawCalled 0)
(defmethod new [] 0)
(defnew [])
(defmethod :Void initialize [:String title :Int width :Int height :Int _letterWidth :Int _letterHeight]
(set letterWidth _letterWidth)

View File

@@ -1,4 +1,4 @@
(defmethod new [] 0)
(defnew [])
(defmethod :Void initialize [:Assets assets]
(assets.loadSurface "laptop" AssetPaths.laptop__srf))