3 registered members (Ayumi, Akow, AndrewAMD),
1,505
guests, and 9
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: C# wrapper 2.3.1 - RELEASE
[Re: Stromausfall]
#379505
08/03/11 14:35
08/03/11 14:35
|
Joined: Nov 2007
Posts: 2,568 Germany, BW, Stuttgart
MasterQ32
Expert
|
Expert
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
|
i try to keep as close to lite-c as possible ! afak every vec_ function returns the first parameter (a vector) as return value so you can write this:
vec_set(a,vec_rotate(b,vec_normalize(c,5)));
and this would be nice in c#, too
|
|
|
Re: C# wrapper 2.3.1 - RELEASE
[Re: MasterQ32]
#379513
08/03/11 18:56
08/03/11 18:56
|
Joined: May 2002
Posts: 7,441
ventilator
Senior Expert
|
Senior Expert
Joined: May 2002
Posts: 7,441
|
i try to keep as close to lite-c as possible ! afak every vec_ function returns the first parameter (a vector) as return value so you can write this:
vec_set(a,vec_rotate(b,vec_normalize(c,5)));
and this would be nice in c#, too no, this would be nice in c#: a = b.rotate(c.normalize(5));
|
|
|
Re: C# wrapper 2.3.1 - RELEASE
[Re: MasterQ32]
#379516
08/03/11 19:50
08/03/11 19:50
|
Joined: Apr 2008
Posts: 2,488
ratchet
Expert
|
Expert
Joined: Apr 2008
Posts: 2,488
|
I've tesetd the demo, and it coould tranform easily in real indie selling game, just by adding levels, some more gameplay meachnism or any addition like RPG system ! It could make some Metroid alternative game I've took a look at the code , i have some questions : How is made the complete level ? it is not imported from WED ? For entities that have code scritp attached to them, can we do that with C# ? or howw do we manage the entities with code and their attributes: values, AI state etc ... ?
|
|
|
Re: C# wrapper 2.3.1 - RELEASE
[Re: Stromausfall]
#379956
08/10/11 15:47
08/10/11 15:47
|
Joined: Jul 2010
Posts: 283 Germany
jenGs
Member
|
Member
Joined: Jul 2010
Posts: 283
Germany
|
Hi, Is it possible that the panel.event function is not implemented in c#-wrapper? Patrick
edit: Another question: How can I add a on_mouse_click event. "private IEnumerable<ScheduleMethod> pEvent()" doesn't work in this case.
Last edited by jenGs; 08/10/11 16:23.
|
|
|
Re: C# wrapper 2.3.1 - RELEASE
[Re: jenGs]
#379964
08/10/11 16:42
08/10/11 16:42
|
Joined: Dec 2002
Posts: 616 Austria
Stromausfall
OP
User
|
OP
User
Joined: Dec 2002
Posts: 616
Austria
|
@jenGs indeed, it looks like the panel.event_ property is missing ! to add an event to for example EngVar.on_mouse_left you have to do the following :
private static IEnumerable<ScheduleMethod> onMouseLeftMethod(double value)
{
yield return 1;
}
static void Main(string[] args)
{
EngFun.engine_open(null, null);
EngFun.level_load(null);
// ....
// register this method on the event
EngVar.on_mouse_left += onMouseLeftMethod;
// ....
// unregister this method on the event
EngVar.on_mouse_left -= onMouseLeftMethod;
// clear all registered method on this event...
EngVar.on_mouse_left.Events.Clear();
}
P.S.: I'll try to update the wrapper as soon as possible !
|
|
|
Re: C# wrapper 2.3.1 - RELEASE
[Re: Stromausfall]
#379978
08/10/11 18:59
08/10/11 18:59
|
Joined: Dec 2002
Posts: 616 Austria
Stromausfall
OP
User
|
OP
User
Joined: Dec 2002
Posts: 616
Austria
|
a new version was uploaded (for Acknex 7.85.4 AND Acknex 8.20) the update of the wrapper includes: - missing event_ property for PANELs was added (thanks at jenGs) - class methods that return void and aren't static, now return the instance of the object (thanks at Richi007) here's the link: AcknexWrapper_2_3_2_FOR_8_20_AND_7_85_4.zip
|
|
|
Re: C# wrapper 2.3.1 - RELEASE
[Re: Stromausfall]
#379982
08/10/11 19:27
08/10/11 19:27
|
Joined: Jul 2010
Posts: 283 Germany
jenGs
Member
|
Member
Joined: Jul 2010
Posts: 283
Germany
|
Hi, Thank you. But I can't figure out how to assign an event. Thank you for this very fast update MfG, Patrick
|
|
|
|