Method: Characterizable::Snapshot#_take_snapshot

Defined in:
lib/characterizable/snapshot.rb

#_take_snapshotObject



8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/characterizable/snapshot.rb', line 8

def _take_snapshot
  universe.characterizable_base.characteristics.each do |_, c|
    if c.known?(universe)
      if c.effective?(universe)
        self[c.name] = c.value(universe)
      elsif c.trumped?(universe)
        trumped_keys.push c.name
      elsif !c.revealed?(universe)
        wasted_keys.push c.name
        lacking_keys.push c.prerequisite
      end
    end
  end
end