Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Issue with TIME tutorial  (Read 4634 times)

0 Members and 1 Guest are viewing this topic.

joeparrilla

  • Newbie
  • *
  • Posts: 14
    • View Profile
Issue with TIME tutorial
« on: November 26, 2012, 12:09:03 am »
So I am getting myself reacquainted with the C# binding (I forgot everything from previous usage). I am starting by doing all of the tutorials from the site. I am beginning with the timing tutorial, but I think I am doing something wrong converting to C#. I dont see any classes, members, etc  with the name Time, Clock, etc. Is this stuff not wrapped in the C# version because I should be using standard .net functionality for it, something like TimeSpan or DateTime?
« Last Edit: November 26, 2012, 12:11:55 am by joeparrilla »

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: Issue with TIME tutorial
« Reply #1 on: November 26, 2012, 02:50:53 am »
Please use the search next time before posting... This has been answered countless times before.
Here is the MSDN link to what you need to use.

using System.Diagnostics;
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

joeparrilla

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Issue with TIME tutorial
« Reply #2 on: November 26, 2012, 03:37:10 am »
Sorry about that, thanks for the reply though. So does that mean that this functionality was left out of the .NET port of SFML? Are there other things that I should be aware of that I will not have access to?

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: Issue with TIME tutorial
« Reply #3 on: November 26, 2012, 04:34:35 am »
Sorry about that, thanks for the reply though. So does that mean that this functionality was left out of the .NET port of SFML? Are there other things that I should be aware of that I will not have access to?
Yes it was intentionally left out of SFML.NET due to it already being implemented in the .NET framework. The only SFML libraries bound in SFML.NET are the graphics, system(window functions only), and audio libraries. The rest of the SFML functions such as threads and networking are not bound since the .NET framework already has very good implementations of these functions.
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

joeparrilla

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Issue with TIME tutorial
« Reply #4 on: November 26, 2012, 04:42:47 am »
I see, thanks a lot man. That makes sense.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Issue with TIME tutorial
« Reply #5 on: November 26, 2012, 07:55:48 am »
Quote
system(window functions only)
So it's window... not system ;)
Laurent Gomila - SFML developer