From 4758c32fbd5cba714341f9735a994fd244664ff7 Mon Sep 17 00:00:00 2001 From: realtradam Date: Wed, 7 Jul 2021 01:06:51 -0400 Subject: cleaned up documentation a little --- entity_manager.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'entity_manager.rb') diff --git a/entity_manager.rb b/entity_manager.rb index 2e1b845..efa685f 100644 --- a/entity_manager.rb +++ b/entity_manager.rb @@ -2,7 +2,13 @@ class FelFlame class Entities # Holds the unique ID of this entity # @return [Integer] - attr_accessor :id + attr_reader :id + + # A seperate attr_writer was made for documentation readability reasons. + # Yard will list attr_reader is readonly which is my intention. + # This value needs to be changable as it is set by other functions. + # @!visibility private + attr_writer :id # Creating a new Entity # @param components [Components] Can be any number of components, identical duplicates will be automatically purged however different components from the same component manager are allowed. -- cgit v1.2.3