class_name NBattleObject ## Base class for all objects managed by NBattle. ## Every object gets a unique ID assigned by the BattleContext that created it. enum Type { STAT_DEF, EFFECT_DEF, TRIGGER_DEF, COMBATANT, } var _id: int var _context: BattleContext func _init(context: BattleContext) -> void: _context = context _id = context._next_id() func get_id() -> int: return _id func get_context() -> BattleContext: return _context