cherriesandmochi / gdmaim

GDMaim is a GDScript obfuscation plugin for the Godot Engine.
MIT License
145 stars 13 forks source link

Inline seed (dynamic/static) #6

Open Ethosa opened 8 months ago

Ethosa commented 8 months ago

I think that can be helpful for save file fields (JSON)

var test: int = 100  ##OBFUSCATE_SEED DYNAMIC
var test1: int = 100  ##OBFUSCATE_SEED 10102
var test2: int = 100  ##OBFUSCATE_SEED 0

var save_data = {
  # here we obfuscate speed key with static seed
  # when project uses dynamic seed this can be helpful to keep dictionary keys
  "speed": 10, ##OBFUSCATE STRINGS  ##OBFUSCATE_SEED 100
}