A few minor mistakes?
ent_setskin -> Entity.GetSkin = mistake. should be Entity.SetSkin
ent_type -> Entity.get_Type why get_Type and not getType ? conformity.
Typo fixed. Why get_Type? Because conformity
get_Type is the internal method created by C# if you use properties.
EntityType type = ent.Type;
So you don't call a function but use get_type as a read only variable.