mkxp-freebird/binding-mruby
Jonas Kulla e858bbdcf5 Lift 'Disposable' concept from core into bindings
Instead of replicating the RGSS Disposable interface in C++
and merely binding it, redefine the 'disposed' state as the
entire core object being deleted (and the binding object's
private pointer being null).

This makes the behavior more accurate in regard to RMXP.
It is now for example possible to subclass disposable classes
and access their 'dispose'/'disposed?' methods without
initializing the base class first (because the internal pointer
is simply null before initialization). Accessing any other
base methods will still raise an exception.

There are some quirks and irregular behavior in RMXP; eg.
most nullable bitmap attributes of disposable classes
(Sprite, Plane etc.) can still be queried afterwards, but
some cannot (Tilemap#tileset), and disposing certain
attributes crashes RMXP entirely (Tilemap#autotiles[n]).
mkxp tries to behave as close possible, but will be more
lenient some circumstances.

To the core, disposed bitmap attributes will look
identically to null, which slightly diverges from RMXP
(where they're treated as still existing, but aren't drawn).
The Disposable interface has been retained containing a
single signal, for the binding to inform core when
objects are disposed (so active attributes can be set to null).
2014-08-09 21:21:38 +02:00
..
mrb-ext MRuby-Binding: Account for 'char' not being signed everywhere 2014-07-19 11:13:11 +00:00
audio-binding.cpp Rename 'GlobalState' to 'SharedState' to avoid confusion with GLState 2013-10-09 12:30:33 +02:00
binding-mruby.cpp Binding-MRuby: Make stuff work with latest mruby git 2014-07-19 02:22:22 +02:00
binding-types.h Initial commit 2013-09-01 16:27:21 +02:00
binding-util.cpp Lift 'Disposable' concept from core into bindings 2014-08-09 21:21:38 +02:00
binding-util.h Lift 'Disposable' concept from core into bindings 2014-08-09 21:21:38 +02:00
bitmap-binding.cpp Lift 'Disposable' concept from core into bindings 2014-08-09 21:21:38 +02:00
disposable-binding.h Lift 'Disposable' concept from core into bindings 2014-08-09 21:21:38 +02:00
etc-binding.cpp MRuby-Binding: Reduce number of object allocations 2014-08-09 21:21:38 +02:00
flashable-binding.h Initial commit 2013-09-01 16:27:21 +02:00
font-binding.cpp Lift 'Disposable' concept from core into bindings 2014-08-09 21:21:38 +02:00
graphics-binding.cpp Sanitize #include statements 2013-12-04 17:48:37 +01:00
input-binding.cpp MRI-Binding: Input constants are symbols in RGSS3 2014-08-09 21:21:15 +02:00
module_rpg.c MRuby-Binding: Make code compile with latest mruby master 2013-12-27 04:36:24 +01:00
plane-binding.cpp Lift 'Disposable' concept from core into bindings 2014-08-09 21:21:38 +02:00
sceneelement-binding.h Initial commit 2013-09-01 16:27:21 +02:00
serializable-binding.h Sanitize #include statements 2013-12-04 17:48:37 +01:00
sprite-binding.cpp Lift 'Disposable' concept from core into bindings 2014-08-09 21:21:38 +02:00
table-binding.cpp MRuby-Binding: Reduce number of object allocations 2014-08-09 21:21:38 +02:00
tilemap-binding.cpp Lift 'Disposable' concept from core into bindings 2014-08-09 21:21:38 +02:00
viewport-binding.cpp Lift 'Disposable' concept from core into bindings 2014-08-09 21:21:38 +02:00
viewportelement-binding.h Lift 'Disposable' concept from core into bindings 2014-08-09 21:21:38 +02:00
window-binding.cpp Lift 'Disposable' concept from core into bindings 2014-08-09 21:21:38 +02:00