mkxp-freebird/binding-mri
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
..
audio-binding.cpp MRI-Binding: Optimize RB_ARG_END vaarg guard 2013-12-20 11:29:12 +01:00
binding-mri.cpp Simplify earlier patch 2014-07-25 07:57:01 +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 Transition from QtCore to stdc++ / STL / boost 2013-12-29 13:59:26 +01:00
filesystem-binding.cpp MRI: some minor optimizations 2014-01-24 22:30:19 +01:00
flashable-binding.h MRI-Binding: Typo in Flashable binding 2014-08-09 21:21:38 +02:00
font-binding.cpp Lift 'Disposable' concept from core into bindings 2014-08-09 21:21:38 +02:00
graphics-binding.cpp MRI-Binding: Properly init Bitmap in Graphics#snap_to_bitmap 2014-07-16 05:27:16 +02:00
input-binding.cpp MRI-Binding: Input constants are symbols in RGSS3 2014-08-09 21:21:15 +02:00
module_rpg.cpp Initial commit 2013-09-01 16:27:21 +02:00
module_rpg.rb.xxd Initial commit 2013-09-01 16:27:21 +02:00
plane-binding.cpp Lift 'Disposable' concept from core into bindings 2014-08-09 21:21:38 +02:00
sceneelement-binding.h MRI-Binding: Optimize RB_ARG_END vaarg guard 2013-12-20 11:29:12 +01:00
serializable-binding.h Initial commit 2013-09-01 16:27:21 +02:00
sprite-binding.cpp Lift 'Disposable' concept from core into bindings 2014-08-09 21:21:38 +02:00
table-binding.cpp Table: Add clone constructor (and bind in MRI) 2014-08-05 05:24:13 +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