RGSS ಸ್ಕ್ರಿಪ್ಟ್ ಉಲ್ಲೇಖಗಳು
RGSS ಸ್ಕ್ರಿಪ್ಟ್ಗಳಲ್ಲಿ @ ಎಂದರೇನು?
RGSS ನಲ್ಲಿನ ಸ್ಕ್ರಿಪ್ಟ್ಗಳ @ ಸಿಂಟ್ಯಾಕ್ಸ್ನ ವಿವರಣೆ
ವರ್ಗಕ್ಕೆ ನಿದರ್ಶನ ವೇರಿಯಬಲ್ ಅನ್ನು ವ್ಯಾಖ್ಯಾನಿಸುತ್ತದೆ. ಈ ಪ್ರಕಾರದ ವೇರಿಯೇಬಲ್ಗಳನ್ನು ಓದಲು ಮತ್ತು ಬರೆಯಲು ನೀವು ಅವರಿಗೆ ಪ್ರವೇಶ ವಿಧಾನಗಳನ್ನು ಸಹ ರಚಿಸಬೇಕಾಗಿದೆ. ಸಂಬಂಧಿತ ಆಪರೇಟರ್ಗಳನ್ನು ಸ್ವಯಂಚಾಲಿತವಾಗಿ ಲೋಡ್ ಮಾಡಲು ನೀವು attr_reader, attr_writer, ಅಥವಾ attr_accessor ಶಾರ್ಟ್ಕೋಡ್ ಅನ್ನು ಸಹ ಬಳಸಬಹುದು.
ಕೋಡ್ ಉದಾಹರಣೆ:
def initialize
@battler_name = ""
@battler_hue = 0
@hp = 0
@sp = 0
@states = []
@states_turn = {}
@maxhp_plus = 0
@maxsp_plus = 0
@str_plus = 0
@dex_plus = 0
@agi_plus = 0
@int_plus = 0
@hidden = false
@immortal = false
@damage_pop = false
@damage = nil
@critical = false
@animation_id = 0
@animation_hit = false
@white_flush = false
@blink = false
@current_action = Game_BattleAction.new
end