Skip to content

Instantly share code, notes, and snippets.

@mort
Created October 18, 2013 11:18
Show Gist options
  • Save mort/7040118 to your computer and use it in GitHub Desktop.
Save mort/7040118 to your computer and use it in GitHub Desktop.
Molecules
module Siblings
module Stuff
class Molecule
include Observable
include Traits::Moves
alias_method :place_in, :move_to
attr_reader :uuid, :element, :placement
PLACEMENTS = [:world, :sibling, :player]
def initialize(element)
@material = element
@positions = []
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment