File system help

About Monkey 2 Forums Monkey 2 Programming Help File system help

This topic contains 4 replies, has 2 voices, and was last updated by  Hezkore 2 years, 2 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #6989

    Hezkore
    Participant

    I can’t for the life of me find the information (which I’m sure I’ve read somewhere…) about how the file system in Monkey 2 works.
    I know you can use asset:: but what else can I use, and how exactly is it used?
    It doesn’t feel like basic stuff like this should be this hard to find. :/

    #7000

    Mark Sibly
    Keymaster

    For examining/modifying filsystem, see std.filesystem namespace:

    http://monkey2.monkey-x.com/mx2-docs/std-std-filesystem/

    For reading writing to files, see std.stream.FileStream:

    http://monkey2.monkey-x.com/mx2-docs/std-std-stream-FileStream/

    …and the std.stream.Stream class it extends…

    http://monkey2.monkey-x.com/mx2-docs/std-std-stream-Stream/

    #7002

    Hezkore
    Participant

    I sadly see no info on how asset:: works there.

    I mean I know you can do like #Import “assets/blah.png” and load via “asset::blah.png”
    But where’s the specific info about that?
    How would I know that I had to use asset:: like that if it’s not in the Docs?
    Is there anything else than asset:: I can use?

    #7004

    Mark Sibly
    Keymaster

    But where’s the specific info about that?

    There isn’t any yet as I haven’t written it! It’s on the to do list, along with 1001 other things.

    But there’s nothing particularly tricky about it beyond what everyone has been using it for to date.

    #7005

    Hezkore
    Participant

    Hehe thanks Mark <3

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.