TacticalMetaphysics / LiSE

Rules-based engine for life sims, with time travel
GNU Affero General Public License v3.0
116 stars 9 forks source link

Serializable partial methods and functions #119

Open clayote opened 1 year ago

clayote commented 1 year ago

When LiSE sends a choice to ELiDE for the player to pick from some options, it currently requires that the code that runs when you pick one option or another be a function or method that takes no extra arguments -- everything must be prewritten. It would be more convenient if you could write a method for some general purpose and use functools.partial to customize it to one player option or another.