Shop OBEX P1 Docs P2 Docs Learn Events
Gear plugin confusion - plugin scripts and Gear are both C# ! — Parallax Forums

Gear plugin confusion - plugin scripts and Gear are both C# !

mstrammstram Posts: 49
edited 2015-04-27 12:14 in Propeller 1
As a C# novice I find it very confusing that Gear itself is written in C#, and the plugin "scripts" are also in C#.

I've started to read the source code to try and understand which classes are used internally by Gear, and which are exposed and therefore useable
by the plugin "scripts".

Any hints / tips on this are appreciated !

E.g. I just tried to add :
using Gear.Propeller;
to a plugin, and the Gear/CheckCode says :

The type or namespace name 'Propeller' does not exist in the namespace 'Gear' (are you missing an assembly reference)

But in AssemblyRegisters.cs the entry is there :
namespace Gear.Propeller

While the same plugin XML (Terminal.xml) has :
using Gear.EmulationCore;
, which is accepted by Gear/CheckCode.

(namespace Gear.EmulationCore) is in PropellerCPU.cs)

Comments

Sign In or Register to comment.