Adding modding folder with a hacked build.

This commit is contained in:
ml
2026-09-26 08:53:08 +02:00
parent cdb960dc71
commit c91080aba7
755 changed files with 50424 additions and 0 deletions
@@ -0,0 +1,33 @@
package objects
import (
"github.com/inkyblackness/hacked/ss1/content/object"
"github.com/inkyblackness/hacked/ss1/world"
)
type setObjectPropertiesCommand struct {
model *viewModel
triple object.Triple
bitmap int
oldProperties object.Properties
newProperties object.Properties
}
func (command setObjectPropertiesCommand) Do(modder world.Modder) error {
return command.perform(modder, command.newProperties)
}
func (command setObjectPropertiesCommand) Undo(modder world.Modder) error {
return command.perform(modder, command.oldProperties)
}
func (command setObjectPropertiesCommand) perform(modder world.Modder, properties object.Properties) error {
modder.SetObjectProperties(command.triple, properties)
command.model.restoreFocus = true
command.model.currentObject = command.triple
command.model.currentBitmap = command.bitmap
return nil
}