Sha256: 8d4093c35fc225377d63f2215dc996d70643bc2be5c55e30f178fccc683c9d30

Contents?: true

Size: 728 Bytes

Versions: 1

Compression:

Stored size: 728 Bytes

Contents

# frozen_string_literal: true

# all created atomes are listed here
class Universe
  def self.app_identity
    # each app hav its own identity, this allow to generate new user identities from th
    @app_identity = 3
    # the identity is define as follow : parentCreatorID_softwareInstanceID_objetID
    # in this case parent is eve so 0, Software instance number is main eVe server which is also 0,
    # and finally the object is 3 as this the third object created by the main server
  end

  def self.initialize
    @atomes = []
  end

  def self.atomes_add(new_atome)
    # @atomes[atome_id] = new_atome
    @atomes << new_atome
  end

  class << self
    attr_reader :atomes
  end

  def self.connected
    true
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
atome-0.4.5.4 lib/atome/kernel/universe.rb