Register FAQ Search Today's Posts Mark Forums Read
Go Back   JazzJackrabbit Community Forums » Maintenance & Feedback » JJ2+ Issue Tracker

AngelScript API suggestions (and one normal suggestion :P)

Spaz Electro

JCF Member

Joined: Jan 1970

Posts: 10

Spaz Electro has disabled reputation

Sep 5, 2023, 05:22 AM
Spaz Electro is offline
Reply With Quote
Post AngelScript API suggestions (and one normal suggestion :P)

First off, PLUS_VERSION constant, please? Second, jjSTREAM should be able to get the properties of files (properties as in file attributes, date modified date created, etc), It can be very helpful for a lot of situations, Here's an example of what I would think it would look like:
Code:
jjSTREAM myStream("testFile.asdata");
dictionary@ properties;
myStream.getProperties(properties);

int dateModifiedInUnix;
dictionary@ fileAttributes;
properties.get("dateModified", dateModifiedInUnix);
properties.get("attributes", fileAttributes);

jjConsole("That file was last modified in the unix timestamp " + dateModifiedInUnix);
jjConsole("That file has " + fileAttributes.size() + " attributes");
Another thing that could be cool is an `-skipsplash` command line parameter, or maybe even a setting in the ini, would be very nice for quickly doing stuff
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -8. The time now is 06:00 AM.