Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > IL-2 Sturmovik: Cliffs of Dover > FMB, Mission & Campaign builder Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 04-30-2012, 09:20 AM
41Sqn_Banks 41Sqn_Banks is offline
Approved Member
 
Join Date: Oct 2007
Posts: 644
Default OnChat event by reflection

We now that the GameDef class has a "Chat" event that is raised for every chat message. However GameDef is not accessible from the mission script. I'm pretty sure from my AddIn work that the GamePlay object that is accessible from the mission script actually is derived from GameDef, however casting it to GameDef is not possible as this class is not marked as Serializable (you can't create a instance of GameDef).

So basically GamePlay should have the "Chat" event, only the compiler prevents us from using it. It could be possible to use reflection to register our own OnChat method to this event.

http://msdn.microsoft.com/en-us/library/ms228976.aspx

Any thoughts?
Reply With Quote
Reply


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. The time now is 03:17 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.